pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/hplip hplip: adjust a test condition for older N...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39e285735180
branches:  trunk
changeset: 375191:39e285735180
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Tue Mar 08 22:55:41 2022 +0000

description:
hplip: adjust a test condition for older NetBSD (NFC)

Avoid the upper limit of 9.x, since 10.x will be branched soon and, as
a bonus, simplify the statement.

diffstat:

 print/hplip/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 81cfedf8039a -r 39e285735180 print/hplip/Makefile
--- a/print/hplip/Makefile      Tue Mar 08 22:32:53 2022 +0000
+++ b/print/hplip/Makefile      Tue Mar 08 22:55:41 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.98 2021/12/08 16:06:13 adam Exp $
+# $NetBSD: Makefile,v 1.99 2022/03/08 22:55:41 gutteridge Exp $
 
 DISTNAME=      hplip-3.19.12
 PKGREVISION=   13
@@ -152,7 +152,7 @@
 SUBST_SED.fix-paths-6+=                -e 's,"/usr/bin/gs","${PREFIX}/bin/gs",g'
 
 # NetBSD has strnlen(3) since 5.99.12
-.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M5.99.*) && empty(OS_VERSION:M[6-9].*)
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 059912
 SUBST_CLASSES+=                        fix-strnlen
 SUBST_STAGE.fix-strnlen=       post-configure
 SUBST_MESSAGE.fix-strnlen=     Replacing strnlen() with strlen() in two C++ files.



Home | Main Index | Thread Index | Old Index