Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-22 Thread Andrea Adami
On Thu, May 17, 2018 at 10:44 PM, Andrea Adami  wrote:
> 
>
>>> This fails on qemuarm with the following error.
>>
>> >>
>> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> >> file or directory
>> >> |  #include 
>> >> |   ^~~~
>> >> | compilation terminated.
>> >> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
>> >> | make: *** [ubi-utils/ubimkvol.o] Error 1
>> >> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
>> >> | make: *** [ubi-utils/ubicrc32.o] Error 1
>> >> | In file included from ../git/include/common.h:38:0,
>> >> |  from ../git/ubi-utils/ubiupdatevol.c:40:
>> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> >> file or directory
>> >> |  #include 
>> >> |   ^~~~
>> >> | compilation terminated.
>> >> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
>> >> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
>> >> | ERROR: oe_runmake failed
>> >>
>> >> http://errors.yoctoproject.org/Errors/Build/60410/
>> >>
>> >> - Armin
>> >
>> >
>> > Hi Armin,
>> > thanks for testing.
>> >
>> > Strange, I did cross-build for all archs, maybe some oe-core change.
>> > I'll compare with my log (attached the quemuarm).
>> >
>> > Cheers
>> > Andrea
>> >
>>
>> I see the issue is with execinfo.h.
>> As of last week ...musl did not have backtrace/execinfo so I think musl has 
>> been updated and now the HAVE_EXECINFO_H check fails.
>> I'll try to fix this in the recipe.
>>
>>
>> Cheers
>> Andrea
>>
> Armin,
>
> I can't reproduce this even after git-pull:
>
> Build Configuration:
> BB_VERSION   = "1.37.0"
> BUILD_SYS= "x86_64-linux"
> NATIVELSBSTRING  = "ubuntu-16.04"
> TARGET_SYS   = "arm-oe-linux-musleabi"
> MACHINE  = "qemuarm"
> DISTRO   = "nodistro"
> DISTRO_VERSION   = "nodistro.0"
> TUNE_FEATURES= "arm armv5 thumb dsp"
> TARGET_FPU   = "soft"
> meta = "master:9611485bba03ef77ff31121e3b1da7cd57990c3e"
> meta-handheld= "master:891fefa796ff3a12e4d9470f44597a375818acb6"
> meta-initramfs
> meta-oe  = "master:61576573e70f8c1d338ddb23d7b76044f68d1cd9"
>
> here logs of tosa (armv5te) and qemuarm (armv5e):
>
> https://pastebin.com/vNx4D14z
> https://pastebin.com/gw8vZvCf
>
>
> Please send me full configure and build logs.
> Andrea

Ok, after the post I realized it is happening only with glibc. Musl builds fine.

The cause is the backported patch I received from the upstream
maintainer: let say for the moment I will skip that patch and replace
getline() like it was before.
This should fix the glibc build so I plan to send a patch v2.

Please disregard this one, thanks.

Andrea
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread Andrea Adami


>> This fails on qemuarm with the following error.
>
> >>
> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> >> file or directory
> >> |  #include 
> >> |   ^~~~
> >> | compilation terminated.
> >> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
> >> | make: *** [ubi-utils/ubimkvol.o] Error 1
> >> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
> >> | make: *** [ubi-utils/ubicrc32.o] Error 1
> >> | In file included from ../git/include/common.h:38:0,
> >> |  from ../git/ubi-utils/ubiupdatevol.c:40:
> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> >> file or directory
> >> |  #include 
> >> |   ^~~~
> >> | compilation terminated.
> >> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
> >> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
> >> | ERROR: oe_runmake failed
> >>
> >> http://errors.yoctoproject.org/Errors/Build/60410/
> >>
> >> - Armin
> >
> >
> > Hi Armin,
> > thanks for testing.
> >
> > Strange, I did cross-build for all archs, maybe some oe-core change.
> > I'll compare with my log (attached the quemuarm).
> >
> > Cheers
> > Andrea
> >
>
> I see the issue is with execinfo.h.
> As of last week ...musl did not have backtrace/execinfo so I think musl has 
> been updated and now the HAVE_EXECINFO_H check fails.
> I'll try to fix this in the recipe.
>
>
> Cheers
> Andrea
>
Armin,

I can't reproduce this even after git-pull:

Build Configuration:
BB_VERSION   = "1.37.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "ubuntu-16.04"
TARGET_SYS   = "arm-oe-linux-musleabi"
MACHINE  = "qemuarm"
DISTRO   = "nodistro"
DISTRO_VERSION   = "nodistro.0"
TUNE_FEATURES= "arm armv5 thumb dsp"
TARGET_FPU   = "soft"
meta = "master:9611485bba03ef77ff31121e3b1da7cd57990c3e"
meta-handheld= "master:891fefa796ff3a12e4d9470f44597a375818acb6"
meta-initramfs
meta-oe  = "master:61576573e70f8c1d338ddb23d7b76044f68d1cd9"

here logs of tosa (armv5te) and qemuarm (armv5e):

https://pastebin.com/vNx4D14z
https://pastebin.com/gw8vZvCf


