Hi All
I know this is not a LPRng list but I'm trying to build the latest SRPM from
http://lprng.sourceforge.net/DISTRIB/LPRng/LPRng-3.8.27-1.src.rpm
so that I may use it on my CentOS 5 box, but it fails with the following errors
<snip> + make MAKEPACKAGE=YES if [ "UTILS" = 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 /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: line 1: for i in po/Makefile* ; do : No such file or directory /bin/sh: line 2: if [ -f "$i" ] ; then : command not found /bin/sh: line 3: if grep '^mkinstalldirs.*=.*case' $i ; then : command not found /bin/sh: line 4: echo "fixing broken $i which causes wrong path to mkinstalldirs to be used"; : command not found /bin/sh: line 5: perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = $(SHELL) $(MKINSTALLDIRS):' $i; : command not found /bin/sh: line 6: fi : command not found /bin/sh: line 7: fi : command not found /bin/sh: line 8: done : command not found /bin/sh: -c: line 9: syntax error near unexpected token `fi' /bin/sh: -c: line 9: `fi' make: *** [UTILS] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.93721 (%build) </snip>
It looked like it went through the ./configure portion OK. Any ideas? Has someone else gotta LPRng to work on CentOS 5?
James A. Peltier wrote: ...
It looked like it went through the ./configure portion OK. Any ideas? Has someone else gotta LPRng to work on CentOS 5?
Yes. With difficulty. :-)
This problem is fixed by:
1. installing the LPRng src rpm 2. cd /usr/src/redhat/SOURCES 3. mkdir unpack 4. cd unpack 5. tar zxf ../LPRng-3.8.27.tgz 6. vi LPRng-3.8.27/Makefile.in 7. Change line 45 from:
SHELL="@SHELL@"
to:
SHELL=@SHELL@
8. tar zcf ../LPRng-3.8.27.tgz LPRng-3.8.27 9. cd /usr/src/redhat/SPECS 10.rpmbuild -bb LPRng.spec
There are other errors later on; I can't recall how I fixed this, maybe disabling kerberos support?
Mogens
On Thu, 2007-09-20 at 08:16 +0200, Mogens Kjaer wrote:
James A. Peltier wrote: ...
It looked like it went through the ./configure portion OK. Any ideas? Has someone else gotta LPRng to work on CentOS 5?
Yes. With difficulty. :-)
This problem is fixed by:
- installing the LPRng src rpm
- cd /usr/src/redhat/SOURCES
- mkdir unpack
- cd unpack
- tar zxf ../LPRng-3.8.27.tgz
- vi LPRng-3.8.27/Makefile.in
- Change line 45 from:
SHELL="@SHELL@"
to:
SHELL=@SHELL@
- tar zcf ../LPRng-3.8.27.tgz LPRng-3.8.27
- cd /usr/src/redhat/SPECS
10.rpmbuild -bb LPRng.spec
Preferred way to do this would be to create a patch to be applied in the spec file. The above should work as a quick-and-dirty fix, but hides the changes in the tarball without changing the version.
Phil