Debian Developers - dh_installexamples is zipping a file

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > August 2004 > dh_installexamples is zipping a file





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author dh_installexamples is zipping a file
Nico Golde

2004-08-08, 5:51 pm

Hi,
i package tpp a text presentation program and i have one problem.
i use dh_installexamples examples/* to install examples presentation
files in /usr/share/doc/tpp/examples. it install all files very well,
but one of the file become zipped with gzip during the installation.
all other examples arent zipped.

i have no idea why and i found no gzip method in the dh_installexamples
source code.
can anyone give me a hint?
you find the package on http://nico.f-451.net/debian/tpp
regards nico
--
Nico Golde - 310777820@ICQ
nico@ngolde.de | nion@gmx.net | http://www.ngolde.de
GPG: FF46 E565 5CC1 E2E5 3F69 C739 1D87 E549 7364 7CFF
Is there life after /sbin/halt -p?

Justin Pryzby

2004-08-08, 5:51 pm

Compression is the result of dh_compress.
Justin
On Sun, Aug 08, 2004 at 07:58:27PM +0200, Nico Golde wrote:
> Hi,
> i package tpp a text presentation program and i have one problem.
> i use dh_installexamples examples/* to install examples presentation
> files in /usr/share/doc/tpp/examples. it install all files very well,
> but one of the file become zipped with gzip during the installation.
> all other examples arent zipped.
>
> i have no idea why and i found no gzip method in the dh_installexamples
> source code.
> can anyone give me a hint?
> you find the package on http://nico.f-451.net/debian/tpp
> regards nico


Tilman Koschnick

2004-08-08, 5:51 pm

Hi Nico,

are you calling dh_compress later on in debian/rules?

From the man page:

| By default, dh_compress compresses files that debian policy mandates
| should be compressed, namely all files in usr/share/info,
| usr/share/man, usr/X11R6/man, files in usr/share/doc that are larger
| than 4k in size, (except the copy-right file, .html and .css files,
| and files that appear to be already compressed based on their
| extensions), and all changelog files. Plus PCF fonts underneath
| usr/X11R6/lib/X11/fonts/

Cheers, Til


Nico Golde wrote:

> Hi,
> i package tpp a text presentation program and i have one problem.
> i use dh_installexamples examples/* to install examples presentation
> files in /usr/share/doc/tpp/examples. it install all files very well,
> but one of the file become zipped with gzip during the installation.
> all other examples arent zipped.
>
> i have no idea why and i found no gzip method in the dh_installexamples
> source code.
> can anyone give me a hint?
> you find the package on http://nico.f-451.net/debian/tpp
> regards nico



--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sebastian Ley

2004-08-08, 5:51 pm

* Nico Golde wrote:

> i package tpp a text presentation program and i have one problem.
> i use dh_installexamples examples/* to install examples presentation
> files in /usr/share/doc/tpp/examples. it install all files very well,
> but one of the file become zipped with gzip during the installation.
> all other examples arent zipped.


As already mentioned, dh_compress is responsible for this and only compresses
files if they are larger than 4kB.

Sebastian

--
PGP-Key: http://www.mmweg.rwth-aachen.de/~se....ley/public.key
Fingerprint: A46A 753F AEDC 2C01 BE6E F6DB 97E0 3309 9FD6 E3E6


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Bartosz Fenski aka fEnIo

2004-08-09, 2:48 am

On Sun, Aug 08, 2004 at 07:58:27PM +0200, Nico Golde wrote:
> i package tpp a text presentation program and i have one problem.
> i use dh_installexamples examples/* to install examples presentation
> files in /usr/share/doc/tpp/examples. it install all files very well,
> but one of the file become zipped with gzip during the installation.
> all other examples arent zipped.
>
> i have no idea why and i found no gzip method in the dh_installexamples
> source code.
> can anyone give me a hint?


dh_installexamples has nothing to do with gzip.
You're probably using dh_compress, and it gzips files if they're over 4kB.
You can simply exclude some files from being maintained by dh_compress with
-X switch.

regards
fEnIo

--
_ Bartosz Fenski | mailto:fenio@o2.pl | pgp:0x13fefc40 | IRC:fEnIo
_|_|_ 32-050 Skawina - Glowackiego 3/15 - w. malopolskie - Polska
(0 0) phone:+48602383548 | Slackware - the weakest link
ooO--(_)--Ooo http://skawina.eu.org | JID:fenio@jabber.org | RLU:172001

Nico Golde

2004-08-09, 2:48 am

Hallo Tilman,

* Tilman Koschnick <til@belleville.ch> [2004-08-08 22:37]:
> are you calling dh_compress later on in debian/rules?


yes.

> From the man page:
>
> | By default, dh_compress compresses files that debian policy mandates
> | should be compressed, namely all files in usr/share/info,
> | usr/share/man, usr/X11R6/man, files in usr/share/doc that are larger
> | than 4k in size, (except the copy-right file, .html and .css files,
> | and files that appear to be already compressed based on their
> | extensions), and all changelog files. Plus PCF fonts underneath
> | usr/X11R6/lib/X11/fonts/


ah thanks very much, then i think it is ok.
regards nico
--
Nico Golde - 310777820@ICQ
nico@ngolde.de | nion@gmx.net | http://www.ngolde.de
GPG: FF46 E565 5CC1 E2E5 3F69 C739 1D87 E549 7364 7CFF
Is there life after /sbin/halt -p?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com