On 5/30/17 12:11 PM, Scott Hannahs wrote:
Dear Fink Devs,
I have another problem with this which I thought was going to be simpleā¦ Never
is.
So I have this simple package:
Package: lrzsz
Version: 0.12.20
Revision: 2
License: GPL2
Homepage: https://ohse.de/uwe/software/lrzsz.html
Maintainer: Scott Hannahs <shann...@users.sourceforge.net>
Source: --no-check-certificate https://ohse.de/uwe/releases/%n-%v.tar.gz
Source-MD5: b5ce6a74abc9b9eb2af94dffdfd372a4
ConfigureParams: --mandir=%p/share/man
InstallScript: make install DESTDIR=%d
DocFiles: ABOUT-NLS AUTHORS COMPATABILITY COPYING ChangeLog NEWS README THANKS
TODO
Description: XMODEM YMODEM ZMODEM File Transfer Protocols
DescDetail: <<
lrzsz is a unix communication package providing the XMODEM, YMODEM ZMODEM file
transfer protocols.
lrzsz is a heavily rehacked version of the last public domain release of Omen
Technologies rzsz package, and is now free software and released under the GNU
General Public Licence.
Features of lrzsz
very portable, automagically configured with GNU autoconf.
crash recovery.
up to 8KB block sizes (ZMODEM8K).
internationalized (using GNU gettext).
far more secure than the original sources.
high performance. say `make vcheck-z' and have a look at the BPS rate.
good blocksize calculation (tries to compute an optimal blocksize based
on the number of errors occured).
It's free software.
<<
However it installs the first time, but fails if you try to re-install. For
some reason the install command tries to remove the old symbolic links in the
actual /sw/bin folder instead of the temporary build folder. This of course
fails when not run as root. All the build files are in root-lrzsz-0.12.20-1/
but it fails on
/usr/bin/install -c lsz /sw/src/fink.build/root-lrzsz-0.12.20-1/sw/bin/lsz
rm -f /sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsb | sed -e
's,x,x,'`
ln /sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsz |sed -e 's,x,x,'` \
/sw/src/fink.build/root-lrzsz-0.12.20-1//sw/bin/`echo lsb |sed
-e 's,x,x,'`
rm -f /sw/bin/`echo lsx | sed -e 's,x,x,'`
rm: /sw/bin/lsx: Permission denied
make[1]: *** [install-exec-local] Error 1
for some files. Not sure actually which script file is generating the error
and how do I force it to the the root-xxx dir for this build rather than the
actual /sw/bin??
Look in src/Makefile.in at the "install-exec-local" target. That's where
the "rm -f <FILE>" commands are coming from. Some have $(DESTDIR) and
those should be OK. Others do not, and those fail because they try to rm
straight from /sw. You can either fix the 'rm -f' commands to all have
a leading $(DESTDIR), or frankly, you can probably delete or comment
them out since $(DESTDIR) is guaranteed to be empty for Fink since it is
created from scratch every build and so rm is unneeded.
Hanspeter
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel