Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Need help with sys-fs/e2fsprogs-1.42.11 build failure
Date: Sun, 20 Jul 2014 14:45:21
Message-Id: CAJ0EP40-PMuM9omxY2OhqOZhPoe-AcNBqNi7HtJhRpPXgfozBg@mail.gmail.com
In Reply to: [gentoo-dev] Need help with sys-fs/e2fsprogs-1.42.11 build failure by Lars Wendler
1 On Sun, Jul 20, 2014 at 6:47 AM, Lars Wendler <polynomial-c@g.o> wrote:
2 > Hi guys,
3 >
4 > I just add e2fsprogs{,-libs}-1.42.11 p.masked to our tree as I get a
5 > strange build failure in e2fsprogs-1.42.11:
6 >
7 > x86_64-pc-linux-gnu-gcc -I. -I../../lib -I../../lib -D_GNU_SOURCE
8 > -march=barcelona -mtune=barcelona -O2 -pipe -DHAVE_CONFIG_H
9 > -I../../debugfs -c tst_libext2fs.c -o tst_libext2fs.o make[2]: *** No
10 > rule to make target '../../lib/libss.a', needed by 'tst_libext2fs'.
11 > Stop. make[2]: Leaving directory
12 > '/var/tmp/portage/sys-fs/e2fsprogs-1.42.11/work/e2fsprogs-1.42.11/lib/ext2fs'
13 > Makefile:395: recipe for target 'all-libs-recursive' failed
14 >
15 > The above run was with MAKEOPTS set to -j1 to make sure it's not a
16 > parallel make issue.
17 >
18 > I already looked into the sources but I can't figure out where the
19 > problem comes from. Any help is highly appreciated.
20 >
21
22 This commit introduced a new test program (tst_libext2fs) which gets
23 build by default (see the "all" target).
24
25 https://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/commit/lib/ext2fs/Makefile.in?id=ceff962c67f19724e6fffe92adfdfff0cd462722
26
27 This program gets linked with DEPSTATIC_LIBSS, which defaults to $(LIB)/libss.a.
28
29 The e2fsprogs ebuild does not build $(LIB)/libss.a; it expects that to
30 have been build/installed by e2fsprogs-libs.
31
32 There is a sed statement in src_prepare which replaces most of these
33 LIBXX variables with references to the system libs (-lss). However,
34 this sed statement does not replace DEPSTATIC_LIBXX.