pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56601: New option "lzo" for package source security/gnutls



>Number:         56601
>Category:       pkg
>Synopsis:       New option "lzo" for package source security/gnutls
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 03 12:15:00 +0000 2022
>Originator:     Vladimir Stupin
>Release:        pkgsrc trunk Thu Dec 30 17:24:35 2021 +0000
>Organization:
>Environment:
NetBSD sysbuild.vm.stupin.su 9.2_STABLE NetBSD 9.2_STABLE (MODULAR_M2) #2: Tue Nov 23 02:20:27 +05 2021  sysbuild%sysbuild.vm.stupin.su@localhost:/home/sysbuild/i386/obj/home/sysbuild/src/sys/arch/i386/compile/MODULAR_M2 i386
>Description:
New option "lzo" for package source security/gnutls.

I needed to build security/gnutls with disabled lzo option to elimiate vulnerable package lzo from my system. I am added new build option to pacakage source security/gnutls. Patch attached.
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnutls/Makefile,v
retrieving revision 1.223
diff -u -r1.223 Makefile
--- Makefile	29 Sep 2021 19:00:12 -0000	1.223
+++ Makefile	2 Jan 2022 09:21:56 -0000
@@ -94,7 +94,6 @@
 post-install:
 	cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} *.c ${DESTDIR}${EGDIR}
 
-.include "../../archivers/lzo/buildlink3.mk"
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 BUILDLINK_API_DEPENDS.gmp+=		gmp>=5.0
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnutls/options.mk,v
retrieving revision 1.3
diff -u -r1.3 options.mk
--- options.mk	14 May 2020 14:30:02 -0000	1.3
+++ options.mk	2 Jan 2022 09:21:56 -0000
@@ -1,7 +1,8 @@
 # $NetBSD: options.mk,v 1.3 2020/05/14 14:30:02 nikita Exp $
 
 PKG_OPTIONS_VAR=	PKG_OPTIONS.gnutls
-PKG_SUPPORTED_OPTIONS=	dane guile
+PKG_SUPPORTED_OPTIONS=	dane guile lzo
+PKG_SUGGESTED_OPTIONS=	lzo
 
 .include "../../mk/bsd.options.mk"
 
@@ -20,3 +21,10 @@
 .else
 CONFIGURE_ARGS+=	--disable-guile
 .endif
+
+.if !empty(PKG_OPTIONS:Mlzo)
+.include "../../archivers/lzo/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-lzo
+.else
+CONFIGURE_ARGS+=	--disable-lzo
+.endif


Home | Main Index | Thread Index | Old Index