Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 882789

Summary: sys-libs/libosinfo-1.10.0-r1: fails to compile
Product: Gentoo Linux Reporter: Randall <ran.dall>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=882791
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emege --info sys-libs/libosinfo

Description Randall 2022-11-24 16:21:54 UTC
Created attachment 836495 [details]
build.log

Seems to fail early in the configuration, with...


meson.build:250:39: ERROR: Program or command '[' not found or not executable
Comment 1 Randall 2022-11-24 16:22:56 UTC
Created attachment 836497 [details]
emege --info sys-libs/libosinfo
Comment 2 Ionen Wolkens gentoo-dev 2022-11-24 16:31:45 UTC
Do you not have '/usr/bin/[' ? It's from coreutils

Although a build system actually relying on that seems odd.
Comment 3 Randall 2022-11-24 16:36:01 UTC
> Do you not have '/usr/bin/[' ?

Yeah, I guess I don't. Is that a USE flag or something?
Comment 4 Ionen Wolkens gentoo-dev 2022-11-24 16:38:43 UTC
(In reply to Randall from comment #3)
> > Do you not have '/usr/bin/[' ?
> 
> Yeah, I guess I don't. Is that a USE flag or something?
afaik should be installed unconditionally unless something went wrong
Comment 5 Ionen Wolkens gentoo-dev 2022-11-24 17:47:15 UTC
(In reply to Ionen Wolkens from comment #4)
> (In reply to Randall from comment #3)
> > > Do you not have '/usr/bin/[' ?
> > 
> > Yeah, I guess I don't. Is that a USE flag or something?
By "guess I don't", are you sure? ls -l '/usr/bin/[' (maybe wrong permissions or something)

Had a look at coreutils (painfully given the @<:@ and _ replacements to express [), but not seeing anything. Must be something obscure specific to your system but I have no idea.

Attaching your coreutils build log may help to see if it's building and trying to install it, aka have:

    -o src/[ src/lbracket.o

and a ginstall line for it:

     src/ginstall -c src/chroot src/hostid src/timeout src/nice src/who src/users src/pinky src/stty src/df src/stdbuf src/[

I tried with merged-usr and using dash as /bin/sh too, but the [ is still installed fine.
Comment 6 Randall 2022-11-26 00:22:31 UTC
It seems to have resolved itself, maybe, rebuilding coreutils?