All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd,ubi}.h path
@ 2021-07-18  8:34 Fabrice Fontaine
  2021-07-18 12:00 ` [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd, ubi}.h path Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2021-07-18  8:34 UTC (permalink / raw)
  To: buildroot

Update lib{mtd,ubi}.h path to fix the following build failure raised
since bump of swupdate to version 2021.04 in commit
2c6b0359c3b819fadb4437b2d780e95c32fdab21:

In file included from corelib/mtd-interface.c:21:
include/flash.h:13:10: fatal error: libmtd.h: No such file or directory
   13 | #include <libmtd.h>
      |          ^~~~~~~~~~

This build failure is raised because of
https://github.com/sbabic/swupdate/commit/0c672866d4a9fe8f0808b5d8a0afb95c13c4c138

Fixes:
 - http://autobuild.buildroot.org/results/d475bdb341d2afecf12e404dfa093e58221b9882

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/mtd/mtd.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 121dfa554b..189736b877 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -124,8 +124,8 @@ endef
 # Those libraries are not installed by "make install", but are needed
 # by other packages, such as swupdate.
 define MTD_INSTALL_LIBS
-	$(INSTALL) -D -m 0755 $(@D)/include/libmtd.h $(STAGING_DIR)/usr/include/mtd/libmtd.h
-	$(INSTALL) -D -m 0755 $(@D)/include/libubi.h $(STAGING_DIR)/usr/include/mtd/libubi.h
+	$(INSTALL) -D -m 0755 $(@D)/include/libmtd.h $(STAGING_DIR)/usr/include/libmtd.h
+	$(INSTALL) -D -m 0755 $(@D)/include/libubi.h $(STAGING_DIR)/usr/include/libubi.h
 	$(INSTALL) -D -m 0755 $(@D)/include/mtd/ubi-media.h $(STAGING_DIR)/usr/include/mtd/ubi-media.h
 	$(INSTALL) -D -m 0755 $(@D)/libmtd.a $(STAGING_DIR)/usr/lib/libmtd.a
 	$(INSTALL) -D -m 0755 $(@D)/libubi.a $(STAGING_DIR)/usr/lib/libubi.a
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd, ubi}.h path
  2021-07-18  8:34 [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd,ubi}.h path Fabrice Fontaine
@ 2021-07-18 12:00 ` Thomas Petazzoni
  2021-07-18 12:51   ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2021-07-18 12:00 UTC (permalink / raw)
  To: buildroot

On Sun, 18 Jul 2021 10:34:12 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Update lib{mtd,ubi}.h path to fix the following build failure raised
> since bump of swupdate to version 2021.04 in commit
> 2c6b0359c3b819fadb4437b2d780e95c32fdab21:
> 
> In file included from corelib/mtd-interface.c:21:
> include/flash.h:13:10: fatal error: libmtd.h: No such file or directory
>    13 | #include <libmtd.h>
>       |          ^~~~~~~~~~
> 
> This build failure is raised because of
> https://github.com/sbabic/swupdate/commit/0c672866d4a9fe8f0808b5d8a0afb95c13c4c138
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/d475bdb341d2afecf12e404dfa093e58221b9882
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/mtd/mtd.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Isn't there a chance for this to break other packages? Is it just
swupdate that is using the MTD headers?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd, ubi}.h path
  2021-07-18 12:00 ` [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd, ubi}.h path Thomas Petazzoni
@ 2021-07-18 12:51   ` Yann E. MORIN
  2021-07-25 16:18     ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2021-07-18 12:51 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2021-07-18 14:00 +0200, Thomas Petazzoni spake thusly:
> On Sun, 18 Jul 2021 10:34:12 +0200
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> 
> > Update lib{mtd,ubi}.h path to fix the following build failure raised
> > since bump of swupdate to version 2021.04 in commit
> > 2c6b0359c3b819fadb4437b2d780e95c32fdab21:
> > 
> > In file included from corelib/mtd-interface.c:21:
> > include/flash.h:13:10: fatal error: libmtd.h: No such file or directory
> >    13 | #include <libmtd.h>
> >       |          ^~~~~~~~~~
> > 
> > This build failure is raised because of
> > https://github.com/sbabic/swupdate/commit/0c672866d4a9fe8f0808b5d8a0afb95c13c4c138
> > 
> > Fixes:
> >  - http://autobuild.buildroot.org/results/d475bdb341d2afecf12e404dfa093e58221b9882
> > 
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> >  package/mtd/mtd.mk | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Isn't there a chance for this to break other packages? Is it just
> swupdate that is using the MTD headers?

Currently, in Buildroot, we havea few packages that depend on the 'mtd'
package;

  - fs/kffs2/
  - fs/ubifs/
      both want the mtd tools

  - busybox
      installs mtd applets

  - swupdate
      needs the headers

There are a few other refrences to '\<mtd\>', but none are about a build
dependency.

So, for Buildroot, only swupsdate seems to be impacted, indeed.

Still, using headers internal to another package is not nice from
swupdate...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd, ubi}.h path
  2021-07-18 12:51   ` Yann E. MORIN
@ 2021-07-25 16:18     ` Arnout Vandecappelle
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2021-07-25 16:18 UTC (permalink / raw)
  To: Yann E. MORIN, Thomas Petazzoni; +Cc: Matt Weber, Fabrice Fontaine, buildroot



On 18/07/2021 14:51, Yann E. MORIN wrote:
> Thomas, All,
> 
> On 2021-07-18 14:00 +0200, Thomas Petazzoni spake thusly:
>> On Sun, 18 Jul 2021 10:34:12 +0200
>> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>>
>>> Update lib{mtd,ubi}.h path to fix the following build failure raised
>>> since bump of swupdate to version 2021.04 in commit
>>> 2c6b0359c3b819fadb4437b2d780e95c32fdab21:
>>>
>>> In file included from corelib/mtd-interface.c:21:
>>> include/flash.h:13:10: fatal error: libmtd.h: No such file or directory
>>>    13 | #include <libmtd.h>
>>>       |          ^~~~~~~~~~
>>>
>>> This build failure is raised because of
>>> https://github.com/sbabic/swupdate/commit/0c672866d4a9fe8f0808b5d8a0afb95c13c4c138
>>>
>>> Fixes:
>>>  - http://autobuild.buildroot.org/results/d475bdb341d2afecf12e404dfa093e58221b9882
>>>
>>> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>>> ---
>>>  package/mtd/mtd.mk | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> Isn't there a chance for this to break other packages? Is it just
>> swupdate that is using the MTD headers?
> 
> Currently, in Buildroot, we havea few packages that depend on the 'mtd'
> package;
> 
>   - fs/kffs2/
>   - fs/ubifs/
>       both want the mtd tools
> 
>   - busybox
>       installs mtd applets
> 
>   - swupdate
>       needs the headers
> 
> There are a few other refrences to '\<mtd\>', but none are about a build
> dependency.
> 
> So, for Buildroot, only swupsdate seems to be impacted, indeed.
> 
> Still, using headers internal to another package is not nice from
> swupdate...

 Well, you could argue that it is not nice of mtd-utils to have a very useful
library but not export it :-)

 Since there isn't really any other way of fixing this other than mesing with
symlinks, I've applied the patch to master, thanks.

 Regards,
 Arnout
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-25 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18  8:34 [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd,ubi}.h path Fabrice Fontaine
2021-07-18 12:00 ` [Buildroot] [PATCH 1/1] package/mtd: update lib{mtd, ubi}.h path Thomas Petazzoni
2021-07-18 12:51   ` Yann E. MORIN
2021-07-25 16:18     ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.