Re: [ubi-utils] - fixes for ubi-utils-klibc 2.0.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 19, 2018 at 11:50 AM David Oberhollenzer
<david.oberhollenzer@xxxxxxxxxxxxx> wrote:
>
> Hi,
>
> first of all, sorry for the delay. I was quite busy recently and wanted to catch up
> with mtd-utils related stuff last week, but unexpectedly ended up without any internet
> connection at the ALPSS conference.
>
> Regarding the meta-initramfs patch set for mtd-utils:
>
>  - The first patch should actually not be necessary. It adds a __KLIBC__ guard around the existing
>    HAVE_EXECINFO_H guard to prevent inclusion of execinfo.h. If the header doesn't exist, autoconf
>    should catch that and not define HAVE_EXECINFO_H in the first place. So this is more of a
>    workaround for a bug in the build system that should be addressed.

David,
the patch is not necessary when building with musl toolchain but only
with glibc.
The first version of the patch was for klibc 1.5.2 and explicited:

++#if defined(__GLIBC__) || defined(__UCLIBC__)
+ #include <features.h>
++#endif

And in fact, googling a bit,
"Please notice that the <features.h> header file does not exist on all
platforms,..."
https://sourceforge.net/p/predef/wiki/Libraries/?version=11

Anyway, I'll check again with our tc guru to rule off autotools and glibc bugs

>  - The patch number 2 regarding the PRI*off_t macros is marked as "Upstream-Status: Submitted",
>    but I somehow can't find it on the mailing list. If it was submitted and nobody had a problem
>    with that, I would happily merge it, since those magic macros have been a constant source of
>    problems so far.

Ouch, back in February when I received the patch I was sure it was
sent to th elist as well.
I have asked the author about the signature and he said 'just send it'
;) I'll do.

>  - Regarding patch number 4 that adds a guard around features.h: That should IMO be done using
>    a check in the configure script. Assuming that works (see comment for patch #1).
Ditto. I'll check this as well.

>  - I have submitted a patch for the prompt() function that should make patch number 5 obsolete.
>    See http://lists.infradead.org/pipermail/linux-mtd/2018-September/084087.html
I'll test this later on.

Many thanks
Andrea
>
> Thanks,
>
> David

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux