[users] less
Christer Solskogen
solskogen at carebears.mine.nu
Mon Mar 1 13:26:08 CET 2004
Alex S Moore wrote:
>
>
>
> It looks like your Makefile does not have DESTDIR defined. Hence, make
> install from stagepkg, wrote the files to the final destination. Maybe
> your Makefile has some other variable to use for the distribution
> directory. If so, there is a note on this in the CSW build documents.
>
I`m not sure of what you mean here, but i could try to tell you what i
do. and if i`m doing anything wrong, please corrent me :)
I have following directories in $HOME
build\
pkgs\
src\
I also did 'mkdir pkgs\less'
in pkgs\less i have a pkginfo file which looks like this:
PKG=CSWless
NAME=less - GNU less
VERSION=3.82
CATEGORY=application
VENDOR=http://ftp.gnu.org/gnu/less/ packaged for CSW by Christer Solskogen
HOTLINE=http://www.blastwave.org/bugtrack/
EMAIL=solskogen at carebears.mine.nu
Unpacked less-382.tar.gz in ~build
cp COPYING ~/pkgs/less/copyright
export LD_OPTIONS='-R/opt/csw/lib/$ISALIST -R/opt/csw/lib -L/opt/csw/lib'
./configure --prefix=/opt/csw (it seems like the configure script does
not support --program-prefix)
gmake
stagepkg gives this output as user 'cso' (my username)
bash-2.05$ stagepkg
creating staging area /export/home/cso/build/less-382/cswstage
using make arguments of DESTDIR=/export/home/cso/build/less-382/cswstage
install
will use fakeroot to do install
make
DESTDIR=/export/home/cso/build/less-382/cswstage install
/export/home/cso/build/less-382/cswstage
fakeroot
./mkinstalldirs /opt/csw//bin /opt/csw//man/man1
./install.sh -c less /opt/csw//bin/less
cp: cannot create /opt/csw//bin/#inst.1756#: Permission denied
mv: cannot access /opt/csw//bin/#inst.1756#
./install.sh -c lesskey /opt/csw//bin/lesskey
cp: cannot create /opt/csw//bin/#inst.1761#: Permission denied
mv: cannot access /opt/csw//bin/#inst.1761#
./install.sh -c lessecho /opt/csw//bin/lessecho
cp: cannot create /opt/csw//bin/#inst.1766#: Permission denied
mv: cannot access /opt/csw//bin/#inst.1766#
./install.sh -c -m 644 ./less.nro /opt/csw//man/man1/less.1
cp: cannot create /opt/csw//man/man1/#inst.1771#: Permission denied
chmod: WARNING: can't access /opt/csw//man/man1/#inst.1771#
mv: cannot access /opt/csw//man/man1/#inst.1771#
./install.sh -c -m 644 ./lesskey.nro /opt/csw//man/man1/lesskey.1
cp: cannot create /opt/csw//man/man1/#inst.1777#: Permission denied
chmod: WARNING: can't access /opt/csw//man/man1/#inst.1777#
mv: cannot access /opt/csw//man/man1/#inst.1777#
Checking for relocatable capability...
Stripping executables...
prototype file is now in /export/home/cso/build/less-382/cswstage/prototype
If you dont already have a prototype file, you should copy
/export/home/cso/build/less-382/cswstage/prototype
to where you keep your pkginfo file, and edit it as appropriate. Next,
cd ~/pkgs/[software]
You should then do EITHER
createpkg -b /export/home/cso/build/less-382/cswstage/opt/csw
OR if you want to do things the hard way
pkgmk -b /export/home/cso/build/less-382/cswstage/opt/csw \
-f /export/home/cso/build/less-382/cswstage/prototype \
BASEDIR=/opt/csw
[and then all the other cleanup type stuff by hand]
(I`m wondereing why i get Permission Denied! I dont get them as root,
but my prototype is still missing a lot of info)
Just in case:
uname -a
SunOS hugs 5.9 Generic_112234-11 i86pc i386 i86pc
--
Med vennlig hilsen / Best regards
Christer Solskogen / dizzy tun3Z
http://dtz.cjb.net - http://carebears.mine.nu
"Cheap, but not as cheap as your girlfriend!"
-Spider Jerusalem
More information about the users
mailing list