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

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 '/<<PKGBUILDDIR>>'
>dh_installchangelogs -k ChangeLog
>gzip -9 /<<PKGBUILDDIR>>/debian/geeqie/usr/share/doc/geeqie/changelog.Debian
>gzip -9 /<<PKGBUILDDIR>>/debian/geeqie-common/usr/share/doc/geeqie-common/changelog.Debian
>gzip: /<<PKGBUILDDIR>>/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 '/<<PKGBUILDDIR>>'
>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
gusnan@debian.org
mailinglists@gusnan.se


Reply to: