Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922916 - dev-java/jna-5.14.0 fails to build: /usr/include/X11/Xlib.h:44:10: fatal error: X11/X.h: No such file or directory
Summary: dev-java/jna-5.14.0 fails to build: /usr/include/X11/Xlib.h:44:10: fatal erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 922472
  Show dependency tree
 
Reported: 2024-01-25 16:13 UTC by matoro
Modified: 2024-01-29 08:27 UTC (History)
2 users (show)

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


Attachments
build.log and emerge --info (file_922916.txt,12.34 KB, text/plain)
2024-01-25 16:14 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-01-25 16:13:17 UTC
This appears to be an artifact of the new binary package system.  x11-libs/libX11 has only has a DEPEND on x11-base/xorg-proto, not RDEPEND, so when it's installed from binpkg, it doesn't install xorg-proto at all.  But the headers it installs include headers from xorg-proto.

make -j8 -j1 CC=powerpc64le-unknown-linux-gnu-gcc STRIP=true DYNAMIC_LIBFFI=true 
powerpc64le-unknown-linux-gnu-gcc -O2 -pipe -mcpu=power9 -mtune=power9 -Wall -Wno-unused -Wno-parentheses -fPIC  -O2 -fno-omit-frame-pointer -fno-strict-aliasing  -D_REENTRANT -DHAVE_PROTECTION -I"/opt/openjdk-bin-8.382_p05/include" -I"/opt/openjdk-bin-8.382_p05/include/linux" -I"../build/native" -I/include -DJNA_JNI_VERSION='"5.1.0 "' -DCHECKSUM='"74e8f8e397c43487738c5c1f1363498b "' -I/usr/lib64/libffi/include  -Wno-unknown-warning-option -Wno-clobbered -Wno-unused-variable -c dispatch.c -o ../build/native/dispatch.o
In file included from /opt/openjdk-bin-8.382_p05/include/linux/jawt_md.h:29,
                 from dispatch.c:118:
/usr/include/X11/Xlib.h:44:10: fatal error: X11/X.h: No such file or directory
   44 | #include <X11/X.h>
      |          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:463: ../build/native/dispatch.o] Error 1

Reproducible: Always
Comment 1 matoro archtester 2024-01-25 16:14:01 UTC
Created attachment 883121 [details]
build.log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-01-29 08:27:59 UTC
The bug has been closed via the following commit(s):

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

commit a463c107217aec060a2e10b7644ce0342c1c6359
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-01-29 08:01:11 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-01-29 08:27:36 +0000

    dev-java/jna: DEPEND on xorg-proto:0
    
    Closes: https://bugs.gentoo.org/922916
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/35065
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/jna/{jna-5.14.0.ebuild => jna-5.14.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)