NetBSD Problem Report #56601

From www@netbsd.org  Mon Jan  3 12:11:55 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6162D1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  3 Jan 2022 12:11:55 +0000 (UTC)
Message-Id: <20220103121153.B92AA1A923A@mollari.NetBSD.org>
Date: Mon,  3 Jan 2022 12:11:53 +0000 (UTC)
From: vladimir@stupin.su
Reply-To: vladimir@stupin.su
To: gnats-bugs@NetBSD.org
Subject: New option "lzo" for package source security/gnutls
X-Send-Pr-Version: www-1.0

>Number:         56601
>Category:       pkg
>Synopsis:       New option "lzo" for package source security/gnutls
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 03 12:15:00 +0000 2022
>Closed-Date:    Mon Jan 03 12:37:19 +0000 2022
>Last-Modified:  Mon Jan 03 12:40:01 +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:/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

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 03 Jan 2022 12:37:19 +0000
State-Changed-Why:
Committed, thanks.
(I also updated the buildlink3.mk file)


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56601 CVS commit: pkgsrc/security/gnutls
Date: Mon, 3 Jan 2022 12:36:53 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Jan  3 12:36:53 UTC 2022

 Modified Files:
 	pkgsrc/security/gnutls: Makefile buildlink3.mk options.mk

 Log Message:
 gnutls: add lzo option

 Based on PR 56601 by Vladimir Stupin.


 To generate a diff of this commit:
 cvs rdiff -u -r1.225 -r1.226 pkgsrc/security/gnutls/Makefile
 cvs rdiff -u -r1.41 -r1.42 pkgsrc/security/gnutls/buildlink3.mk
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/security/gnutls/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.