From owner-freebsd-ports-bugs@freebsd.org Sat Jan 16 04:43:19 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED5A3A6DA7D for ; Sat, 16 Jan 2016 04:43:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC73E10FB for ; Sat, 16 Jan 2016 04:43:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0G4hIf8042462 for ; Sat, 16 Jan 2016 04:43:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 206304] net-mgmt/net-snmp [PATCH] Optionalize libpkg support to better support libressl Date: Sat, 16 Jan 2016 04:43:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mcdouga9@egr.msu.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: zi@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2016 04:43:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206304 Bug ID: 206304 Summary: net-mgmt/net-snmp [PATCH] Optionalize libpkg support to better support libressl Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: zi@FreeBSD.org Reporter: mcdouga9@egr.msu.edu Assignee: zi@FreeBSD.org Keywords: patch Flags: maintainer-feedback?(zi@FreeBSD.org) Created attachment 165650 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D165650&action= =3Dedit Patch to make libpkg support optional I am submitting this patch so the "pkg" support in net-snmp can be disabled using a compile option on the port. Aside from the obvious effect, it can = help avoid a SSL library conflict. I build all my packages in a customized poudriere jail that has NO openssl = or libressl support in it at all because I expect my compiled packages to pull= in libressl. I do this to avoid any chance of accidentally using openssl from base or having software link to both openssl and libressl. net-snmp will l= ink with both libressl and openssl because a currently non-optional patch adds -lpkg. pkg is currently required to compile with openssl, at least without= a lot of work.=20=20 In a jail without base openssl like mine, trying to compile net-snmp fails because -lpkg is used unconditionally and libpkg cannot find the openssl library it had been linked against. This example is represented by the net-snmp-5.7.3_12-LIBPKG.log poudriere log that I will attach showing the default behavior on my jail (but from my updated port). Some site-specific make.conf customization has been removed to avoid revealing too much about = our site. net-snmp-5.7.3_12-noLIBPKG.log is an example where I've UNSET the new LIBPKG compile option which causes it to skip using the patch which adds -lpkg to = the compile. You can see in the log where it skips the patch extra-patch-agent_Makefile.in which I renamed from patch-agent_Makefile.in.= =20 Again in this log I skipped some site-specific make.conf customization. I tested that the patch applies cleanly to the port, I tested it in poudrie= re and attached logs, I bumped the PORTREVISION. I attempted to use a newer "options helper" LIBPKG_EXTRA_PATCHES but I could not get it to work. I resorted to a 3 line .if conditional which matches the style from the rest = of the Makefile. Please consider applying this to the port so I don't have to "rm /usr/ports/net-mgmt/net-snmp/files/patch-agent_Makefile.in" every time I svn update ports (or at minimum each time net-snmp updates, but easier to remem= ber to always do it). I am willing to make changes and discuss if needed.=20 Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=