[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lintian is not approving what dh_compress does?



> Shaul Karl wrote:
> > However compression matters are handled by debian/rules with dh_compress.
> > Is this a bug with lintain and/or dh_compress?
> 
> dh_compress always uses -9. Either it's a lintian bug or you're not really
> using it.
> 

Attached a script of the build process. What else can I check before issuing a 
lintian bug?

[16:05:50 src]$ grep -A3 dh_compress buildpackage 
dh_compress
        cd debian/tmp
        chmod a-x usr/share/man/man1/retkman.1 usr/share/man/man1/tkman.1 
usr/share/doc/tkman/README-tkman usr/share/doc/tkman/ANNOUNCE-tkman 
usr/share/doc/tkman/changelog.Debian usr/share/doc/tkman/changelog
        gzip -9f usr/share/man/man1/retkman.1 usr/share/man/man1/tkman.1 
usr/share/doc/tkman/README-tkman usr/share/doc/tkman/ANNOUNCE-tkman 
usr/share/doc/tkman/changelog.Debian usr/share/doc/tkman/changelog
[16:05:58 src]$ 


Script started on Tue Feb  8 15:54:38 2000
[15:54:38 /tmp]$ cd /home/she aul/tkman/src/tkman-2.1b3/
[15:55:01 tkman-2.1b3]$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is tkman
dpkg-buildpackage: source version is 2.1b3-1
dpkg-buildpackage: source maintainer is Shaul Karl <shaulk@israsrv.net.il>
 fakeroot debian/rules clean DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_CPU=i386 DEB_BUILD_GNU_SYSTEM=linux DEB_BUILD_GNU_TYPE=i386-linux DEB_HOST_ARCH=i386 DEB_HOST_GNU_CPU=i386 DEB_HOST_GNU_SYSTEM=linux DEB_HOST_GNU_TYPE=i386-linux
dh_testdir
dh_testroot
rm -f build-stamp retkman
# Add here commands to clean up after the build process.
make clean
make[1]: Entering directory `/home/shaul/tkman/src/tkman-2.1b3'
rm -f tkman
make[1]: Leaving directory `/home/shaul/tkman/src/tkman-2.1b3'
dh_clean
	rm -f debian/substvars debian/postinst.debhelper debian/postrm.debhelper debian/preinst.debhelper debian/prerm.debhelper
	rm -rf debian/tmp
	rm -f debian/files
	find . -type f -a \( -name \#\*\# -o -name \*\~ -o -name DEADJOE -o -name \*.orig -o -name \*.rej -o -name \*.bak -o -name .\*.orig -o -name .\*.rej -o -name .SUMS -o -name TAGS -o -name core -o \( -path \*/.deps/\* -a -name \*.P \) \) -exec rm -f {} \;
 dpkg-source -b tkman-2.1b3
dpkg-source: building tkman in tkman_2.1b3-1.tar.gz
dpkg-source: building tkman in tkman_2.1b3-1.dsc
 debian/rules build DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_CPU=i386 DEB_BUILD_GNU_SYSTEM=linux DEB_BUILD_GNU_TYPE=i386-linux DEB_HOST_ARCH=i386 DEB_HOST_GNU_CPU=i386 DEB_HOST_GNU_SYSTEM=linux DEB_HOST_GNU_TYPE=i386-linux
dh_testdir
# Add here commands to compile the package.
make
make[1]: Entering directory `/home/shaul/tkman/src/tkman-2.1b3'
cat scripthead > tkman
echo 'exec /usr/bin/wish8.2 $0 ${1+"$@"}' >> tkman
echo 'set manx(version) 2.1b3' >> tkman
echo 'set manx(mintcl) 8.1' >> tkman
echo 'set manx(mintk) 8.1' >> tkman
echo 'set manx(newuser) ""' >> tkman
echo 'set manx(dirnameindex) 3' >> tkman
echo 'set manx(mastermen) "/usr/man /usr/local/man"' >> tkman
echo 'set manx(masterbin) "/usr/bin /usr/local/bin"' >> tkman
echo 'set man(zcat) "gzip -dcfq"' >> tkman
echo 'set man(compress) "gzip -9qn"' >> tkman
echo 'set man(apropos) {man -k}' >> tkman
echo 'set man(glimpse) ""' >> tkman
echo 'set man(glimpseindex) ""' >> tkman
echo 'set man(glimpsestrays) /tmp' >> tkman
echo 'set man(indexglimpse) "distributed"' >> tkman
echo 'set man(indexalso) ""' >> tkman
echo 'set man(texinfodir) ""' >> tkman
echo 'set man(gzgrep) "zgrep -E"' >> tkman
echo 'set man(rfcdir) ""' >> tkman
echo 'set man(format) {groff -te -Tlatin1 -man /tmp/ll -}' >> tkman
echo 'set man(printers) ""' >> tkman
echo 'set manx(dpis) "75 100"' >> tkman
echo 'set man(print) {groff -man -Tps -te -l}' >> tkman
echo 'set man(cksum) md5sum' >> tkman
echo 'set man(zlist) {gz z Z}' >> tkman
echo 'set man(co) co' >> tkman
echo 'set man(rlog) rlog' >> tkman
echo 'set man(rcsdiff) rcsdiff' >> tkman
echo 'set man(vdiff) {gdiff -Bwd}' >> tkman
echo 'set manx(rman) rman' >> tkman
echo 'set man(catprint) lpr' >> tkman
echo 'set man(catsig) {cat[^/]+(/[^/]+)?$}' >> tkman
echo 'set man(shortnames) 0' >> tkman
echo 'set manx(changes) {' >> tkman
cat CHANGES >> tkman
echo '}' >> tkman
echo 'proc manHelpDump {t} {' >> tkman
cat tkman-help.tcl >> tkman
echo '}' >> tkman
echo 'image create bitmap icon -foreground black -background white -data {' >> tkman
cat contrib/tkman.bitmap >> tkman
echo '}' >> tkman
echo 'image create bitmap face -foreground black -background white -data {' >> tkman
cat xbm/face.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap opened -data {' >> tkman
cat xbm/opened.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap closed -data {' >> tkman
cat xbm/closed.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap sections -data {' >> tkman
cat xbm/sect.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap history -data {' >> tkman
cat xbm/history.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap random -data {' >> tkman
cat xbm/random.xbm >> tkman
echo '}' >> tkman
echo 'set manx(rebus) file|text|home|directory|disk|mail|Macintosh|TeX' >> tkman
echo 'image create bitmap fileRebus -data {' >> tkman
cat xbm/file.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap diskRebus -data {' >> tkman
cat xbm/disk_tiny.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap homeRebus -data {' >> tkman
cat xbm/woodhouse.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap textRebus -data {' >> tkman
cat xbm/text.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap directoryRebus -data {' >> tkman
cat xbm/file_dir.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap mailRebus -data {' >> tkman
cat xbm/mail.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap macintoshRebus -data {' >> tkman
cat xbm/mac.xbm >> tkman
echo '}' >> tkman
echo 'image create bitmap texRebus -data {' >> tkman
cat xbm/tex.xbm >> tkman
echo '}' >> tkman
echo 'set manx(solaris-bindings) {' >> tkman
cat contrib/solaris_bindings.tcl >> tkman
echo '}' >> tkman
echo 'set manx(solaris25-bindings) {' >> tkman
cat contrib/solaris25_bindings.tcl >> tkman
echo '}' >> tkman
echo 'set manx(solaris26-bindings) {' >> tkman
cat contrib/solaris26_bindings.tcl >> tkman
echo '}' >> tkman
echo 'set manx(irix-bindings) {' >> tkman
cat contrib/irix_bindings.tcl >> tkman
echo '}' >> tkman
echo 'set manx(sco-bindings) {' >> tkman
cat contrib/sco_bindings.tcl >> tkman
echo '}' >> tkman
sed -e 's/^[	 ]*//' -e '/^#/d' searchbox.tcl taputils.tcl textmanip.tcl gui.tcl prefs.tcl highlights.tcl version.tcl glimpse.tcl stats.tcl manualpage.tcl database.tcl manpath.tcl tkmandesc.tcl texi.tcl bmb.tcl tkman.tcl >> tkman
chmod +x tkman
cat scripthead > retkman
echo 'exec /usr/bin/wish8.2 $0 ${1+"$@"}' >> retkman
cat retkman.tcl >> retkman
chmod +x retkman

TkMan is compiled in the current directory.
You can test it by typing "./tkman".
To install it and the man page, type "make install".

make[1]: Leaving directory `/home/shaul/tkman/src/tkman-2.1b3'
touch build-stamp
 fakeroot debian/rules binary DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_CPU=i386 DEB_BUILD_GNU_SYSTEM=linux DEB_BUILD_GNU_TYPE=i386-linux DEB_HOST_ARCH=i386 DEB_HOST_GNU_CPU=i386 DEB_HOST_GNU_SYSTEM=linux DEB_HOST_GNU_TYPE=i386-linux
dh_testdir
dh_testroot
dh_clean -k
	rm -f debian/substvars debian/postinst.debhelper debian/postrm.debhelper debian/preinst.debhelper debian/prerm.debhelper
	rm -rf debian/tmp
	find . -type f -a \( -name \#\*\# -o -name \*\~ -o -name DEADJOE -o -name \*.orig -o -name \*.rej -o -name \*.bak -o -name .\*.orig -o -name .\*.rej -o -name .SUMS -o -name TAGS -o -name core -o \( -path \*/.deps/\* -a -name \*.P \) \) -exec rm -f {} \;
dh_installdirs
	install -d debian/tmp
	install -d debian/tmp/usr/bin
# Add here commands to install the package into debian/tmp.
make install DESTDIR=`pwd`/debian/tmp
make[1]: Entering directory `/home/shaul/tkman/src/tkman-2.1b3'
cp tkman /home/shaul/tkman/src/tkman-2.1b3/debian/tmp/usr/bin
chmod +rx /home/shaul/tkman/src/tkman-2.1b3/debian/tmp/usr/bin/tkman
cp retkman /home/shaul/tkman/src/tkman-2.1b3/debian/tmp/usr/bin
chmod +rx /home/shaul/tkman/src/tkman-2.1b3/debian/tmp/usr/bin/retkman
You also need RosettaMan to run TkMan.
Have you installed the elided text patch to Tk?
make[1]: Leaving directory `/home/shaul/tkman/src/tkman-2.1b3'
dh_testdir
dh_testroot
dh_installdocs
	install -g root -o root -d debian/tmp/usr/share/doc/tkman
	cp -a README-tkman tkman-help.html ANNOUNCE-tkman debian/tmp/usr/share/doc/tkman/
	chown -R root.root debian/tmp/usr/share/doc
	chmod -R go=rX debian/tmp/usr/share/doc
	chmod -R u\+rw debian/tmp/usr/share/doc
	install -g root -o root -m 644 -p debian/README.Debian debian/tmp/usr/share/doc/tkman/README.Debian
	install -g root -o root -m 644 -p debian/TODO debian/tmp/usr/share/doc/tkman/TODO.Debian
	install -g root -o root -m 644 -p debian/copyright debian/tmp/usr/share/doc/tkman/copyright
	echo "# Automatically added by dh_installdocs">> debian/postinst.debhelper
	sed "s/#PACKAGE#/tkman/g" /usr/share/debhelper/autoscripts/postinst-doc >> debian/postinst.debhelper
	echo '# End automatically added section' >> debian/postinst.debhelper
	echo "# Automatically added by dh_installdocs">> debian/prerm.debhelper
	sed "s/#PACKAGE#/tkman/g" /usr/share/debhelper/autoscripts/prerm-doc >> debian/prerm.debhelper
	echo '# End automatically added section' >> debian/prerm.debhelper
	install -g root -o root -d debian/tmp/usr/share/doc-base/
	install -g root -o root -m644 -p debian/doc-base debian/tmp/usr/share/doc-base/tkman
	echo "# Automatically added by dh_installdocs">> debian/postinst.debhelper
	sed "s/#DOC-ID#/tkman/" /usr/share/debhelper/autoscripts/postinst-doc-base >> debian/postinst.debhelper
	echo '# End automatically added section' >> debian/postinst.debhelper
	echo "# Automatically added by dh_installdocs">> debian/prerm.debhelper
	sed "s/#DOC-ID#/tkman/" /usr/share/debhelper/autoscripts/prerm-doc-base >> debian/prerm.debhelper
	echo '# End automatically added section' >> debian/prerm.debhelper
dh_installexamples
	install -d debian/tmp/usr/share/doc/tkman/examples
	cp -a contrib/AIcons.xpm contrib/README-contrib contrib/TkMan.gif contrib/TkMan.xpm contrib/calltkman.tcl contrib/hman.xbm contrib/remote.tcl contrib/tkman.bitmap contrib/tkman.xbm contrib/tkman.xpm contrib/tkman_selection.txt contrib/tkmanclient contrib/xman-mandesc.tcl debian/tmp/usr/share/doc/tkman/examples
dh_installmenu
	install -d debian/tmp/usr/lib/menu
	install -p -m644 debian/menu debian/tmp/usr/lib/menu/tkman
	echo "# Automatically added by dh_installmenu">> debian/postinst.debhelper
	sed "" /usr/share/debhelper/autoscripts/postinst-menu >> debian/postinst.debhelper
	echo '# End automatically added section' >> debian/postinst.debhelper
	echo "# Automatically added by dh_installmenu">> debian/postrm.debhelper
	sed "" /usr/share/debhelper/autoscripts/postrm-menu >> debian/postrm.debhelper
	echo '# End automatically added section' >> debian/postrm.debhelper
dh_installmanpages
	install -d debian/tmp/usr/share/man/man1/
	install -p -m644 debian/retkman.1 debian/tmp/usr/share/man/man1/retkman.1
	install -p -m644 debian/tkman.1 debian/tmp/usr/share/man/man1/tkman.1
dh_installchangelogs CHANGES
	install -o root -g root -p -m644 debian/changelog debian/tmp/usr/share/doc/tkman/changelog.Debian
	install -o root -g root -p -m644 CHANGES debian/tmp/usr/share/doc/tkman/changelog
dh_link
dh_strip
dh_compress
	cd debian/tmp
	chmod a-x usr/share/man/man1/retkman.1 usr/share/man/man1/tkman.1 usr/share/doc/tkman/README-tkman usr/share/doc/tkman/ANNOUNCE-tkman usr/share/doc/tkman/changelog.Debian usr/share/doc/tkman/changelog
	gzip -9f usr/share/man/man1/retkman.1 usr/share/man/man1/tkman.1 usr/share/doc/tkman/README-tkman usr/share/doc/tkman/ANNOUNCE-tkman usr/share/doc/tkman/changelog.Debian usr/share/doc/tkman/changelog
	cd /home/shaul/tkman/src/tkman-2.1b3
dh_fixperms
	find debian/tmp  -print0 2>/dev/null | xargs -0r chown --no-dereference root.root
	find debian/tmp ! -type l  -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s
	find debian/tmp/usr/share/doc debian/tmp/usr/doc -type f  ! -regex '.*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 644
	find debian/tmp/usr/share/doc debian/tmp/usr/doc -type d  -print0 2>/dev/null | xargs -0r chmod 755
	find debian/tmp/usr/share/man debian/tmp/usr/man/ debian/tmp/usr/X11*/man/ -type f  -print0 2>/dev/null | xargs -0r chmod 644
	find debian/tmp -perm -5 -type f \( -name '*.so*' -or -name '*.la' -or -name '*.a' \)  -print0 2>/dev/null | xargs -0r chmod a-X
# You may want to make some executables suid here.
dh_installdeb
	install -o root -g root -d debian/tmp/DEBIAN
	echo '#!/bin/sh -e' > debian/tmp/DEBIAN/postinst
	cat debian/postinst.debhelper >> debian/tmp/DEBIAN/postinst
	chown root.root debian/tmp/DEBIAN/postinst
	chmod 755 debian/tmp/DEBIAN/postinst
	echo '#!/bin/sh -e' > debian/tmp/DEBIAN/prerm
	cat debian/prerm.debhelper >> debian/tmp/DEBIAN/prerm
	chown root.root debian/tmp/DEBIAN/prerm
	chmod 755 debian/tmp/DEBIAN/prerm
	echo '#!/bin/sh -e' > debian/tmp/DEBIAN/postrm
	cat debian/postrm.debhelper >> debian/tmp/DEBIAN/postrm
	chown root.root debian/tmp/DEBIAN/postrm
	chmod 755 debian/tmp/DEBIAN/postrm
dh_gencontrol
	install -o root -g root -d debian/tmp/DEBIAN
	dpkg-gencontrol -ldebian/changelog -isp -ptkman -Tdebian/substvars -Pdebian/tmp
	chmod 644 debian/tmp/DEBIAN/control
	chown root.root debian/tmp/DEBIAN/control
dh_md5sums
	cd debian/tmp >/dev/null ; find * -type f  ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums ; cd /home/shaul/tkman/src/tkman-2.1b3 >/dev/null
	chmod 644 debian/tmp/DEBIAN/md5sums
	chown root.root debian/tmp/DEBIAN/md5sums
dh_builddeb
	dpkg --build debian/tmp ..
dpkg-deb: building package `tkman' in `../tkman_2.1b3-1_i386.deb'.
 signfile tkman_2.1b3-1.dsc

You need a passphrase to unlock the secret key for
user: "Shaul Karl <shaulk@israsrv.net.il>"
1024-bit DSA key, ID 046CE621, created 2000-02-05

Enter passphrase: 
                  

 dpkg-genchanges
dpkg-genchanges: including full source code in upload
 signfile tkman_2.1b3-1_i386.changes

You need a passphrase to unlock the secret key for
user: "Shaul Karl <shaulk@israsrv.net.il>"
1024-bit DSA key, ID 046CE621, created 2000-02-05

Enter passphrase: 
                  

dpkg-buildpackage: Debian-specific package; upload is full source
[15:56:56 tkman-2.1b3]$ exit
exit

Script done on Tue Feb  8 15:57:00 2000
Shaul Karl		 		   shaulk@israsrv.net.il
	An elephant is a mouse with an operating system.

Reply to: