Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642132 - dev-perl/Net-DBus-1.1.0 fails to merge: sys-libs/glibc-2.26-r3 does not provide /usr/src/xlocale.h
Summary: dev-perl/Net-DBus-1.1.0 fails to merge: sys-libs/glibc-2.26-r3 does not provi...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-23 22:04 UTC by fuse809
Modified: 2017-12-24 06:34 UTC (History)
1 user (show)

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 fuse809 2017-12-23 22:04:38 UTC
I tried to merge dev-perl/Net-DBus-1.1.0 but it failed as sys-libs/glibc-2.26-r3 does not have /usr/src/xlocale.h in it. 

The exact error, with a few extra lines to give context, is:

cp lib/Net/DBus/Reactor.pm blib/lib/Net/DBus/Reactor.pm
cp lib/Net/DBus/Binding/Introspector.pm blib/lib/Net/DBus/Binding/Introspector.pm
cp lib/Net/DBus/Binding/Connection.pm blib/lib/Net/DBus/Binding/Connection.pm
cp lib/Net/DBus/Annotation.pm blib/lib/Net/DBus/Annotation.pm
cp lib/Net/DBus/Test/MockIterator.pm blib/lib/Net/DBus/Test/MockIterator.pm
cp lib/Net/DBus/Binding/Bus.pm blib/lib/Net/DBus/Binding/Bus.pm
cp lib/Net/DBus/Test/MockConnection.pm blib/lib/Net/DBus/Test/MockConnection.pm
cp lib/Net/DBus/Object.pm blib/lib/Net/DBus/Object.pm
cp lib/Net/DBus/Binding/PendingCall.pm blib/lib/Net/DBus/Binding/PendingCall.pm
cp lib/Net/DBus/Test/MockMessage.pm blib/lib/Net/DBus/Test/MockMessage.pm
mv DBus.xsc DBus.c
x86_64-pc-linux-gnu-gcc -c  -Wall -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -march=haswell   -DVERSION=\"1.1.0\" -DXS_VERSION=\"1.1.0\" -fPIC "-I/usr/lib64/perl5/5.26.0/x86_64-linux/CORE"  -DNET_DBUS_DEBUG=1 DBus.c
In file included from DBus.xs:21:0:
/usr/lib64/perl5/5.26.0/x86_64-linux/CORE/perl.h:738:24: fatal error: xlocale.h: No such file or directory
 #   include <xlocale.h>
                        ^
compilation terminated.
make: *** [Makefile:377: DBus.o] Error 1


emerge -pqv '=dev-perl/Net-DBus-1.1.0'

returns:

[ebuild  N    ] dev-perl/Net-DBus-1.1.0  USE="{-test}"

while emerge --info returns:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python3.5/site-packages/_emerge/main.py", line 1250, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python3.5/site-packages/_emerge/actions.py", line 3255, in run_action
    emerge_config.trees, emerge_config.opts, valid_atoms)
  File "/usr/lib64/python3.5/site-packages/_emerge/actions.py", line 1654, in action_info
    head_commit = sync.retrieve_head(options=options)
  File "/usr/lib64/python3.5/site-packages/portage/sync/modules/git/git.py", line 142, in retrieve_head
    cwd=portage._unicode_encode(self.repo.location))))
  File "/usr/lib64/python3.5/subprocess.py", line 316, in check_output
    **kwargs).stdout
  File "/usr/lib64/python3.5/subprocess.py", line 383, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib64/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.5/subprocess.py", line 1211, in _execute_child
    executable = os.fsencode(executable)
  File "/usr/lib64/python3.5/os.py", line 864, in fsencode
    raise TypeError("expect bytes or str, not %s" % type(filename).__name__)
TypeError: expect bytes or str, not NoneType

(unfortunately I was trying to install it in a chroot)
Comment 1 fuse809 2017-12-23 22:07:20 UTC
Tried uploading the build log but it failed. Here it is in a pastebin: https://paste.pound-python.org/show/K3mmCIr026ZWCHfLmW7L/.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-12-24 06:27:58 UTC
/usr/lib64/perl5/5.26.0/x86_64-linux/CORE/perl.h:738:24: fatal error: xlocale.h: 

^ This file comes from dev-lang/perl, and you need to reinstall dev-lang/perl somewhat recently to get the patch that fixes this:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59e5b94ccd20a044eaa752ca5077c7d6d2b065b4

However, seeing the effects of this patch are not merely build time, and affect later, we should probably consider -r1 bumping Perl too.
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-12-24 06:34:38 UTC
Ah ... it was -r1 bumped, just only done in 5.26.1

So yeah, please upgrade to 5.26.1-r1 and if this problem persists, please reopen this bug.