pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/mpage mpage: fix RELRO build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1fdb059441bf
branches:  trunk
changeset: 448759:1fdb059441bf
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Mar 14 08:40:46 2021 +0000

description:
mpage: fix RELRO build

Add PAPERSIZE to BUILD_DEFS.

Bump PKGREVISION.

diffstat:

 print/mpage/Makefile         |   6 ++++--
 print/mpage/distinfo         |   4 ++--
 print/mpage/patches/patch-aa |  27 +++++++++++++++++++--------
 3 files changed, 25 insertions(+), 12 deletions(-)

diffs (100 lines):

diff -r 00d7a2effec1 -r 1fdb059441bf print/mpage/Makefile
--- a/print/mpage/Makefile      Sun Mar 14 08:37:36 2021 +0000
+++ b/print/mpage/Makefile      Sun Mar 14 08:40:46 2021 +0000
@@ -1,16 +1,18 @@
-# $NetBSD: Makefile,v 1.27 2020/03/24 18:12:08 nia Exp $
+# $NetBSD: Makefile,v 1.28 2021/03/14 08:40:46 wiz Exp $
 
 DISTNAME=      mpage-2.5.7
+PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES+= https://www.mesa.nl/pub/mpage/
 EXTRACT_SUFX=  .tgz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.mesa.nl/download.html
 COMMENT=       Print multiple pages per sheet of paper
-HOMEPAGE=      https://www.mesa.nl/download.html
 LICENSE=       gnu-gpl-v2 AND gnu-lgpl-v2.1
 
 BUILD_TARGET=          default
+BUILD_DEFS+=           PAPERSIZE
 INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX} \
                        MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
diff -r 00d7a2effec1 -r 1fdb059441bf print/mpage/distinfo
--- a/print/mpage/distinfo      Sun Mar 14 08:37:36 2021 +0000
+++ b/print/mpage/distinfo      Sun Mar 14 08:40:46 2021 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2020/03/24 18:12:08 nia Exp $
+$NetBSD: distinfo,v 1.10 2021/03/14 08:40:46 wiz Exp $
 
 SHA1 (mpage-2.5.7.tgz) = 38e01d9a53b77412e951da7fb8f040424b409f7c
 RMD160 (mpage-2.5.7.tgz) = 08518c16cc4e1790b677fd89f5ea610ac3b47c5f
 SHA512 (mpage-2.5.7.tgz) = e456e5daae7f6f395b34e5833baaeff74f5e00a0e61b780fcd600cdbe6455a9be8e0c9811ba21db167bea135de8e268fe4ede553e0a19630d5b854ec5620726b
 Size (mpage-2.5.7.tgz) = 87190 bytes
-SHA1 (patch-aa) = 2a48eb59e02842720be4320326123009ba67e3da
+SHA1 (patch-aa) = 83f67077bbb8aa4bcd6227489cb773975ad1e832
diff -r 00d7a2effec1 -r 1fdb059441bf print/mpage/patches/patch-aa
--- a/print/mpage/patches/patch-aa      Sun Mar 14 08:37:36 2021 +0000
+++ b/print/mpage/patches/patch-aa      Sun Mar 14 08:40:46 2021 +0000
@@ -1,8 +1,10 @@
-$NetBSD: patch-aa,v 1.6 2007/03/17 01:11:22 reed Exp $
+$NetBSD: patch-aa,v 1.7 2021/03/14 08:40:46 wiz Exp $
+
+Fix build.
 
---- Makefile.orig      2004-05-30 14:38:31.000000000 -0500
-+++ Makefile   2006-11-30 17:26:46.000000000 -0600
-@@ -24,7 +24,6 @@
+--- Makefile.orig      2017-06-28 08:07:41.000000000 +0000
++++ Makefile
+@@ -32,7 +32,6 @@
  # Set this to an ANSI compatible C compiler (preferably gcc)
  # See also system specific settings below
  #CC=cc
@@ -10,7 +12,7 @@
  
  ############################################################################
  #
-@@ -40,7 +39,7 @@
+@@ -48,7 +47,7 @@ CC=gcc
  #  See glob.c for all possibilities
  #
  # PAGESIZE=Letter
@@ -19,7 +21,7 @@
  
  #
  # Define your spooler type
-@@ -50,11 +49,11 @@
+@@ -58,11 +57,11 @@ PAGESIZE=A4
  SPOOL_TYPE=BSD_SPOOLER
  
  # PREFIX=e:/usr               # OS/2 type
@@ -33,7 +35,7 @@
  
  #
  # A default encoding is given in encoding.h. Setting ENCODING=1 will
-@@ -106,8 +105,8 @@
+@@ -114,8 +113,8 @@ O = .o
  # Choose one of the following CFLAGS/CC definitions:
  # If you are using gcc, you probably don't need to change anything here.
  
@@ -44,7 +46,16 @@
  
  # AIX (xlC on aix 4):
  #CFLAGS = -O2 -s $(DEFS)
-@@ -181,7 +180,6 @@
+@@ -158,7 +157,7 @@ default:   mpage$(E) msample$(E) mpage.1
+       @echo Done!
+ 
+ mpage$(E):    $(MOBJ)
+-      $(CC) $(CFLAGS) -o mpage$(E) $(MOBJ) $(LIBS)
++      $(CC) $(LDFLAGS) $(CFLAGS) -o mpage$(E) $(MOBJ) $(LIBS)
+ 
+ msample$(E):  $(SOBJ)
+       $(CC) $(CFLAGS) -o msample$(E) $(SOBJ) $(LIBS)
+@@ -189,7 +188,6 @@ install:
        if [ ! -d $(LIBDIR)/mpage ] ; then mkdir -p $(LIBDIR)/mpage ; fi
        if [ ! -d $(BINDIR) ] ; then mkdir -p $(BINDIR) ; fi
        if [ ! -d $(MANDIR) ] ; then mkdir -p $(MANDIR) ; fi



Home | Main Index | Thread Index | Old Index