Opened 18 months ago
Last modified 17 months ago
#67421 assigned defect
gtk3 fails to build with +universal
Reported by: | RobbieNutland (Robbie Nutland) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cooljeanius (Eric Gallager) | |
Port: | gtk3 |
Description (last modified by RobbieNutland (Robbie Nutland))
Just making a note of this should it be of benefit to anyone else.
The build and destroot phases of a 'gtk3 +universal' install fail on macos 10.13.6 as ninja complains it does not understand build targets: 'CC='${configure.cc} -arch ${arch} and CC_FOR_BUILD='${configure.cc} -arch ${arch}'.
Updating the gtk3 Portfile per the below resolves the issue. (For context, 'Portfile' has been updated and successfully builds, and 'Portfile backup' is the original file.)
diff /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/gnome/gtk3/Portfile /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/gnome/gtk3/Portfile\ backup 91,92c91,94 < lappend merger_build_env(${arch}) "CC=${configure.cc} -arch ${arch}" "CC_FOR_BUILD=${configure.cc} -arch ${arch}" "LDFLAGS=-L/opt/local/lib -arch ${arch}" < lappend merger_destroot_env(${arch}) "CC=${configure.cc} -arch ${arch}" "CC_FOR_BUILD=${configure.cc} -arch ${arch}" "LDFLAGS=-L/opt/local/lib -arch ${arch}" --- > lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}' > lappend merger_build_args(${arch}) CC_FOR_BUILD='${configure.cc} -arch ${arch}' > lappend merger_destroot_args(${arch}) CC='${configure.cc} -arch ${arch}' > lappend merger_destroot_args(${arch}) CC_FOR_BUILD='${configure.cc} -arch ${arch}' 301d302 <
Much like the ticket I also recently raised for 'groff', this is a selfish change just to aid those that may be attempting an install from a similar macos environment. I cannot confirm how this would impact other machines such as more recent arm-based macs.
Happy to provide more info upon request :)
Change History (4)
comment:1 Changed 18 months ago by RobbieNutland (Robbie Nutland)
Description: | modified (diff) |
---|
comment:2 Changed 18 months ago by mascguy (Christopher Nielsen)
Owner: | set to mascguy |
---|---|
Status: | new → assigned |
comment:3 Changed 18 months ago by jmroot (Joshua Root)
Summary: | Building with '+universal' variant on MacOS 10.13.6 → gtk3 fails to build with +universal |
---|
comment:4 Changed 17 months ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
See also: https://lists.macports.org/pipermail/macports-users/2023-April/052054.html