Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443028 - sys-fs/udev: should not require intltool/gettext
Summary: sys-fs/udev: should not require intltool/gettext
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 00:15 UTC by SpanKY
Modified: 2014-02-18 08:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2012-11-14 00:15:32 UTC
the current systemd merge ends up requiring intltool/gettext at configure time, but afaict, it isn't used at build/install time.  can we please kill that off as it bloats embedded/headless systems that do not need nls.  although this might be based on some USE flags like doc/gudev or something.
Comment 1 William Hubbs gentoo-dev 2012-11-14 00:22:03 UTC
The udev ebuild passes --disable-nls to the configure script, so it
shouldn't be complaining about nls. Can you attach a build log?
Comment 2 SpanKY gentoo-dev 2012-11-14 03:51:24 UTC
checking whether NLS is requested... no
./configure: line 12209: intltool-update: command not found
checking for intltool >= 0.40.0...  found
configure: error: Your intltool is too old.  You need intltool 0.40.0 or later.

if i fake that out, it moves on to other intltools:
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... no
checking for intltool-extract... no
configure: error: The intltool scripts were not found. Please install intltool.

if i fake those out, it moves on to gettext tools:
checking for xgettext... no
checking for msgmerge... no
checking for msgfmt... no
checking for gmsgfmt... no
configure: error: GNU gettext tools not found; required for intltool

if i fake those out, it moves on to perl:
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.12.4
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
Comment 3 SpanKY gentoo-dev 2012-11-17 20:12:37 UTC
this gets me pass configure:

# Disable intltool requirements.
sed -i \
    -e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \
    -e '/XML::Parser perl module is required for intltool/s|^|:|' \
    configure
eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true

# Disable gettext requirements.
eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true
Comment 4 William Hubbs gentoo-dev 2013-01-09 17:59:01 UTC
@vapier:
I am chatting with upstream about why intltool is a hard dependency.
The issue is that intltool is used to translate the policykit files and
installation of these files is not optional for systemd.

We may be able to come up with a patch that disables this for now, but
the comment was that intltool may be used for other things in the
future.
Comment 5 William Hubbs gentoo-dev 2013-01-09 18:04:02 UTC
@vapier:
If we do this, I would prefer a patch for configure.ac/Makefile.am which
I could keep up to date with git and maybe send upstream for discussion
there.

Thanks,

William
Comment 6 William Hubbs gentoo-dev 2013-01-09 18:07:19 UTC
@vapier:
The approach that was suggested on the channel is that we could come up
with a switch to --enable/--disable-polkit and make the intltool
processing depend on that.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-01-17 18:08:59 UTC
(In reply to comment #3)
> this gets me pass configure:
> 
> # Disable intltool requirements.
> sed -i \
>     -e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \
>     -e '/XML::Parser perl module is required for intltool/s|^|:|' \
>     configure
> eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true
> 
> # Disable gettext requirements.
> eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true

This is in 197-r3 for now. I'm keeping this bug open since WilliamH wanted to work on a upstream patch.

Need to solve these major'ish issues for 197 so we can deprecate 171 at some point.

There is still bug 443030 to worry about for embedded.
Comment 8 SpanKY gentoo-dev 2013-01-18 02:20:42 UTC
latest one in the tree seems to work nicely on my uclibc box wrt this issue
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2013-01-20 10:00:16 UTC
This can be worked on just like bugs 452760 and 443030 without having this open. Anything in the ebuild can be impoved at will.