Re: Packing and installing Debian changelog "by hand"
On Sat, Jul 27, 2019 at 10:18:12PM +0200, Andreas Ronnquist wrote: > To me it looks like dh_compress automatically runs on at least "all > files in /usr/share/doc" (according to the man-page), and you'll have > to use the -X to be able to have some of these not compressed, so if I > run it on changelog.Debian, without even mentioning changelog or > ChangeLog, these will be compressed. And if I don't add these > exclusions, all is compressed. So, I don't see really what you mean > here. Hmm, indeed. Run it with both -X and explicit file name? :) -- WBR, wRAR signature.asc Description: PGP signature
Re: Packing and installing Debian changelog "by hand"
On Sat, 27 Jul 2019 22:05:56 +0500, Andrey Rahmatullin wrote: >On Sat, Jul 27, 2019 at 06:50:27PM +0200, Andreas Ronnquist wrote: >> >Call dh_compress on changelog.Debian. >> > >> >> Thanks - >> >> However - I'm sorry to say it wasn't that simple - I believe I run >> into #781131 [1] >That report is only about -X so I don't see how is it related to my >suggestion. >If it wasn't clear, I suggested running it twice. > To me it looks like dh_compress automatically runs on at least "all files in /usr/share/doc" (according to the man-page), and you'll have to use the -X to be able to have some of these not compressed, so if I run it on changelog.Debian, without even mentioning changelog or ChangeLog, these will be compressed. And if I don't add these exclusions, all is compressed. So, I don't see really what you mean here. (Sorry if I am misunderstanding you - I blame the heatwave over here)... -- Andreas Rönnquist mailingli...@gusnan.se andr...@ronnquist.net pgpdfeHszKOOt.pgp Description: OpenPGP digital signature
Re: Packing and installing Debian changelog "by hand"
Hello, Am 27.07.19 um 18:50 schrieb Andreas Ronnquist: > On Sat, 27 Jul 2019 20:05:33 +0500, > Andrey Rahmatullin wrote: > >> On Sat, Jul 27, 2019 at 03:30:05PM +0200, Andreas Ronnquist wrote: >>> I have a package which got a menu item to show the upstream >>> changelog - So I want to avoid compressing this, but still compress >>> the Debian changelog. >>> >>> In my attempts I first use override_dh_compress and add -Xchangelog >>> there, with the results that all changelogs are not compressed. >>> (Since this also catches changelog.Debian) >>> >>> Fine, then I simply compress my Debian changelog by hand using gzip >>> -9 >>> - which I have tried in override_dh_install_changelogs like this: >> Call dh_compress on changelog.Debian. >> > > Thanks - > > However - I'm sorry to say it wasn't that simple - I believe I run into > #781131 [1] - I only manage to make all files containing "changelog" to be > compressed, or none of them. Only a view through the crystal ball: You want to hold the upstream changelog uncompressed? then I guess you should overwrite installdocs instead of installchangelog. > > -- Andreas Rönnquist > mailingli...@gusnan.se > andr...@ronnquist.net > > 1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781131 > Kind regards -- Mechtilde Stehmann ## Debian Developer ## PGP encryption welcome ## F0E3 7F3D C87A 4998 2899 39E7 F287 7BBA 141A AD7F signature.asc Description: OpenPGP digital signature
Re: Packing and installing Debian changelog "by hand"
On Sat, Jul 27, 2019 at 06:50:27PM +0200, Andreas Ronnquist wrote: > >Call dh_compress on changelog.Debian. > > > > Thanks - > > However - I'm sorry to say it wasn't that simple - I believe I run into > #781131 [1] That report is only about -X so I don't see how is it related to my suggestion. If it wasn't clear, I suggested running it twice. -- WBR, wRAR signature.asc Description: PGP signature
Re: Packing and installing Debian changelog "by hand"
On Sat, 27 Jul 2019 20:05:33 +0500, Andrey Rahmatullin wrote: >On Sat, Jul 27, 2019 at 03:30:05PM +0200, Andreas Ronnquist wrote: >> I have a package which got a menu item to show the upstream >> changelog - So I want to avoid compressing this, but still compress >> the Debian changelog. >> >> In my attempts I first use override_dh_compress and add -Xchangelog >> there, with the results that all changelogs are not compressed. >> (Since this also catches changelog.Debian) >> >> Fine, then I simply compress my Debian changelog by hand using gzip >> -9 >> - which I have tried in override_dh_install_changelogs like this: >Call dh_compress on changelog.Debian. > Thanks - However - I'm sorry to say it wasn't that simple - I believe I run into #781131 [1] - I only manage to make all files containing "changelog" to be compressed, or none of them. -- Andreas Rönnquist mailingli...@gusnan.se andr...@ronnquist.net 1: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781131 pgpqEr52TOuRv.pgp Description: OpenPGP digital signature
Re: Packing and installing Debian changelog "by hand"
On Sat, Jul 27, 2019 at 03:30:05PM +0200, Andreas Ronnquist wrote: > I have a package which got a menu item to show the upstream changelog - > So I want to avoid compressing this, but still compress the Debian > changelog. > > In my attempts I first use override_dh_compress and add -Xchangelog > there, with the results that all changelogs are not compressed. (Since > this also catches changelog.Debian) > > Fine, then I simply compress my Debian changelog by hand using gzip -9 > - which I have tried in override_dh_install_changelogs like this: Call dh_compress on changelog.Debian. -- WBR, wRAR signature.asc Description: PGP signature
Packing and installing Debian changelog "by hand"
Hi I have a package which got a menu item to show the upstream changelog - So I want to avoid compressing this, but still compress the Debian changelog. In my attempts I first use override_dh_compress and add -Xchangelog there, with the results that all changelogs are not compressed. (Since this also catches changelog.Debian) Fine, then I simply compress my Debian changelog by hand using gzip -9 - which I have tried in override_dh_install_changelogs like this: override_dh_installchangelogs: dh_installchangelogs -k ChangeLog gzip -9 $(CURDIR)/debian/geeqie/usr/share/doc/geeqie/changelog.Debian gzip -9 $(CURDIR)/debian/geeqie-common/usr/share/doc/geeqie-common/changelog.Debian which works fine locally, but fails horribly on the buildds: >make[1]: Entering directory '/<>' >dh_installchangelogs -k ChangeLog >gzip -9 /<>/debian/geeqie/usr/share/doc/geeqie/changelog.Debian >gzip -9 >/<>/debian/geeqie-common/usr/share/doc/geeqie-common/changelog.Debian >gzip: >/<>/debian/geeqie-common/usr/share/doc/geeqie-common/changelog.Debian: > No such file or directory >make[1]: *** [debian/rules:41: override_dh_installchangelogs] Error 1 >make[1]: Leaving directory '/<>' >make: *** [debian/rules:4: binary-arch] Error 2 >dpkg-buildpackage: error: debian/rules binary-arch subprocess returned >exit status 2 Instead doing it like this: override_dh_installchangelogs: dh_installchangelogs -pgeeqie -k ChangeLog gzip -9 $(CURDIR)/debian/geeqie/usr/share/doc/geeqie/changelog.Debian dh_installchangelogs -pgeeqie-common -k ChangeLog gzip -9 $(CURDIR)/debian/geeqie-common/usr/share/doc/geeqie-common/changelog.Debian should work also on the buildds, right? Or how should it be done properly? Simply asking to avoid using the buildds for testing (again). thanks in advance -- Andreas Rönnquist gus...@debian.org mailingli...@gusnan.se