On 6/19/07, Matthias Kilian <[EMAIL PROTECTED]> wrote:
On Tue, Jun 19, 2007 at 04:05:43AM +0200, Adriaan wrote:
> First error I encountered is at the beginning of running the SETUP.
> 'chown' complains about invalid user 'lp'
> -----------------------------------------------------
> # /etc/apsfilter/basedir/SETUP
> chown: user is invalid: lp

This maybe fallout from the second error ;)

> Second glitch is that '/usr/local/bin/gawk' cannot be found:
[...]
> /etc/apsfilter/basedir/SETUP[1943]: /usr/local/bin/gawk: not found

Sigh... yet another hidden run dependency when gawk is installed during
the build. This should fix it:

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/apsfilter/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    8 Apr 2007 15:19:31 -0000       1.6
+++ Makefile    19 Jun 2007 10:21:39 -0000
@@ -16,7 +16,8 @@ PERMIT_DISTFILES_FTP= Yes
 MASTER_SITES=          http://www.apsfilter.org/download/

 CONFIGURE_STYLE=       gnu
-CONFIGURE_ARGS+=       --with-shell=/bin/sh
+CONFIGURE_ARGS+=       --with-shell=/bin/sh \
+                       --with-awk=/usr/bin/awk

 RUN_DEPENDS=           ::print/a2ps \
                        ::print/psutils


Ciao,
        Kili


I saw the commit of this patch in cvs and I assume this patch made it
in the binary snapshot package of Jun 22 14:28 apsfilter-7.2.8.tgz.

I used the following patch for the apsfilter SETUP sh script to fix
these 2 issues

------------------------------
--- /etc/apsfilter/basedir/SETUP        Thu Jun 21 06:55:46 2007
+++ SETUP       Sat Jun 30 04:40:40 2007
@@ -18,7 +18,7 @@
umask 022

PATH="/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin"
-: ${TMPDIR:=/tmp} ${AWK:=/usr/local/bin/gawk}
+: ${TMPDIR:=/tmp} ${AWK:=/usr/bin/awk}

APS_TMPDIR="$TMPDIR/apsfilter$$"
rm -rf "$APS_TMPDIR"
@@ -1891,7 +1891,7 @@
    [ -w "$SPOOL" ] || fail "no write access to $SPOOL"
else
    mkdir -p "$SPOOL" || fail "couldn't create $SPOOL"
-    [ `id -u` -eq 0 ] && { chown lp "$SPOOL" || chown daemon "$SPOOL"; }
+    [ `id -u` -eq 0 ] && chown daemon "$SPOOL"
fi


=Adriaan=

Reply via email to