Please send me full configure and build logs.
Andrea
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread Andrea Adami
On Thu, May 17, 2018 at 5:31 PM, Andrea Adami 
wrote:
> On Thu, May 17, 2018 at 4:15 PM, akuster808  wrote:
>>
>>
>> On 05/13/2018 03:16 PM, Andrea Adami wrote:
>>> Update to new version and drop accepted patches.
>>>
>>> Signed-off-by: Andrea Adami 
>>> ---
>>>  .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
>>>  .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
>>>  ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
>>>  ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
>>>  ...-more-workarounds-for-klibc-compatibility.patch |  52 
>>>  ...rser-remove-unused-function-needing-float.patch |  85 --
>>>  ...ls-common.c-convert-to-integer-arithmetic.patch |  64 
>>>  ...ubiformat.c-convert-to-integer-arithmetic.patch |  44 ---
>>>  ...arnings-about-implicit-non-const-casting-.patch |  48 ---
>>>  ...mple-getline-implementation-to-libmissing.patch | 187 
>>>  ...doing-preprocessor-magic-just-output-off_.patch | 326
+
>>>  .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
>>>  ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
>>>  ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-
>>
>> This fails on qemuarm with the following error.
>>
>> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> file or directory
>> |  #include 
>> |   ^~~~
>> | compilation terminated.
>> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
>> | make: *** [ubi-utils/ubimkvol.o] Error 1
>> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
>> | make: *** [ubi-utils/ubicrc32.o] Error 1
>> | In file included from ../git/include/common.h:38:0,
>> |  from ../git/ubi-utils/ubiupdatevol.c:40:
>> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> file or directory
>> |  #include 
>> |   ^~~~
>> | compilation terminated.
>> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
>> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
>> | ERROR: oe_runmake failed
>>
>> http://errors.yoctoproject.org/Errors/Build/60410/
>>
>> - Armin
>
>
> Hi Armin,
> thanks for testing.
>
> Strange, I did cross-build for all archs, maybe some oe-core change.
> I'll compare with my log (attached the quemuarm).
>
> Cheers
> Andrea
>

I see the issue is with execinfo.h.
As of last week ...musl did not have backtrace/execinfo so I think musl has
been updated and now the HAVE_EXECINFO_H check fails.
I'll try to fix this in the recipe.


Cheers
Andrea

>>
>>>  14 files changed, 598 insertions(+), 584 deletions(-)
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
>>>  rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb
=> ubi-utils-klibc_2.0.2.bb} (64%)
>>>
>>> diff --git
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>> deleted file mode 100644
>>> index 6ac2cca..000
>>> ---

Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread Andrea Adami
On Thu, May 17, 2018 at 4:15 PM, akuster808  wrote:
>
>
> On 05/13/2018 03:16 PM, Andrea Adami wrote:
>> Update to new version and drop accepted patches.
>>
>> Signed-off-by: Andrea Adami 
>> ---
>>  .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
>>  .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
>>  ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
>>  ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
>>  ...-more-workarounds-for-klibc-compatibility.patch |  52 
>>  ...rser-remove-unused-function-needing-float.patch |  85 --
>>  ...ls-common.c-convert-to-integer-arithmetic.patch |  64 
>>  ...ubiformat.c-convert-to-integer-arithmetic.patch |  44 ---
>>  ...arnings-about-implicit-non-const-casting-.patch |  48 ---
>>  ...mple-getline-implementation-to-libmissing.patch | 187 
>>  ...doing-preprocessor-magic-just-output-off_.patch | 326 
>> +
>>  .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
>>  ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
>>  ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-
>
> This fails on qemuarm with the following error.
>
> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> file or directory
> |  #include 
> |   ^~~~
> | compilation terminated.
> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
> | make: *** [ubi-utils/ubimkvol.o] Error 1
> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
> | make: *** [ubi-utils/ubicrc32.o] Error 1
> | In file included from ../git/include/common.h:38:0,
> |  from ../git/ubi-utils/ubiupdatevol.c:40:
> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> file or directory
> |  #include 
> |   ^~~~
> | compilation terminated.
> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
> | ERROR: oe_runmake failed
>
> http://errors.yoctoproject.org/Errors/Build/60410/
>
> - Armin


Hi Armin,
thanks for testing.

Strange, I did cross-build for all archs, maybe some oe-core change.
I'll compare with my log (attached the quemuarm).

Cheers
Andrea

>
>>  14 files changed, 598 insertions(+), 584 deletions(-)
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
>>  rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb => 
>> ubi-utils-klibc_2.0.2.bb} (64%)
>>
>> diff --git 
>> a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>  
>> b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>> deleted file mode 100644
>> index 6ac2cca..000
>> --- 
>> a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>> +++ /dev/null
>> @@ -1,87 +0,0 @@
>> -From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
>> -From: Andrea Adami 
>> -Date: Sun, 29 Jun 2014 00:32:29 +0200
>> -Subject: [PATCH 1/9] Makefile: build ubi-utils only
>> -
>> -We build all the 

Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread akuster808


On 05/13/2018 03:16 PM, Andrea Adami wrote:
> Update to new version and drop accepted patches.
>
> Signed-off-by: Andrea Adami 
> ---
>  .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
>  .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
>  ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
>  ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
>  ...-more-workarounds-for-klibc-compatibility.patch |  52 
>  ...rser-remove-unused-function-needing-float.patch |  85 --
>  ...ls-common.c-convert-to-integer-arithmetic.patch |  64 
>  ...ubiformat.c-convert-to-integer-arithmetic.patch |  44 ---
>  ...arnings-about-implicit-non-const-casting-.patch |  48 ---
>  ...mple-getline-implementation-to-libmissing.patch | 187 
>  ...doing-preprocessor-magic-just-output-off_.patch | 326 
> +
>  .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
>  ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
>  ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-

This fails on qemuarm with the following error.

| ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
file or directory
|  #include 
|   ^~~~
| compilation terminated.
| Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
| make: *** [ubi-utils/ubimkvol.o] Error 1
| Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
| make: *** [ubi-utils/ubicrc32.o] Error 1
| In file included from ../git/include/common.h:38:0,
|  from ../git/ubi-utils/ubiupdatevol.c:40:
| ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
file or directory
|  #include 
|   ^~~~
| compilation terminated.
| Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
| make: *** [ubi-utils/ubiupdatevol.o] Error 1
| ERROR: oe_runmake failed

http://errors.yoctoproject.org/Errors/Build/60410/

- Armin

>  14 files changed, 598 insertions(+), 584 deletions(-)
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
>  delete mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
>  create mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
>  create mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
>  create mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
>  create mode 100644 
> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
>  rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb => 
> ubi-utils-klibc_2.0.2.bb} (64%)
>
> diff --git 
> a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>  
> b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
> deleted file mode 100644
> index 6ac2cca..000
> --- 
> a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
> +++ /dev/null
> @@ -1,87 +0,0 @@
> -From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
> -From: Andrea Adami 
> -Date: Sun, 29 Jun 2014 00:32:29 +0200
> -Subject: [PATCH 1/9] Makefile: build ubi-utils only
> -
> -We build all the static ubi-utils but actually only ubiattach is needed in
> -a minimalistic initramfs for the mount of ubi volumes.
> -
> -More fixes are needed in order to build the full mtd-utils.
> -The first issue is:
> -
> -| mkfs.jffs2.c:64:20: fatal error: libgen.h: No such file or directory
> -|  #include 
> -
> -Removing the include then the second error is:
> -
> -| 

[oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-13 Thread Andrea Adami
Update to new version and drop accepted patches.

Signed-off-by: Andrea Adami 
---
 .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
 .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
 ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
 ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
 ...-more-workarounds-for-klibc-compatibility.patch |  52 
 ...rser-remove-unused-function-needing-float.patch |  85 --
 ...ls-common.c-convert-to-integer-arithmetic.patch |  64 
 ...ubiformat.c-convert-to-integer-arithmetic.patch |  44 ---
 ...arnings-about-implicit-non-const-casting-.patch |  48 ---
 ...mple-getline-implementation-to-libmissing.patch | 187 
 ...doing-preprocessor-magic-just-output-off_.patch | 326 +
 .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
 ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
 ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-
 14 files changed, 598 insertions(+), 584 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
 rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb => 
ubi-utils-klibc_2.0.2.bb} (64%)

diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
deleted file mode 100644
index 6ac2cca..000
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
-From: Andrea Adami 
-Date: Sun, 29 Jun 2014 00:32:29 +0200
-Subject: [PATCH 1/9] Makefile: build ubi-utils only
-
-We build all the static ubi-utils but actually only ubiattach is needed in
-a minimalistic initramfs for the mount of ubi volumes.
-
-More fixes are needed in order to build the full mtd-utils.
-The first issue is:
-
-| mkfs.jffs2.c:64:20: fatal error: libgen.h: No such file or directory
-|  #include 
-
-Removing the include then the second error is:
-
-| mkfs.jffs2.c:1570:22: error: '_SC_PAGESIZE' undeclared
-| (first use in this function)
-|   page_size = sysconf(_SC_PAGESIZE);
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Andrea Adami 

- Makefile | 26 ++
- 1 file changed, 2 insertions(+), 24 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 3ce8587..8b79f71 100644
 a/Makefile
-+++ b/Makefile
-@@ -16,28 +16,11 @@ endif
- 
- TESTS = tests
- 
--MTD_BINS = \
--  ftl_format flash_erase nanddump doc_loadbios \
--  ftl_check mkfs.jffs2 flash_lock flash_unlock \
--  flash_otp_info flash_otp_dump flash_otp_lock flash_otp_write \
--  mtd_debug flashcp nandwrite nandtest mtdpart \
--  jffs2dump \
--  nftldump nftl_format docfdisk \
--  rfddump rfdformat \
--  serve_image recv_image \
--  sumtool jffs2reader
- UBI_BINS = \
-   ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
-   ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol ubiblock
- 
--BINS = $(MTD_BINS)
--BINS +=