Summary: | sys-libs/e2fsprogs-libs is missing a DEPEND on sys-devel/gettext | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick McLean <chutzpah> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=516854 https://bugs.gentoo.org/show_bug.cgi?id=549932 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
fix to build with USE=-nls on a system without gettext installed |
Description
Patrick McLean
![]() (In reply to Patrick McLean from comment #0) > Configure fails if gettext isn't installed. All ebuilds on the tree have DEPEND="nls? ( sys-devel/gettext )" So does the ebuild fail if USE=-nls and gettext is not present? If that's the case, then this is a bug. Created attachment 403702 [details]
build.log
Yes, the package fails to build if USE=-nls and gettext is not present.
Attaching a the build.log
we've specifically attempted to elide the dep. see the code in src_prepare. You need to also remove intl from the SUBDIRs in Makefile.in (which is really a Makefile.am). So this patch works: diff -Naur e2fsprogs-libs-1.42.13.orig/Makefile.in e2fsprogs-libs-1.42.13/Makefile.in --- e2fsprogs-libs-1.42.13.orig/Makefile.in 2014-08-02 20:26:22.000000000 +0000 +++ e2fsprogs-libs-1.42.13/Makefile.in 2015-05-21 12:43:53.662086288 +0000 @@ -15,7 +15,7 @@ @BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid QUOTA_LIB_SUBDIR= lib/quota -LIB_SUBDIRS=lib/et lib/ss lib/e2p $(UUID_LIB_SUBDIR) $(BLKID_LIB_SUBDIR) $(QUOTA_LIB_SUBDIR) lib/ext2fs intl +LIB_SUBDIRS=lib/et lib/ss lib/e2p $(UUID_LIB_SUBDIR) $(BLKID_LIB_SUBDIR) $(QUOTA_LIB_SUBDIR) lib/ext2fs PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests This is better done as a sed, but this inline patch shows the problem. Created attachment 403722 [details, diff]
fix to build with USE=-nls on a system without gettext installed
0) This avoids descending into intl/ if USE=-nls. I tested on a system without gettext and USE=-nls and on a system with gettext with both USE=nls and -nls.
1) I also silence the QA notice about --disable-nls which is a by-product of defining AM_GNU_GETTEXT to be an empty stub.
2) Scratch my parenthetical statement about Makefile.in being an Makefile.am. It is actually a .in. Its the configure.in file which should be configure.ac. Is upstream ever going to change that? They must be aware by now.
should be all set now in the tree; thanks for the report! Commit message: Change build-cflags patch to apply to configure since it is super tiny and the other modifications in src_prepare expect to patch the generated autotools http://sources.gentoo.org/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.42.10.ebuild?r1=1.16&r2=1.17 http://sources.gentoo.org/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.42.12.ebuild?r1=1.10&r2=1.11 http://sources.gentoo.org/sys-libs/e2fsprogs-libs/e2fsprogs-libs-1.42.13.ebuild?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-libs/e2fsprogs-libs/files/e2fsprogs-libs-1.42.10-fix-build-cflags.patch?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-libs/e2fsprogs-libs/files/e2fsprogs-libs-1.42.13-fix-build-cflags.patch?r1=1.2&r2=1.3 should be all set now in the tree; thanks for the report! Commit message: Change build-cflags patch to apply to configure since it is super tiny and the other modifications in src_prepare expect to patch the generated autotools http://sources.gentoo.org/sys-fs/e2fsprogs/e2fsprogs-1.42.10.ebuild?r1=1.24&r2=1.25 http://sources.gentoo.org/sys-fs/e2fsprogs/e2fsprogs-1.42.12.ebuild?r1=1.11&r2=1.12 http://sources.gentoo.org/sys-fs/e2fsprogs/e2fsprogs-1.42.13.ebuild?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-fs/e2fsprogs/files/e2fsprogs-1.42.10-fix-build-cflags.patch?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-fs/e2fsprogs/files/e2fsprogs-1.42.13-fix-build-cflags.patch?r1=1.2&r2=1.3 |