Summary: | security/seahorse: link failure on 11.x (old ld(1)) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | John Hein <jcfyecrayz> | ||||||
Component: | Individual Port(s) | Assignee: | Mateusz Piotrowski <0mp> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | 0mp, ddrinnon, lantw44 | ||||||
Priority: | --- | Keywords: | patch-ready, regression | ||||||
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(gnome) |
||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
URL: | http://beefy9.nyi.freebsd.org/data/114amd64-default/553941/logs/seahorse-3.36.2_1.log | ||||||||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249418 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249990 |
||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 251004 | ||||||||
Attachments: |
|
Description
John Hein
2020-09-29 01:31:08 UTC
Created attachment 218395 [details]
[patch] avoid old ld(1) due to link problems after switch to meson
Use -fuse-lld=lld to avoid link errors using old ld(1) on 11.x
While here, pet portlint issues (placement of USES) & do sorting. No need to bump PORTREVISION.
Request maintainer-approval from recent committer (since gnome@ is not responsive of late).
Created attachment 218598 [details]
[patch] avoid old ld(1) due to link problems after switch to meson (v2)
Refresh patch after r551608.
Effectively no change. Still:
- fix link failure on 11.x
- address portlint warning (USES ordering)
- request maintainer-approval from recent committer that broke it
QA:
- poudriere testport on 11/amd64 and 11/i386 - ok
*** Bug 250196 has been marked as a duplicate of this bug. *** Timeout? FYI, log of build failure from FreeBSD package builder... http://beefy3.nyi.freebsd.org/data/114amd64-quarterly/551243/logs/seahorse-3.36.2.log I'll take a look. A commit references this bug: Author: 0mp Date: Fri Nov 6 09:19:33 UTC 2020 New revision: 554175 URL: https://svnweb.freebsd.org/changeset/ports/554175 Log: Use -fuse-lld=lld to avoid link errors using old ld(1) on 11.x PR: 249974 Submitted by: John Hein <jcfyecrayz__liamekaens_com> Approved by: portmgr blanket MFH: 2020Q4 Changes: head/security/seahorse/Makefile Committed, thanks! A commit references this bug: Author: 0mp Date: Fri Nov 6 11:09:06 UTC 2020 New revision: 554179 URL: https://svnweb.freebsd.org/changeset/ports/554179 Log: Fix the conditional added in r554175 This should have been caught by my poudriere testruns. Sorry for the breakage. PR: 249974 Approved by: portmgr blanket MFH: 2020Q4 Changes: head/security/seahorse/Makefile A commit references this bug: Author: 0mp Date: Sun Nov 8 21:28:09 UTC 2020 New revision: 554652 URL: https://svnweb.freebsd.org/changeset/ports/554652 Log: MFH: r554179 Fix the conditional added in r554175 This should have been caught by my poudriere testruns. Sorry for the breakage. PR: 249974 Approved by: portmgr (build fix) Changes: _U branches/2020Q4/ branches/2020Q4/security/seahorse/Makefile (In reply to Mateusz Piotrowski from comment #7) Thanks, Mateusz. I have come to understand that powerpc64/12.x does not have lld, so it may be appropriate to change the -fuse-ld=lld conditional logic based on OSVERSION that was added: .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 LDFLAGS+= -fuse-ld=lld .endif (see also discussion at bug 249990 comment 5) I don't have a powerpc build environment to test with yet, but if it turns out that powerpc64/11.x (for example) fails to build, the following may be necessary. This is a bit harder to find when it comes time to remove support for 11.x, but I don't know of a way that is better at this time. It does seem like meson abuses some things and triggers the link problems seen in this port and some others - most (all?) of the situations where this linking problem is showing up are meson-based. So probably the best universal fix is to fix meson (e.g., don't put anything but lib specifications between --start-group and --end-group) but I do not have a meson patch right now. # This can be removed after OSVERSION < 1200000 is no longer supported .if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld LDFLAGS+= -fuse-ld=lld .endif I know this is closed, but I am adding this comment in case powerpc builds fail. |