Bug 248464

Summary: [patch] Fix broken build for www/nginx when NJS or IP2PROXY are enabled
Product: Ports & Packages Reporter: Ryan Steinmetz <zi>
Component: Individual Port(s)Assignee: Jochen Neumeister <joneum>
Status: Closed FIXED    
Severity: Affects Only Me CC: joneum, osa, zi
Priority: --- Keywords: buildisok
Version: LatestFlags: bugzilla: maintainer-feedback? (joneum)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Build fixes patch none

Description Ryan Steinmetz freebsd_committer freebsd_triage 2020-08-04 11:03:49 UTC
Created attachment 217001 [details]
Build fixes patch

- Fix broken build after NJS update (missing USES+=libedit)
- Fix broken build when IP2PROXY is enabled (bad comparison)
- Bump PORTREVISION
Comment 1 Ryan Steinmetz freebsd_committer freebsd_triage 2020-08-04 11:05:31 UTC
====> Running Q/A tests (stage-qa)
Error: Bad linking on [libedit.so.7] for /usr/local/sbin/njs please add USES=libedit
Comment 2 Automation User 2020-08-19 00:12:51 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/179438683
Comment 3 commit-hook freebsd_committer freebsd_triage 2020-08-21 11:35:44 UTC
A commit references this bug:

Author: joneum
Date: Fri Aug 21 11:35:05 UTC 2020
New revision: 545592
URL: https://svnweb.freebsd.org/changeset/ports/545592

Log:
  - Fix broken build after NJS update (missing USES+=libedit)
  - Fix broken build when IP2PROXY is enabled (bad comparison)

  PR:		248464
  Reported by:	zi
  Sponsored by:	Netzkommune GmbH

Changes:
  head/www/nginx/Makefile
  head/www/nginx/Makefile.extmod
  head/www/nginx/files/extra-patch-ip2proxy
Comment 4 Sergey A. Osokin freebsd_committer freebsd_triage 2020-08-22 19:36:15 UTC
Hi there,

the change related to libedit looks unclear to me because:

- it's possible to build njs module with system /lib/libedit.so.7 on FreeBSD 12.1;
- according to the FreeBSD Porters Handbook, we should specify USES=libedit if 
  a port uses the devel/libedit only.

Could you give me some lights on this.

Thank you.
Comment 5 Ryan Steinmetz freebsd_committer freebsd_triage 2020-08-22 20:59:09 UTC
It links against it, poudriere picks this up.

Remove the USES line and try to build it in poudriere if you would like additional verification.
Comment 6 Sergey A. Osokin freebsd_committer freebsd_triage 2020-08-22 21:03:18 UTC
Hi Ryan,

thanks for the update.

Is there poudriere logs available to view?

Thanks.
Comment 7 Ryan Steinmetz freebsd_committer freebsd_triage 2020-08-22 21:09:11 UTC
Sorry, did not save them.