pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/libpaper Fix build when libpaper is not yet inst...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/35f2c8c9daf2
branches:  trunk
changeset: 574686:35f2c8c9daf2
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Fri Apr 23 12:45:01 2010 +0000

description:
Fix build when libpaper is not yet installed.

My previous changes added a call to paperconfig during the build stage to
generate a sample configuration file.  The paperconfig script needs to run
paperconf and relies on the path to do so.  But, if it is not yet installed,
the call fails.  Fix this by pointing the script to the correct place.

Problem reported by wiz@.

diffstat:

 print/libpaper/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 38d555ef1428 -r 35f2c8c9daf2 print/libpaper/Makefile
--- a/print/libpaper/Makefile   Fri Apr 23 11:33:06 2010 +0000
+++ b/print/libpaper/Makefile   Fri Apr 23 12:45:01 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2010/04/23 11:33:06 jmmv Exp $
+# $NetBSD: Makefile,v 1.7 2010/04/23 12:45:01 jmmv Exp $
 #
 
 DISTNAME=      libpaper_1.1.23
@@ -27,8 +27,8 @@
 .include "../../devel/libgetopt/buildlink3.mk"
 
 post-build:
-       PAPERCONF=${WRKDIR}/papersize ${SH} ${WRKSRC}/src/paperconfig \
-           -p ${PAPERSIZE}
+       PAPERCONF=${WRKDIR}/papersize PATH=${WRKSRC}/src:$${PATH} ${SH} \
+           ${WRKSRC}/src/paperconfig -p ${PAPERSIZE}
 
 post-install:
        ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}



Home | Main Index | Thread Index | Old Index