pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/xlockmore Fixed x11/xlockmore so it compiles with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/137b4c2dd0be
branches:  trunk
changeset: 375317:137b4c2dd0be
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Thu Feb 08 16:03:12 2018 +0000

description:
Fixed x11/xlockmore so it compiles with RELRO flags.

diffstat:

 x11/xlockmore/Makefile                         |   4 +-
 x11/xlockmore/distinfo                         |   6 +-
 x11/xlockmore/patches/patch-ac                 |  23 ------------
 x11/xlockmore/patches/patch-ae                 |  36 -------------------
 x11/xlockmore/patches/patch-modes_Makefile.in  |  47 ++++++++++++++++++++++++++
 x11/xlockmore/patches/patch-xglock_Makefile.in |  34 ++++++++++++++++++
 6 files changed, 86 insertions(+), 64 deletions(-)

diffs (187 lines):

diff -r 28e8484df90d -r 137b4c2dd0be x11/xlockmore/Makefile
--- a/x11/xlockmore/Makefile    Thu Feb 08 14:55:50 2018 +0000
+++ b/x11/xlockmore/Makefile    Thu Feb 08 16:03:12 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.128 2018/01/28 20:11:10 wiz Exp $
+# $NetBSD: Makefile,v 1.129 2018/02/08 16:03:12 jaapb Exp $
 
-PKGREVISION= 9
+PKGREVISION= 10
 .include "Makefile.common"
 
 COMMENT=       Like the XLock session-locker/screensaver, but with more
diff -r 28e8484df90d -r 137b4c2dd0be x11/xlockmore/distinfo
--- a/x11/xlockmore/distinfo    Thu Feb 08 14:55:50 2018 +0000
+++ b/x11/xlockmore/distinfo    Thu Feb 08 16:03:12 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.54 2015/11/04 03:29:08 agc Exp $
+$NetBSD: distinfo,v 1.55 2018/02/08 16:03:12 jaapb Exp $
 
 SHA1 (xlockmore-5.46.tar.xz) = 849ba21a6a82493b0b352d5fbd9212e6d4581752
 RMD160 (xlockmore-5.46.tar.xz) = 978f8119c89c1c954ec5bc5f8cc8d8edea7c8c8e
@@ -6,7 +6,7 @@
 Size (xlockmore-5.46.tar.xz) = 1610356 bytes
 SHA1 (patch-aa) = a8af264d041df95d0773cbe27984f9461e865722
 SHA1 (patch-ab) = 918be6904fb2a1b616dfbf7ac3d9759cc39d1608
-SHA1 (patch-ac) = 465a9e5e9f6310b7207a0a71dca8cbdca0f33922
 SHA1 (patch-ad) = 619c3413ae4bfdb420c77867062670dce336f5d8
-SHA1 (patch-ae) = 2dd755a188cf6701fd822472be169d8583ef04be
 SHA1 (patch-config.cygport) = c120f9b9f9ca6a9ba60f8e46e9c2dd23225079d9
+SHA1 (patch-modes_Makefile.in) = 47236aa529a5324ccd7133da7e25ac96d4b2a60e
+SHA1 (patch-xglock_Makefile.in) = 46a9860c0fac56d6d860adb4ffb0dbff5c79d82c
diff -r 28e8484df90d -r 137b4c2dd0be x11/xlockmore/patches/patch-ac
--- a/x11/xlockmore/patches/patch-ac    Thu Feb 08 14:55:50 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-$NetBSD: patch-ac,v 1.13 2015/04/15 07:31:15 spz Exp $
-
---- xglock/Makefile.in.orig    2010-04-19 13:34:35.000000000 +0000
-+++ xglock/Makefile.in
-@@ -117,14 +117,14 @@ install_xglock : install-program install
-       @ $(ECHO) ""
- 
- install-program : xglock
--      $(top_srcdir)/mkinstalldirs $(bindir)
--      $(INSTALL_PROGRAM) xglock$(E) $(bindir)
-+      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir)
-+      $(INSTALL_PROGRAM) xglock$(E) ${DESTDIR}$(bindir)
- 
- install-man :
- 
- install-ad :
--      $(top_srcdir)/mkinstalldirs $(datadir)/xlock
--      $(INSTALL_PROGRAM) $(top_srcdir)/xglock/xglockrc $(datadir)/xlock/xglockrc
-+      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir)/xlock
-+      $(INSTALL_DATA) $(top_srcdir)/xglock/xglockrc ${DESTDIR}$(datadir)/xlock/xglockrc
- 
- uninstall : @UNINSTALL_XGLOCK@
- 
diff -r 28e8484df90d -r 137b4c2dd0be x11/xlockmore/patches/patch-ae
--- a/x11/xlockmore/patches/patch-ae    Thu Feb 08 14:55:50 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-$NetBSD: patch-ae,v 1.8 2015/04/15 07:31:15 spz Exp $
-
---- modes/Makefile.in.orig     2015-02-13 04:24:37.000000000 +0000
-+++ modes/Makefile.in
-@@ -600,21 +600,22 @@ install : install-program install-man in
-       @ $(ECHO) ""
- 
- install-program : xlock
--      $(top_srcdir)/mkinstalldirs $(bindir)
--      $(INSTALL_PROGRAM) $(INSTPGMFLAGS) $(UTILOBJDIR)xlock$(E) $(bindir)
--      @MODULES@mkdir -p $(DEF_MODULEPATH)
--      @MODULES@cp *.xlk $(DEF_MODULEPATH)
--      @MODULES@cp glx/*.xlk $(DEF_MODULEPATH)
-+      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir)
-+      $(INSTALL_PROGRAM) $(UTILOBJDIR)xlock$(E) ${DESTDIR}$(bindir)
-+      @MODULES@mkdir -p ${DESTDIR}$(DEF_MODULEPATH)
-+      @MODULES@cp *.xlk ${DESTDIR}$(DEF_MODULEPATH)
-+      @MODULES@cp glx/*.xlk ${DESTDIR}$(DEF_MODULEPATH)
- 
- install-man :
--      $(top_srcdir)/mkinstalldirs $(mandir)
--      $(INSTALL_DATA) $(UTILDIR)xlock.man $(mandir)/xlock.1
-+      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(mandir)
-+      $(INSTALL_DATA) $(UTILDIR)xlock.man ${DESTDIR}$(mandir)/xlock.1
- 
- install-ad :
-       $(top_srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
--      $(INSTALL_DATA) $(UTILDIR)XLock.ad $(DESTDIR)$(xapploaddir)/XLock
-+      $(top_srcdir)/mkinstalldirs $(DESTDIR)${datarootdir}/examples/xlock/app-defaults
-+      $(INSTALL_DATA) $(UTILDIR)XLock.ad $(DESTDIR)${datarootdir}/examples/xlock/app-defaults/XLock
-       @FORTUNE@sed 's;^XLock.program: fortune;XLock.program: $(FORTUNE);' $(UTILDIR)XLock.ad > $(UTILOBJDIR)XLock.ad.tmp 
--      @FORTUNE@$(INSTALL_DATA) $(UTILOBJDIR)XLock.ad.tmp $(DESTDIR)$(xapploaddir)/XLock
-+      @FORTUNE@$(INSTALL_DATA) $(UTILOBJDIR)XLock.ad.tmp $(DESTDIR)${datarootdir}/examples/xlock/app-defaults/XLock
-       @FORTUNE@rm -f $(UTILOBJDIR)XLock.ad.tmp
- 
- uninstall : uninstall-program uninstall-man uninstall-ad
diff -r 28e8484df90d -r 137b4c2dd0be x11/xlockmore/patches/patch-modes_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xlockmore/patches/patch-modes_Makefile.in     Thu Feb 08 16:03:12 2018 +0000
@@ -0,0 +1,47 @@
+$NetBSD: patch-modes_Makefile.in,v 1.1 2018/02/08 16:03:12 jaapb Exp $
+
+Honour LDFLAGS.
+Use INSTALL properly.
+--- modes/Makefile.in.orig     2015-02-13 04:24:37.000000000 +0000
++++ modes/Makefile.in
+@@ -334,7 +334,7 @@ CFLAGS = @CFLAGS@
+ CXXFLAGS = @CXXFLAGS@
+ #CFLAGS = -O
+ #CFLAGS = -g
+-XLOCKLDFLAGS = @XLOCKLDFLAGS@ $(CHECKLDFLAG)
++XLOCKLDFLAGS = @XLOCKLDFLAGS@ $(CHECKLDFLAG) @LDFLAGS@
+ XLIBS = @XLIBS@
+ XLOCKLIBS = $(MODULELIB) @XLOCKLIBS@ -lcrypt
+ 
+@@ -600,21 +600,22 @@ install : install-program install-man in
+       @ $(ECHO) ""
+ 
+ install-program : xlock
+-      $(top_srcdir)/mkinstalldirs $(bindir)
+-      $(INSTALL_PROGRAM) $(INSTPGMFLAGS) $(UTILOBJDIR)xlock$(E) $(bindir)
+-      @MODULES@mkdir -p $(DEF_MODULEPATH)
+-      @MODULES@cp *.xlk $(DEF_MODULEPATH)
+-      @MODULES@cp glx/*.xlk $(DEF_MODULEPATH)
++      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir)
++      $(INSTALL_PROGRAM) $(UTILOBJDIR)xlock$(E) ${DESTDIR}$(bindir)
++      @MODULES@mkdir -p ${DESTDIR}$(DEF_MODULEPATH)
++      @MODULES@cp *.xlk ${DESTDIR}$(DEF_MODULEPATH)
++      @MODULES@cp glx/*.xlk ${DESTDIR}$(DEF_MODULEPATH)
+ 
+ install-man :
+-      $(top_srcdir)/mkinstalldirs $(mandir)
+-      $(INSTALL_DATA) $(UTILDIR)xlock.man $(mandir)/xlock.1
++      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(mandir)
++      $(INSTALL_DATA) $(UTILDIR)xlock.man ${DESTDIR}$(mandir)/xlock.1
+ 
+ install-ad :
+       $(top_srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
+-      $(INSTALL_DATA) $(UTILDIR)XLock.ad $(DESTDIR)$(xapploaddir)/XLock
++      $(top_srcdir)/mkinstalldirs $(DESTDIR)${datarootdir}/examples/xlock/app-defaults
++      $(INSTALL_DATA) $(UTILDIR)XLock.ad $(DESTDIR)${datarootdir}/examples/xlock/app-defaults/XLock
+       @FORTUNE@sed 's;^XLock.program: fortune;XLock.program: $(FORTUNE);' $(UTILDIR)XLock.ad > $(UTILOBJDIR)XLock.ad.tmp 
+-      @FORTUNE@$(INSTALL_DATA) $(UTILOBJDIR)XLock.ad.tmp $(DESTDIR)$(xapploaddir)/XLock
++      @FORTUNE@$(INSTALL_DATA) $(UTILOBJDIR)XLock.ad.tmp $(DESTDIR)${datarootdir}/examples/xlock/app-defaults/XLock
+       @FORTUNE@rm -f $(UTILOBJDIR)XLock.ad.tmp
+ 
+ uninstall : uninstall-program uninstall-man uninstall-ad
diff -r 28e8484df90d -r 137b4c2dd0be x11/xlockmore/patches/patch-xglock_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xlockmore/patches/patch-xglock_Makefile.in    Thu Feb 08 16:03:12 2018 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-xglock_Makefile.in,v 1.1 2018/02/08 16:03:12 jaapb Exp $
+
+Honour LDFLAGS.
+Use INSTALL properly.
+--- xglock/Makefile.in.orig    2010-04-19 13:34:35.000000000 +0000
++++ xglock/Makefile.in
+@@ -92,7 +92,7 @@ XGLOCKINC = @XGLOCKINC@ -I.. -I$(top_src
+ CFLAGS = @GTK_CFLAGS@ @CFLAGS@
+ #CFLAGS = -O
+ #CFLAGS = -g
+-XGLOCKLDFLAGS = @XGLOCKLDFLAGS@
++XGLOCKLDFLAGS = @XGLOCKLDFLAGS@ @LDFLAGS@
+ XLIBS = @XLIBS@
+ XGLOCKLIBS = @XGLOCKLIBS@
+ #If you have purify, and want to use it, uncomment this definition or
+@@ -117,14 +117,14 @@ install_xglock : install-program install
+       @ $(ECHO) ""
+ 
+ install-program : xglock
+-      $(top_srcdir)/mkinstalldirs $(bindir)
+-      $(INSTALL_PROGRAM) xglock$(E) $(bindir)
++      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(bindir)
++      $(INSTALL_PROGRAM) xglock$(E) ${DESTDIR}$(bindir)
+ 
+ install-man :
+ 
+ install-ad :
+-      $(top_srcdir)/mkinstalldirs $(datadir)/xlock
+-      $(INSTALL_PROGRAM) $(top_srcdir)/xglock/xglockrc $(datadir)/xlock/xglockrc
++      $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir)/xlock
++      $(INSTALL_DATA) $(top_srcdir)/xglock/xglockrc ${DESTDIR}$(datadir)/xlock/xglockrc
+ 
+ uninstall : @UNINSTALL_XGLOCK@
+ 



Home | Main Index | Thread Index | Old Index