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

Bug 926600

Summary: media-gfx/graphviz-10.0.1 fails to build: ./configure: 26789: Bad substitution
Product: Gentoo Linux Reporter: look
Component: Current packagesAssignee: David Seifert <soap>
Status: RESOLVED FIXED    
Severity: normal CC: contyk, look, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.com/graphviz/graphviz/-/merge_requests/3636
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 526268    
Attachments: The build log.
The configure log.
The build environment.
The emerge --info output

Description look 2024-03-09 13:51:53 UTC
Hello. The latest update of graphviz fails to build on my computer.

Build log: https://0x0.st/HhNh.txt
config.log: https://0x0.st/HhNF.txt (this is where the error is!)
environment: https://0x0.st/HhNC.txt

This is the configure error:

configure:19803: checking for mach-o/dyld.h
configure:19803: x86_64-pc-linux-gnu-gcc -c -march=native -O3 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -pipe -Wall -Wextra -Wmissing-include-dirs -Wswitch-default -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wtrampolines -Wlogical-op -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall  conftest.c >&5
conftest.c:98:10: fatal error: mach-o/dyld.h: No such file or directory
   98 | #include <mach-o/dyld.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-09 17:17:10 UTC
Please don't link to pastebins in bug reports. They expire and may not be accessible behind firewalls etc. please use attachments
Comment 2 look 2024-03-09 19:00:38 UTC
Created attachment 887187 [details]
The build log.
Comment 3 look 2024-03-09 19:00:51 UTC
Created attachment 887188 [details]
The configure log.
Comment 4 look 2024-03-09 19:01:06 UTC
Created attachment 887189 [details]
The build environment.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-09 20:06:11 UTC
emerge --info too please
Comment 6 look 2024-03-09 20:11:29 UTC
Created attachment 887191 [details]
The emerge --info output
Comment 7 Petr Ĺ abata 2024-03-09 21:38:25 UTC
The configure script includes a bashism and which fails with dash as /bin/sh.
Comment 8 Larry the Git Cow gentoo-dev 2024-03-10 15:24:34 UTC
The bug has been closed via the following commit(s):

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

commit dbe010c3433f0b88a916563473136e8edf10173c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-10 15:23:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-10 15:24:23 +0000

    media-gfx/graphviz: temporarily force bash
    
    The change has been reverted upstream, but just force Bash temporarily rather than
    add a patch we know we'll have to remove on the next release anyway.
    
    See https://gitlab.com/graphviz/graphviz/-/merge_requests/3636.
    
    Closes: https://bugs.gentoo.org/926600
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/graphviz/graphviz-10.0.1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)