pkgsrc-WIP-changes archive

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

xlax: use libbsd on Linux to support strlcpy()



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Mon Jul 18 11:04:49 2022 +0200
Changeset:	b4a865380c83abcd369f3b918b7ef13c7ed6481a

Modified Files:
	xlax/Makefile
	xlax/distinfo
	xlax/patches/patch-xlax.c

Log Message:
xlax: use libbsd on Linux to support strlcpy()

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b4a865380c83abcd369f3b918b7ef13c7ed6481a

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

diffstat:
 xlax/Makefile             | 8 ++++++++
 xlax/distinfo             | 2 +-
 xlax/patches/patch-xlax.c | 7 ++++++-
 3 files changed, 15 insertions(+), 2 deletions(-)

diffs:
diff --git a/xlax/Makefile b/xlax/Makefile
index 7153ffb566..9a0f794245 100644
--- a/xlax/Makefile
+++ b/xlax/Makefile
@@ -37,6 +37,14 @@ post-install:
 	${INSTALL_DATA} ${FILESDIR}/xlax.ad 								\
 	${DESTDIR}${PREFIX}/lib/X11/app-defaults/Xlax
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"         # strlcpy()
+LDFLAGS+=   -lbsd
+.include "../../devel/libbsd/buildlink3.mk"
+.include "../../devel/libmd/buildlink3.mk"
+.endif
+
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXaw/buildlink3.mk"
 .include "../../x11/libXmu/buildlink3.mk"
diff --git a/xlax/distinfo b/xlax/distinfo
index ed81cf52dc..27ac2b4aa4 100644
--- a/xlax/distinfo
+++ b/xlax/distinfo
@@ -3,5 +3,5 @@ $NetBSD$
 BLAKE2s (xlax2.4.tar.gz) = 90e7169a24fd5c1805ff27576b876cfbc4991be4e95e2bc58644a9d0fcffdb68
 SHA512 (xlax2.4.tar.gz) = 294aad75a5ca8dc396c6e07044f66b36e7a99d6cb10a3d89f39660223e0b5063d302b34dd804b272df9d951a7f2bcf1cf1c8a3746d97ae1fb836c9bbcc9e2dd9
 Size (xlax2.4.tar.gz) = 15804 bytes
-SHA1 (patch-xlax.c) = 4237e27ff1550c165a9deb1e4c2a782bd5616a3e
+SHA1 (patch-xlax.c) = f50f7b211dd20977ed5493b7f08ff7ba54f584ac
 SHA1 (patch-xlax.h) = e6e146997a48a2ed6f15b56657e6a911fedee9c9
diff --git a/xlax/patches/patch-xlax.c b/xlax/patches/patch-xlax.c
index 4f908c2a9c..b794b8cec7 100644
--- a/xlax/patches/patch-xlax.c
+++ b/xlax/patches/patch-xlax.c
@@ -1,13 +1,18 @@
 $NetBSD$
 
 Fix warnings about prepocessor defined macros. 
+Use libbsd on Linux to support strlcpy().
 
 --- xlax.c.orig	2008-07-31 20:18:25.000000000 +0000
 +++ xlax.c
-@@ -30,6 +30,7 @@
+@@ -30,6 +30,11 @@
   *
   */
  
++#ifdef __linux__
++#include <bsd/string.h>
++#endif
++
 +#include "stddef.h"
  #include "xlax.h"
  #include "vroot.h"


Home | Main Index | Thread Index | Old Index