Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744277 - x11-libs/libxcb-1.14 with dev-util/pkgconfig-openbsd fails to build (IndexError: list index out of range)
Summary: x11-libs/libxcb-1.14 with dev-util/pkgconfig-openbsd fails to build (IndexErr...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 06:56 UTC by Andreas K. Hüttel
Modified: 2020-09-23 16:15 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,16.07 KB, text/plain)
2020-09-23 06:58 UTC, Andreas K. Hüttel
Details
build log (libxcb-1.14:20200922-223822.log.gz,7.29 KB, application/gzip)
2020-09-23 06:59 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2020-09-23 06:56:48 UTC
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
make[1]: *** [Makefile:1406: xc_misc.c] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1406: xproto.c] Error 1
make[1]: *** [Makefile:1406: dpms.c] Error 1
make[1]: *** [Makefile:1406: damage.c] Error 1
make[1]: *** [Makefile:1406: bigreq.c] Error 1
make[1]: *** [Makefile:1406: dri2.c] Error 1
make[1]: *** [Makefile:1406: composite.c] Error 1
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py", line 3361, in <module>
    module = Module(args[0], output)
IndexError: list index out of range
make[1]: *** [Makefile:1406: present.c] Error 1
make[1]: *** [Makefile:1406: dri3.c] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14-abi_x86_64.amd64/src'
make: *** [Makefile:792: all-recursive] Error 1
 * ERROR: x11-libs/libxcb-1.14::gentoo failed (compile phase):
 *   emake failed
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2020-09-23 06:58:12 UTC
Created attachment 662074 [details]
emerge --info output
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2020-09-23 06:59:13 UTC
Created attachment 662077 [details]
build log
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-09-23 12:08:12 UTC
It seems that slash gets stripped somewhere in parameters to c_client.py call.

<mgorny> dilfridge: when i build it, i have '-p /' there, and double slash in .xml path
<mgorny> in your log, there's '-p' without argument, and single slash in .xml path
<mgorny> so the .xml path is taken as argument to -p, and args[0] is indeed missing
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2020-09-23 15:59:29 UTC
The Makefile:

$(EXTSOURCES): c_client.py $(XCBPROTO_XCBINCLUDEDIR)/$(@:.c=.xml)
        $(AM_V_GEN)$(PYTHON) $(srcdir)/c_client.py      -c "$(PACKAGE_STRING)" -l "$(XORG_MAN_PAGE)" \
                -s "$(LIB_MAN_SUFFIX)" -p $(XCBPROTO_XCBPYTHONDIR) \
                $(C_CLIENT_PY_EXTRA_ARGS) \
                $(XCBPROTO_XCBINCLUDEDIR)/$(@:.c=.xml)

The build log:

/usr/bin/python3.7 /var/tmp/portage/x11-libs/libxcb-1.14/work/libxcb-1.14/src/c_client.py       -c "libxcb 1.14" -l "X Version 11" \
        -s "3" -p  \
         \
        /usr/share/xcb/xproto.xml
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2020-09-23 16:15:49 UTC
in /usr/lib64/pkgconfig/xcb-proto.pc :

xcbincludedir=${pc_sysrootdir}${datadir}/xcb
pythondir=${pc_sysrootdir}

Seems like dev-util/pkgconf returns "/" as ${pc_sysrootdir}, while dev-util/pkgconfig-openbsd returns "" ... 

Glad that it's already gone.