| Summary: | comms/ncid: fix build with GCC-based architectures | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Piotr Kubaj <pkubaj> | ||||||
| Component: | Individual Port(s) | Assignee: | Vinícius Zavam <egypcio> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Only Me | CC: | araujo, beat, linimon, pkubaj, rene | ||||||
| Priority: | --- | Keywords: | patch | ||||||
| Version: | Latest | Flags: | egypcio:
maintainer-feedback+
|
||||||
| Hardware: | Any | ||||||||
| OS: | Any | ||||||||
| Attachments: |
|
||||||||
(In reply to Piotr Kubaj from comment #0) hey, hi. many thanks for reporting it! appreciated :) I should test it in a few and write back a definitive feedback. ty again. quick question: should the ARCH be checked, instead of the existing lib? - GCC is not part of base system for amd64/i386, so that should match only ppc64. right? PS: should you provide any extra patch, please remember to bump the PORTREVISION and try to use 'svn diff' to generate it. PPS: 'svn diff --diff-cmd=diff -x -U99999 > /tmp/mypatchfile.diff' thank you again! (In reply to Vinícius Zavam from comment #2) We could try matching ARCH, but since GCC architectures may move to Clang in the future, this would need to be changed. Checking for libstdc++ is safe against future errors. Bumping PORTREVISION is not necessary, because there's no change for Clang architectures and it's a build fix for GCC architectures (this port currently doesn't build on them). I used svn to generate this diff: root@talos:$/usr/ports/comms/ncid$ svnlite diff Index: Makefile =================================================================== --- Makefile (revision 491546) +++ Makefile (working copy) @@ -59,6 +59,10 @@ -e 's|$$(prefix)/share|$${PREFIX}/share|g' \ -e 's|$$(SHARE)/man|$${MANPREFIX}/man/|g' \ -e 's|$$(SHARE)/ncid|$${DATADIR}|g' ${WRKSRC}/Makefile +.if exists(/usr/lib/libstdc++.so) + @${REINPLACE_CMD} -e 's|-Wno-stringop-truncation||g' \ + ${WRKSRC}/Makefile ${WRKSRC}/server/Makefile +.endif do-install: @${MKDIR} ${STAGEDIR}${ETCDIR} (In reply to Piotr Kubaj from comment #3) fair point indeed, regarding the GCC in base! :) I mentioned the 'svn diff' before meaning that patches should be made in the PORTSDIR (ports' root directory, like /usr/ports) and with extra context (using '--diff-cmd=diff -x -U99999'). also, I finished the testport routines for this one: after the applied patch being merged it built just fine for amd64, armv6 and i386 on 11.2, 12.0 and HEAD. we shall wait a bit to get my mentors approval, and I can push it to the repo. thank you again Piotr! KR, Created attachment 201503 [details]
comms/ncid: fix build with GCC-based architectures
attaching proposed merge here.
# svn diff --diff-cmd=diff -x -U99999 > ports_r491553_PATCH__comms_ncid.diff
Approved. A commit references this bug: Author: egypcio Date: Wed Jan 30 08:56:13 UTC 2019 New revision: 491610 URL: https://svnweb.freebsd.org/changeset/ports/491610 Log: comms/ncid: fix build with GCC-based architectures PR: 235289 Reported by: Piotr Kubaj <pkubaj % anongoth.pl> Approved by: rene (mentor) Sponsored by: IntegriCloud Changes: head/comms/ncid/Makefile Committed! Thanks to you and IntegriCloud :) |
Created attachment 201497 [details] patch Base GCC doesn't support -Wno-stringop-truncation. Remove it when base GCC is used. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.