[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fwd: Slack11.0 /usr/bin/make incompatible with LPRng-3.8.28 Makefile.in
From: |
david baker |
Subject: |
[Fwd: Slack11.0 /usr/bin/make incompatible with LPRng-3.8.28 Makefile.in] |
Date: |
Fri, 01 Dec 2006 13:08:06 -0800 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061025) |
Greetings,
I'm forwarding a note I sent to Karl Berry <address@hidden> which he
advised to be sent to you. Additionally I am attaching screen shots of
the actions I took and published on linuxquestions.org and the
Makefile.in from LPRng-3.8.28. The GNU Make version which fails is
3.81. The GNU Make version which works is 3.80.
Regards,
David E. Baker (davidvk)
<address@hidden>
###########################################################################
# LPRng - An Extended Print Spooler System
#
# Copyright 1988-2001 Patrick Powell, San Diego, CA
# address@hidden
# See LICENSE for conditions of use.
#
###########################################################################
# MODULE: Makefile.in
# PURPOSE: top level Makefile for LPD Software
# $Id: Makefile.in,v 1.74 2004/09/24 20:19:52 papowell Exp $
##########################################################################
#**************###########**************
# You must use ANSI C and GNU Make!
#***************************************
address@hidden@
address@hidden@
address@hidden@
@SET_MAKE@
address@hidden@
# prefix
address@hidden@
# exec prefix
address@hidden@
# for binaries
address@hidden@
# for admin type of binaries
address@hidden@
# for the filters
address@hidden@
# for the configuration stuff
address@hidden@
# for the man pages
address@hidden@
# top build directory
top_builddir=.
LPD_PERMS_PATH=\"@address@hidden"
LPD_CONF_PATH=\"@address@hidden"
PRINTCAP_PATH=\"@address@hidden"
LPD_PATH=\"@LPD_DIR@/lpd\"
SHELL="@SHELL@"
LOCKFILE=\"@address@hidden"
CONFIG_SUBDIR="@CONFIG_SUBDIR@"
PSHOWALL="@PSHOWALL@"
address@hidden@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
#=============================================================================
# List the directories you want to generate:
# DIRS for all, clean, etc.
# ALLDIRS for other such as documentation
#=============================================================================
DIRS= UTILS src po man
INSTALLDIRS= UTILS src po man
FILES=./postinstall ./preremove ./postremove ./lpd.conf
ALLDIRS= ${DIRS} ${SRC}/TESTSUPPORT ${SRC}/DOCS
###############################################################################
all: ${DIRS} ${FILES}
SCRIPTS=init.freebsd init.linux init.redhat init.linuxsb init.solaris ltmain
postinstall.freebsd postinstall.generic postinstall.linux postinstall.solaris
postremove.generic postremove.solaris preinstall.solaris preremove.freebsd
preremove.generic preremove.linux preremove.solaris
$(SCRIPTS): header
cat header ${SRC}/address@hidden >$@
chmod 755 $@;
header: Makefile
@echo "address@hidden@" >$@
@echo PREFIX=$(prefix) >>$@
@echo LPD_PATH=$(LPD_PATH) >>$@
@echo INSTALL=\"$(INSTALL)\" >>$@
@echo LPD_PERMS_PATH=$(LPD_PERMS_PATH) >>$@
@echo LPD_CONF_PATH=$(LPD_CONF_PATH) >>$@
@echo PRINTCAP_PATH=$(PRINTCAP_PATH) >>$@
@echo SYSCONFDIR=$(sysconfdir) >>$@
@echo SBINDIR=$(sbindir) >>$@
@echo FILTER_DIR=$(FILTER_DIR) >>$@
@echo LOCKFILE=$(LOCKFILE) >>$@
@echo CONFIG_SUBDIR=$(CONFIG_SUBDIR) >>$@
@echo PSHOWALL=\"$(PSHOWALL)\" >>$@
@echo "VERSION=$(VERSION)" >>$@
@echo "INIT=$(INIT)" >>$@
@echo "MANDIR=$(mandir)" >>$@
./postinstall: $(SCRIPTS) Makefile
address@hidden@; case "@OSNAME@" in \
*linux* ) OSNAME=linux;; \
*freebsd* ) OSNAME=freebsd;; \
*solaris* ) OSNAME=solaris;; \
esac; \
if test -f postinstall.$${OSNAME} ; then s=postinstall.$${OSNAME} ;
else s=postinstall.generic; fi; \
echo POSTINSTALL "'$$s'"; cp $$s postinstall;
./preremove: $(SCRIPTS) Makefile
address@hidden@; case "@OSNAME@" in *linux* ) OSNAME=linux;; esac; \
if test -f preremove.$${OSNAME} ; then s=preremove.$${OSNAME} ; else
s=preremove.generic; fi; \
echo PREREMOVE "'$$s'"; cp $$s preremove;
./postremove: $(SCRIPTS) Makefile
address@hidden@; case "@OSNAME@" in *linux* ) OSNAME=linux;; esac; \
if test -f postremove.$${OSNAME} ; then s=postremove.$${OSNAME} ; else
s=postremove.generic; fi; \
echo POSTREMOVE "'$$s'"; cp $$s postremove;
# define default target
.PHONY: all warn TAGS clean uninstall install info dvi check \
tar send realclean mostlyclean distclean dist update ci cifiles
$(ALLDIRS) \
MAKETARGET=all
###############################################################################
$(ALLDIRS):
if [ "$@" = po ] ; then \
for i in po/Makefile* ; do \
if [ -f "$$i" ] ; then \
if grep '^mkinstalldirs.*=.*case' $$i ; then \
echo "fixing broken $$i which causes wrong path to
mkinstalldirs to be used"; \
perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs =
\$$(SHELL) \$$(MKINSTALLDIRS):' $$i; \
fi \
fi \
done \
fi
if [ "$@" != po -o "$(USE_NLS)" != "no" ] ; then \
cd $@; $(MAKE) localedir=${LOCALEDIR} \
DESTDIR=$(DESTDIR) $(MAKETARGET) ; \
fi
TAGS clean::
-$(MAKE) MAKETARGET=$@ DESTDIR=$(DESTDIR) $(DIRS)
clean::
-rm -f header lpd.conf $(FILES) $(SCRIPTS) postinstall preremove
postremove a.out
-rm -f *.bak ? ?.* core *.old *~ po/*~
install: all
$(MAKE) MAKETARGET=$@ DESTDIR=$(DESTDIR) $(INSTALLDIRS)
if [ "${POSTINSTALL}" != "NO" -a "${POSTINSTALL}" != "no" ] ; then \
MAKEINSTALL=YES DESTDIR=$(DESTDIR) $(SHELL) postinstall ; \
fi;
@echo "";
info dvi check:
./lpd.conf: src/lpd.conf
cp src/lpd.conf $@
chmod 644 $@
src/lpd.conf:
cd src; $(MAKE) MAKETARGET=lpd.conf
realclean mostlyclean distclean: clean
rm -rf DISTRIBUTIONS/FreeBSD*/work DISTRIBUTIONS/FreeBSD*/LPRng*z ;
$(MAKE) MAKETARGET=$@ DESTDIR=$(DESTDIR) $(ALLDIRS)
rm -f `find . -type f -name '*.old' -print` \
`find . -type f -name '*.bak' -print` \
`find . -type f -name '*.orig' -print` \
configure.lineno config.cache config.log config.status lpd.conf
libtool \
Makefile */Makefile po/POTFILES
rm -f `find . -type f -name '*.in' -print | sed -e 's/\.in$$//' -e
/configure/d `
###############################################################################
uninstall:
echo "you must uninstall by hand"
ci: cifiles
for i in $(ALLDIRS); do \
case $$i in \
po ) ;; \
* ) $(MAKE) MAKETARGET=$@ $$i ;; \
esac; \
done;
chmod 755 `find . -name install-sh -print`
chmod 755 `find . -name mkinstalldirs -print`
#CI=
#CO=-kv
CO=-l
cifiles:
for i in . $(ALLDIRS); do \
if test ! -d $$i/RCS ; then \
mkdir $$i/RCS; \
fi; \
done;
checkin() { \
(set +e; rcs -l $$1; exit 0); \
ci $(CI) -l -u -f -mUpdate -t-Initial $$1; \
}; \
for i in * */Makefile po/* ; do \
if test -f "$$i" ; then \
case "$$i" in \
*.mo ) ;; \
config.* ) ;; \
configure ) ;; \
* ) checkin $$i ;; \
esac; \
fi; \
done;
###############################################################################
# Update the patch level when you make a new version
# do this before you start changes
# Don't even think about making this configurable, it is for
# distribution and update purposes only!
# Patrick Powell
###############################################################################
update:
rm -f src/include/license.h src/include/copyright.h
sed -e 's/"/\\"/g' -e 's/.*/"&",/' LICENSE >src/include/license.h
sed -e 's/"/\\"/g' -e 's/.*/"&",/' COPYRIGHT >src/include/copyright.h
for i in VERSION ./src/include/patchlevel.h configure.in ; do \
rcs -l $$i; chmod +w $$i; \
done;
if [ -x /bin/pwd ] ; then DIR=`/bin/pwd`; fi ; \
if [ -x /usr/bin/pwd ] ; then DIR=`/usr/bin/pwd`; fi ; \
DIR=`echo $${DIR} | sed 's,.*/,,'`; \
DIRVER=` echo $${DIR} | sed 's,.*-,,'`; \
echo DIR $${DIR}, DIRVER $${DIRVER}; \
echo "#define PATCHLEVEL \"$${DIR}\"" >./src/include/patchlevel.h; \
echo $${DIR} >VERSION; \
S=`echo *.sh | sed -e 's/\.sh//g'`; \
perl -spi -e "s,=.*,=$${DIRVER}, if(/^VERSION=/ or /^#.* VERSION=/); \
s,^DISTNAME=.*,DISTNAME=$${DIR},; \
s,^PORTNAME=.*,PORTNAME=$(PACKAGE),; \
s,^PORTVERSION=.*,PORTVERSION=$${DIRVER},; \
s,package name \".*\",package name \"$${DIR}\",; \
s,^SCRIPTS=.*,SCRIPTS=$$S,;" \
configure.in lpd.perms.in \
DISTRIBUTIONS/*/Makefile \
po/Makefile.in.in printcap
perl -spi -e 's,.*,"Project-Id-Version: $(PACKAGE) $(VERSION)\\n",
if(/^"Project-Id/);' \
po/*.po
sh CREATE_CONFIGURE
sh STANDARD_configuration
# ci $(CI) -l -f -mUpdate -t-Initial Makefile DOCS/Makefile src/Makefile
for i in DOCS man ; do \
(cd $$i ; $(MAKE) $@ ); \
done;
for i in po ; do \
(cd $$i ; $(MAKE) update-po ); \
done
###############################################################################
# Make a gnutar distribution
# - note that not all the source tree is sent out
#
###############################################################################
tar: distclean
chmod a+x STANDARD_configuration configure
rm -f */Makefile Makefile
chmod 755 `find . -name install-sh -print`
chmod 755 `find . -name mkinstalldirs -print`
chmod -R +w .
if [ -x /bin/pwd ] ; then DIR=`/bin/pwd`; fi ; \
if [ -x /usr/bin/pwd ] ; then DIR=`/usr/bin/pwd`; fi ; \
echo $${DIR}; \
DIR=`echo $${DIR} | sed 's,.*/,,'`; \
cd ..; \
tar '--exclude=RCS' -zcf $${DIR}.tgz $${DIR}; \
md5 $${DIR}.tgz | pgp -fast -u address@hidden > $${DIR}.tgz.md5
@echo ""
configure: configure.in
autoconf
autoheader
chmod a+x STANDARD_configuration configure
dist: update ci distclean tar send
redist: ci distclean tar send
send:
if [ -f ../SENDTO ] ; then (cd ..; sh SENDTO) ; fi
--- Begin Message ---
Subject: |
Slack11.0 /usr/bin/make incompatible with LPRng-3.8.28 Makefile.in |
Date: |
Fri, 01 Dec 2006 10:26:36 -0800 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061025) |
Greetings,
On three different desktops we attempted to install LPRng-3.8.28 on
Slack11.0 and had errors stop the progress at 'make clean' Located the
script which was failing and it was lines 121 to 130 of Makefile.in. By
replacing /usr/bin/make with the copy in Slack-10.2 the installation
went as we've experienced with every Slackware since 9.1. This problem
and solution was published at LinuxQuestions.org by davidvk on Slackware
forum on 11-28-06.
It seems to me that in addition to Slackware, there are two other
interested parties, GNU 'make' team and Patrick Powell of LPRng. We have
attempted to include them in the address list.
I hope this will be of use to all of you and that when it gets sorted
out I would very much appreciate hearing from you.
Regards,
David E Baker (davidvk)
<address@hidden>
I
--- End Message ---
- [Fwd: Slack11.0 /usr/bin/make incompatible with LPRng-3.8.28 Makefile.in],
david baker <=