[users] less
Thomas Glanzmann
sithglan at stud.uni-erlangen.de
Mon Mar 1 14:10:19 CET 2004
Hello Christer,
I make you a little example how I would package less:
(faui04b) [~/work/blastwave] gmake less
+ export CC=cc
+ CC=cc
+ export 'CFLAGS=-O -I/opt/csw/include'
+ CFLAGS=-O -I/opt/csw/include
+ export PATH=/opt/forte8/SUNWspro/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/openwin/bin
+ PATH=/opt/forte8/SUNWspro/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/openwin/bin
+ cd less-381
+ ./configure --prefix=/opt/csw --mandir=/opt/csw/share/man
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... cc -E
checking for egrep... egrep
checking for a BSD-compatible install... /opt/csw/bin/ginstall -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for initscr in -lxcurses... no
checking for initscr in -lncurses... no
checking for initscr in -lcurses... yes
checking for tgetent in -ltermcap... yes
checking for tgetent in -ltermlib... yes
checking for regcmp in -lgen... yes
checking for regcmp in -lintl... yes
checking for regcmp in -lPW... no
checking for working terminal libraries... using -lcurses
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/stream.h usability... yes
checking sys/stream.h presence... yes
checking for sys/stream.h... yes
checking sys/ptem.h usability... no
checking sys/ptem.h presence... yes
configure: WARNING: sys/ptem.h: present but cannot be compiled
configure: WARNING: sys/ptem.h: check for missing prerequisite headers?
configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result
checking for sys/ptem.h... yes
checking whether stat file-mode macros are broken... no
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... (cached) yes
checking for void... yes
checking for const... yes
checking for time_t... yes
checking return type of signal handlers... void
checking for fsync... yes
checking for memcpy... yes
checking for popen... yes
checking for _setjmp... yes
checking for sigprocmask... yes
checking for sigsetmask... no
checking for stat... yes
checking for strchr... yes
checking for strstr... yes
checking for system... yes
checking for tcgetattr... yes
checking for fileno... yes
checking for strerror... yes
checking for sys_errlist... yes
checking for sigset_t... no
checking for sigemptyset... yes
checking for errno... yes - in errno.h
checking for locale... yes
checking for ctype functions... yes
checking termcap for ospeed... yes - must define
checking for regcomp... using POSIX regcomp
configure: creating ./config.status
config.status: creating Makefile
config.status: creating defines.h
config.status: defines.h is unchanged
+ gmake
gmake[2]: Entering directory `/var/tmp/sithglan-pkg/less-381'
test ! -f stamp-h || CONFIG_FILES= CONFIG_HEADERS=defines.h ./config.status
config.status: creating defines.h
config.status: defines.h is unchanged
touch stamp-h
gmake[2]: Leaving directory `/var/tmp/sithglan-pkg/less-381'
+ gmake prefix=/var/tmp/sithglan-pkg/less-381-buildroot/opt/csw mandir=/var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/share/man install
gmake[2]: Entering directory `/var/tmp/sithglan-pkg/less-381'
./mkinstalldirs /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/bin /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/share/man/man1
/opt/csw/bin/ginstall -c less /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/bin/less
/opt/csw/bin/ginstall -c lesskey /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/bin/lesskey
/opt/csw/bin/ginstall -c lessecho /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/bin/lessecho
/opt/csw/bin/ginstall -c -m 644 ./less.nro /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/share/man/man1/less.1
/opt/csw/bin/ginstall -c -m 644 ./lesskey.nro /var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/share/man/man1/lesskey.1
gmake[2]: Leaving directory `/var/tmp/sithglan-pkg/less-381'
cp: cannot create copyright: Permission denied
## Building pkgmap from package prototype file.
## Processing pkginfo file.
WARNING: missing directory entry for </opt>
WARNING: parameter <PSTAMP> set to "faui04b20040301140643"
WARNING: parameter <CLASSES> set to "none"
## Attempting to volumize 10 entries in pkgmap.
part 1 -- 574 blocks, 17 entries
## Packaging one part.
/var/spool/pkg/CSWless/pkgmap
/var/spool/pkg/CSWless/pkginfo
/var/spool/pkg/CSWless/root/opt/csw/bin/less
/var/spool/pkg/CSWless/root/opt/csw/bin/lessecho
/var/spool/pkg/CSWless/root/opt/csw/bin/lesskey
/var/spool/pkg/CSWless/root/opt/csw/share/man/man1/less.1
/var/spool/pkg/CSWless/root/opt/csw/share/man/man1/lesskey.1
/var/spool/pkg/CSWless/install/copyright
/var/spool/pkg/CSWless/install/depend
## Validating control scripts.
## Packaging complete.
Transferring <CSWless> package instance
I used the following build script:
(faui04b) [~/work/blastwave] gmake less.s
export CC=cc
export CFLAGS='-O -I/opt/csw/include'
export
PATH="/opt/forte8/SUNWspro/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/openwin/bin"
cd less-381
./configure --prefix=/opt/csw --mandir=/opt/csw/share/man
gmake
gmake prefix=/var/tmp/sithglan-pkg/less-381-buildroot/opt/csw
mandir=/var/tmp/sithglan-pkg/less-381-buildroot/opt/csw/share/man install
If you want to have a look at the output packages. I can build and
upload you the sparc/x86 versions of the package. The problem with less
is that it doesn't support DESTDIR by default so I missused the prefix
and mandir MAKEFILE variables to obtain the same effect. Of course you
could also go and patch the Makefile to support DESTDIR.
Thomas
More information about the users
mailing list