[LEDE-DEV] [uclibc-ng-devel] [PATCH] package/util-linux: Fix libmount build under uClibc

Alexey Brodkin Alexey.Brodkin at synopsys.com
Thu Jun 2 10:23:47 PDT 2016


Hi Max,

On Thu, 2016-06-02 at 19:31 +0300, Max Filippov wrote:
> Hi Alexey,
> 
> On Wed, Jun 1, 2016 at 10:56 AM, Alexey Brodkin
> <Alexey.Brodkin at synopsys.com> wrote:
> > 
> > We are discussing one issue with "util-linux" package building.
> > The problem is in "util-linux" wants to use alloc modifier (either "%as"
> > or "%ms") in scanf().
> > 
> > Looks like uClibc still doesn't support neither "%ms" nor "%as" (this one
> > is obsolete glibc-specific so let's not bother with it anyways).
> a while ago I touched %m support for %c and %[...] in uclibc
> (b2d27c71bd13820a4263fa7ebda4c1a4a95b501c),
> I've got an impression that %ms was working. I've expanded
> test/stdio/scanf_m.c a bit (attached) and it appears to work.
> So I'm curious, how the issue manifests itself.

During configuration of "util-linux" it tests if "%as" or "ms" could
be used when compiling a simple test. If not then "libmount" gets disabled.

Then in OpenWRT/Lede on installation of "util-linux" to staging folder
explicit "cp" is executed for copying some of "libmount" build artifacts and
since "libmount" was never built "cp" fails and so entire build stops.

-Alexey


More information about the Lede-dev mailing list