dpkg-buildpackage: source package is bzip2 dpkg-buildpackage: source version is 1.0.3-2 dpkg-buildpackage: source changed by Anibal Monsalve Salazar dpkg-buildpackage: host architecture sh4 debian/rules clean test -x debian/rules && test -f bzip2.c rm -f build*-stamp /usr/bin/make clean make[1]: Entering directory `/root/work/bzip2-1.0.3' rm -f *.o *.sho libbz2.a libbz2.so* bzip2 bzip2recover \ sample1.rb2 sample2.rb2 sample3.rb2 \ sample1.tst sample2.tst sample3.tst make[1]: Leaving directory `/root/work/bzip2-1.0.3' rm -rf 32 64 rm -f debian/substvars debian/files debian/copyright bzip2.info* rm -fr debian/tmp* find . -name "*~" -print0 | xargs -r0 rm -f dpkg-source -b bzip2-1.0.3 dpkg-source: building bzip2 using existing bzip2_1.0.3.orig.tar.gz dpkg-source: building bzip2 in bzip2_1.0.3-2.diff.gz dpkg-source: building bzip2 in bzip2_1.0.3-2.dsc debian/rules build test -x debian/rules && test -f bzip2.c # Add here commands to compile the package. /usr/bin/make DEBCFLAGS="" make[1]: Entering directory `/root/work/bzip2-1.0.3' gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o blocksort.o -c blocksort.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o huffman.o -c huffman.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o crctable.o -c crctable.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o randtable.o -c randtable.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o compress.o -c compress.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o decompress.o -c decompress.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o bzlib.o -c bzlib.c rm -f libbz2.a ar cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o ranlib libbz2.a gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o blocksort.sho -c blocksort.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o huffman.sho -c huffman.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o crctable.sho -c crctable.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o randtable.sho -c randtable.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o compress.sho -c compress.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o decompress.sho -c decompress.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -o bzlib.sho -c bzlib.c gcc -o libbz2.so.1.0.3 -shared \ -Wl,-soname,libbz2.so.1.0 blocksort.sho huffman.sho crctable.sho randtable.sho compress.sho decompress.sho bzlib.sho -lc ln -sf libbz2.so.1.0.3 libbz2.so.1.0 ln -sf libbz2.so.1.0 libbz2.so gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o bzip2.o -c bzip2.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -o bzip2 bzip2.o -L. -lbz2 gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -o bzip2recover.o -c bzip2recover.c gcc -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -o bzip2recover bzip2recover.o make[1]: Leaving directory `/root/work/bzip2-1.0.3' /usr/bin/make DEBCFLAGS="" test make[1]: Entering directory `/root/work/bzip2-1.0.3' Doing 6 tests (3 compress, 3 uncompress) ... If there's a problem, things might stop at this point. LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ ./bzip2 -1 < sample1.ref > sample1.rb2 LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ ./bzip2 -2 < sample2.ref > sample2.rb2 LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ ./bzip2 -3 < sample3.ref > sample3.rb2 LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ ./bzip2 -d < sample1.bz2 > sample1.tst LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ ./bzip2 -d < sample2.bz2 > sample2.tst LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \ ./bzip2 -ds < sample3.bz2 > sample3.tst cmp sample1.bz2 sample1.rb2 cmp sample2.bz2 sample2.rb2 cmp sample3.bz2 sample3.rb2 cmp sample1.tst sample1.ref cmp sample2.tst sample2.ref cmp sample3.tst sample3.ref If you got this far and the "cmp"s didn't complain, it looks like you're in business. To install in /usr/bin, /usr/lib, /usr/man and /usr/include, type make install To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type make install PREFIX=/xxx/yyy If you are (justifiably) paranoid and want to see what 'make install' is going to do, you can first do make -n install or make -n install PREFIX=/xxx/yyy respectively. The -n instructs make to show the commands it would execute, but not actually execute them. Instructions for use are in the preformatted manual page, in the file bzip2.txt. For more detailed documentation, read the full manual. It is available in Postscript form (manual.ps), PDF form (manual.pdf), and HTML form (manual_toc.html). You can also do "bzip2 --help" to see some helpful information. "bzip2 -L" displays the software license. make[1]: Leaving directory `/root/work/bzip2-1.0.3' makeinfo -o bzip2.info manual.texi cat debian/copyright.in LICENSE > debian/copyright touch build-stamp debian/rules binary test -x debian/rules && test -f bzip2.c test "`id -nu`" = root rm -fr debian/tmp* install -d debian/tmp/usr /usr/bin/make PREFIX=`pwd`/debian/tmp install make[1]: Entering directory `/root/work/bzip2-1.0.3' if ( test ! -d /root/work/bzip2-1.0.3/debian/tmp/bin ) ; then mkdir -p /root/work/bzip2-1.0.3/debian/tmp/bin ; fi if ( test ! -d /root/work/bzip2-1.0.3/debian/tmp/lib ) ; then mkdir -p /root/work/bzip2-1.0.3/debian/tmp/lib ; fi if ( test ! -d /root/work/bzip2-1.0.3/debian/tmp/man ) ; then mkdir -p /root/work/bzip2-1.0.3/debian/tmp/man ; fi if ( test ! -d /root/work/bzip2-1.0.3/debian/tmp/man/man1 ) ; then mkdir -p /root/work/bzip2-1.0.3/debian/tmp/man/man1 ; fi if ( test ! -d /root/work/bzip2-1.0.3/debian/tmp/include ) ; then mkdir -p /root/work/bzip2-1.0.3/debian/tmp/include ; fi cp -f bzip2 /root/work/bzip2-1.0.3/debian/tmp/bin/bzip2 ln /root/work/bzip2-1.0.3/debian/tmp/bin/bzip2 /root/work/bzip2-1.0.3/debian/tmp/bin/bunzip2 ln /root/work/bzip2-1.0.3/debian/tmp/bin/bzip2 /root/work/bzip2-1.0.3/debian/tmp/bin/bzcat cp -f bzip2recover /root/work/bzip2-1.0.3/debian/tmp/bin/bzip2recover chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzip2 chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bunzip2 chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzcat chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzip2recover cp -f bzip2.1 /root/work/bzip2-1.0.3/debian/tmp/man/man1 chmod a+r /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzip2.1 cp -f bzlib.h /root/work/bzip2-1.0.3/debian/tmp/include chmod a+r /root/work/bzip2-1.0.3/debian/tmp/include/bzlib.h cp -fa libbz2.a libbz2.so* /root/work/bzip2-1.0.3/debian/tmp/lib chmod a+r /root/work/bzip2-1.0.3/debian/tmp/lib/libbz2.a cp -f bzexe /root/work/bzip2-1.0.3/debian/tmp/bin/bzexe chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzexe cp -f bzgrep /root/work/bzip2-1.0.3/debian/tmp/bin/bzgrep ln /root/work/bzip2-1.0.3/debian/tmp/bin/bzgrep /root/work/bzip2-1.0.3/debian/tmp/bin/bzegrep ln /root/work/bzip2-1.0.3/debian/tmp/bin/bzgrep /root/work/bzip2-1.0.3/debian/tmp/bin/bzfgrep chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzgrep cp -f bzmore /root/work/bzip2-1.0.3/debian/tmp/bin/bzmore ln /root/work/bzip2-1.0.3/debian/tmp/bin/bzmore /root/work/bzip2-1.0.3/debian/tmp/bin/bzless chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzmore cp -f bzdiff /root/work/bzip2-1.0.3/debian/tmp/bin/bzdiff ln /root/work/bzip2-1.0.3/debian/tmp/bin/bzdiff /root/work/bzip2-1.0.3/debian/tmp/bin/bzcmp chmod a+x /root/work/bzip2-1.0.3/debian/tmp/bin/bzdiff cp -f bzexe.1 bzgrep.1 bzmore.1 bzdiff.1 /root/work/bzip2-1.0.3/debian/tmp/man/man1 chmod a+r /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzexe.1 chmod a+r /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzgrep.1 chmod a+r /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzmore.1 chmod a+r /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzdiff.1 echo ".so man1/bzgrep.1" > /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzegrep.1 echo ".so man1/bzgrep.1" > /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzfgrep.1 echo ".so man1/bzmore.1" > /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzless.1 echo ".so man1/bzdiff.1" > /root/work/bzip2-1.0.3/debian/tmp/man/man1/bzcmp.1 make[1]: Leaving directory `/root/work/bzip2-1.0.3' ### Split # Development package install -d debian/tmp-dev/usr/lib rm debian/tmp/lib/libbz2.so ln -s /lib/libbz2.so.1.0 debian/tmp-dev/usr/lib/libbz2.so mv debian/tmp/lib/libbz2.a debian/tmp-dev/usr/lib/ mv debian/tmp/include debian/tmp-dev/usr/include # Library package install -d debian/tmp-lib/lib for i in $(ls debian/tmp/lib/libbz2.so*); do \ (set -x; echo $i; mv $i debian/tmp-lib/lib/); \ done + echo debian/tmp/lib/libbz2.so.1.0 debian/tmp/lib/libbz2.so.1.0 + mv debian/tmp/lib/libbz2.so.1.0 debian/tmp-lib/lib/ + echo debian/tmp/lib/libbz2.so.1.0.3 debian/tmp/lib/libbz2.so.1.0.3 + mv debian/tmp/lib/libbz2.so.1.0.3 debian/tmp-lib/lib/ ln -s libbz2.so.1.0.3 debian/tmp-lib/lib/libbz2.so.1 chmod -x debian/tmp-lib/lib/* # Binary package install -d debian/tmp-run mv debian/tmp/bin debian/tmp-run/bin install -d debian/tmp-run/usr/share mv debian/tmp/man debian/tmp-run/usr/share/man ### Check the install test "$(find debian/tmp ! -type d -print | wc -l)" -eq 0 rm -fr debian/tmp install -d debian/tmp-run/usr/bin ( cd debian/tmp-run/bin && \ for i in *; do \ ln -s /bin/$i ../usr/bin/$i; \ done ) ### Finalize documentation # Man pages gzip -v9 debian/tmp-run/usr/share/man/man1/*.1 debian/tmp-run/usr/share/man/man1/bzcmp.1: -11.1% -- replaced with debian/tmp-run/usr/share/man/man1/bzcmp.1.gz debian/tmp-run/usr/share/man/man1/bzdiff.1: 48.0% -- replaced with debian/tmp-run/usr/share/man/man1/bzdiff.1.gz debian/tmp-run/usr/share/man/man1/bzegrep.1: -11.1% -- replaced with debian/tmp-run/usr/share/man/man1/bzegrep.1.gz debian/tmp-run/usr/share/man/man1/bzexe.1: 46.0% -- replaced with debian/tmp-run/usr/share/man/man1/bzexe.1.gz debian/tmp-run/usr/share/man/man1/bzfgrep.1: -11.1% -- replaced with debian/tmp-run/usr/share/man/man1/bzfgrep.1.gz debian/tmp-run/usr/share/man/man1/bzgrep.1: 52.9% -- replaced with debian/tmp-run/usr/share/man/man1/bzgrep.1.gz debian/tmp-run/usr/share/man/man1/bzip2.1: 59.6% -- replaced with debian/tmp-run/usr/share/man/man1/bzip2.1.gz debian/tmp-run/usr/share/man/man1/bzless.1: -11.1% -- replaced with debian/tmp-run/usr/share/man/man1/bzless.1.gz debian/tmp-run/usr/share/man/man1/bzmore.1: 57.2% -- replaced with debian/tmp-run/usr/share/man/man1/bzmore.1.gz ( cd debian/tmp-run/usr/share/man/man1 && \ for i in bunzip2 bzcat bzip2recover; do \ ln -s bzip2.1.gz $i.1.gz; \ done ) # Info install -d debian/tmp-run/usr/share/info cp bzip2.info* debian/tmp-run/usr/share/info/ gzip -v9 debian/tmp-run/usr/share/info/* debian/tmp-run/usr/share/info/bzip2.info: 69.2% -- replaced with debian/tmp-run/usr/share/info/bzip2.info.gz # Other docs in lib package install -d debian/tmp-run/usr/share/doc/bzip2 cp *.ps *.html *.texi debian/tmp-run/usr/share/doc/bzip2 gzip -v9 debian/tmp-run/usr/share/doc/bzip2/*.{ps,texi} debian/tmp-run/usr/share/doc/bzip2/manual.ps: 85.0% -- replaced with debian/tmp-run/usr/share/doc/bzip2/manual.ps.gz debian/tmp-run/usr/share/doc/bzip2/manual.texi: 69.3% -- replaced with debian/tmp-run/usr/share/doc/bzip2/manual.texi.gz cp CHANGES debian/tmp-run/usr/share/doc/bzip2/changelog cp debian/changelog \ debian/tmp-run/usr/share/doc/bzip2/changelog.Debian gzip -v9 debian/tmp-run/usr/share/doc/bzip2/changelog* debian/tmp-run/usr/share/doc/bzip2/changelog: 53.4% -- replaced with debian/tmp-run/usr/share/doc/bzip2/changelog.gz debian/tmp-run/usr/share/doc/bzip2/changelog.Debian: 64.5% -- replaced with debian/tmp-run/usr/share/doc/bzip2/changelog.Debian.gz cp debian/copyright debian/tmp-run/usr/share/doc/bzip2/ # Doc-base support install -d debian/tmp-run/usr/share/doc-base cp debian/docbase debian/tmp-run/usr/share/doc-base/bzip2 # Library package install -d debian/tmp-lib/usr/share/doc/libbz2-1.0 cp debian/copyright debian/tmp-lib/usr/share/doc/libbz2-1.0/ cp CHANGES debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog cp debian/changelog \ debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog.Debian gzip -v9 debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog* debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog: 53.4% -- replaced with debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog.gz debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog.Debian: 64.5% -- replaced with debian/tmp-lib/usr/share/doc/libbz2-1.0/changelog.Debian.gz # Other packages point to libbz2-1.0 install -d debian/tmp-dev/usr/share/doc ln -s libbz2-1.0 debian/tmp-dev/usr/share/doc/libbz2-dev ### Package finalize # Stripping for i in debian/tmp-run/bin/*; \ do \ if head -n 1 $i | grep -vq '^#!'; \ then \ (set -x; strip -R .note -R .comment $i); \ fi; \ done + strip -R .note -R .comment debian/tmp-run/bin/bunzip2 + strip -R .note -R .comment debian/tmp-run/bin/bzcat + strip -R .note -R .comment debian/tmp-run/bin/bzip2 + strip -R .note -R .comment debian/tmp-run/bin/bzip2recover strip --strip-unneeded -R .note -R .comment \ debian/tmp-lib/lib/*.so* strip --strip-debug debian/tmp-dev/usr/lib/*.a # Control files install -d debian/tmp-{lib,dev,run}/DEBIAN cp debian/shlibs debian/tmp-lib/DEBIAN/shlibs dpkg-shlibdeps debian/tmp-lib/lib/*.so* dpkg-gencontrol -isp -Pdebian/tmp-lib -plibbz2-1.0 rm debian/substvars dpkg-gencontrol -isp -Pdebian/tmp-dev -plibbz2-dev dpkg-shlibdeps debian/tmp-run/bin/* dpkg-gencontrol -isp -Pdebian/tmp-run -pbzip2 for i in run dev lib; do \ cp debian/postinst-$i debian/tmp-$i/DEBIAN/postinst; \ cp debian/prerm-$i debian/tmp-$i/DEBIAN/prerm; \ chmod +x debian/tmp-$i/DEBIAN/postinst; \ chmod +x debian/tmp-$i/DEBIAN/prerm; \ done cp debian/preinst-run debian/tmp-run/DEBIAN/preinst cp debian/postrm-lib debian/tmp-lib/DEBIAN/postrm chmod +x debian/tmp-run/DEBIAN/preinst debian/tmp-lib/DEBIAN/postrm # Fix perms chown -R root.root debian/tmp* chmod -R a+rX-wts,u+w debian/tmp* # Buildit dpkg --build debian/tmp-run .. dpkg-deb: building package `bzip2' in `../bzip2_1.0.3-2_sh4.deb'. dpkg --build debian/tmp-lib .. dpkg-deb: building package `libbz2-1.0' in `../libbz2-1.0_1.0.3-2_sh4.deb'. dpkg --build debian/tmp-dev .. dpkg-deb: building package `libbz2-dev' in `../libbz2-dev_1.0.3-2_sh4.deb'. dpkg-genchanges dpkg-genchanges: not including original source code in upload dpkg-buildpackage: binary and diff upload (original source NOT included)