From nobody Tue May 2 22:46:37 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q9wDZ18D0z48Gsb for ; Tue, 2 May 2023 22:46:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q9wDZ08Bkz3Md3 for ; Tue, 2 May 2023 22:46:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683067598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fC45OJ9spv9QD+zNZ4yBtO26/Wy9EWRYXPt93DdgRwY=; b=E9DV9zB2brXL0gAjY7QLPUKaNDPyPV3jmM3xnwKfyWBQ8qJVFc83gLleuW6aIWyel5hYVA 60DxFu0XP7kqRRL4nXwGA33rETqylwCefb+G9CaZhua5y2+ldUHKavhGtDjwhyJMJ0LsER O/vXHkoTRiDw0WsbxC417CvcujcA2UMCmUp/0/LVJgoi1EIgaFHRmlkN6vhEuhkHRsyqdY 7Q2/lTtkl2SKepmGmbViut7g0/6GupLaGtyE6mTughKKzFXBzwQRPGV+Fjowi0foH6rx0j jLWi2QhOTVTyTxdZ2dOkr5bCgiBtWhHCY6aEnNLsVvvLDcyr9wadafSTLfqgUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683067598; a=rsa-sha256; cv=none; b=dKx94CqfB2fm9YWHCr22vaNmkATRNQVVPdDFjulUHmcEr1ttHhQu0pJIaFK+HkzUzrJYnf Sxy9h0IzPjpNZhFr76cYq8Kf1QRVYebeZKKh7zjvZh+yzpEHu5QTqY7ZlL/FbGrTd3gOd1 UoFAeJAOkF6k+N1W9k2G9EP+bRffqfjZDE5X648fjYkPla+Q9WwVUYMQ+si498ex73932F kQzsCqAOf0EAXIuWQoELr+jXR9O09adrRIJYPK4iVVaC2g89lF9xV+4b07N9cbFSFF+25+ g2rlhFLkYCqdMcZkJrU+wIMNlz5iGP/J4A7WSt0yXr7iLYFQeFWDcMaMTJ5qdw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q9wDY6K0nz15ZF for ; Tue, 2 May 2023 22:46:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 342MkbFm081142 for ; Tue, 2 May 2023 22:46:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 342MkbKE081141 for ports-bugs@FreeBSD.org; Tue, 2 May 2023 22:46:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271214] net-mgmt/net-snmp: LDFLAGS/PKG_PREFIX bugs Date: Tue, 02 May 2023 22:46:37 +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: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ngie@FreeBSD.org 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 bug_severity priority component assigned_to reporter flagtypes.name 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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271214 Bug ID: 271214 Summary: net-mgmt/net-snmp: LDFLAGS/PKG_PREFIX bugs Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: zi@FreeBSD.org Reporter: ngie@FreeBSD.org Flags: maintainer-feedback?(zi@FreeBSD.org) Assignee: zi@FreeBSD.org As part of getting OpenSSL from ports and base to play well with one anothe= r, I moved OpenSSL from ports to /usr/local/lib/openssl . This has exposed the f= act that LDFLAGS from USES+=3Dssl isn't honored/passed through to configure pro= perly. Moreover, the port uses PKG_PREFIX, a non-existent variable, instead of PRE= FIX or LOCALBASE. ``` $ (cd ../freebsd-ports/net-mgmt/net-snmp; make -VPKG_PREFIX) $ ``` The patch below addresses both of those issues: ``` diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 0af9bccd05ee..e2e91ff73eac 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -50,7 +50,7 @@ CPE_PRODUCT=3D net-snmp USE_PERL5=3D build run USE_CSTD=3D c99 -CFLAGS+=3D -I${LOCALBASE}/include -I${PKG_PREFIX}/include +CFLAGS+=3D -I${LOCALBASE}/include -I${PREFIX}/include LDFLAGS+=3D -L${LOCALBASE}/lib CONFIGURE_ENV+=3D PERLPROG=3D"${PERL}" PSPROG=3D"${PS_CMD}" SED=3D"= ${SED}" CONFIGURE_ARGS+=3D--enable-shared --enable-internal-md5 \ @@ -60,7 +60,7 @@ CONFIGURE_ARGS+=3D--enable-shared --enable-internal-md5 \ --with-logfile=3D"${NET_SNMP_LOGFILE}" \ --with-persistent-directory=3D"${NET_SNMP_PERSISTENTDIR}" \ --with-gnu-ld --without-libwrap \ - --with-ldflags=3D"-lm -lkvm -ldevstat -L${PKG_PREFIX}/lib -L${LOCALBASE}/lib ${LCRYPTO}" + --with-ldflags=3D"-lm -lkvm -ldevstat -L${PREFIX}/lib ${LDF= LAGS}" SUB_FILES=3D pkg-message .if !defined(WITHOUT_SSP) ``` --=20 You are receiving this mail because: You are the assignee for the bug.=