Re: Can quilt delete files?
Peter Samuelson (10/12/2009): > Easier just to 'rm' ... but also, note that 'rename' will need some > sort of Build-depends: perl. Which sort? | -(cy...@talisker)-(~)-() | $ apt-cache show perl|egrep '^(Package|Build-Essential)' | Package: perl | Build-Essential: yes Mraw, KiBi. signature.asc Description: Digital signature
Re: Can quilt delete files?
[Daniel Leidert] > Alternatively: > > build: > find . -name "*.jar" -exec rename 's/$/.orig/' "{}" ";" > > clean: > find . -name "*.jar.orig" -exec rename 's/\.orig$//' "{}" ";" Easier just to 'rm' ... but also, note that 'rename' will need some sort of Build-depends: perl. And uh, while you're at it, may as well replace ";" with + above. -- Peter Samuelson | org-tld!p12n!peter | http://p12n.org/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
Put all the *jar files in the debian/clean file and they will be removed by the clean rule. You'll need debhelper compat 7 for this, though. Fabian -- Dipl.-Phys. Fabian Greffrath Ruhr-Universität Bochum Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT) Universitätsstr. 150, IB 3/134 D-44780 Bochum Telefon: +49 (0)234 / 32-26334 Fax: +49 (0)234 / 32-14227 E-Mail: greffr...@leat.ruhr-uni-bochum.de -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
On Tue, 8 Dec 2009 16:56:05 +0100, Thomas Koch wrote: > Hi, Hi Thomas, > I'm triing to package a little java library, which contains its own .jar > and some pregenerated docs. These files should be regenerated on build time. > So I'd like to have them removed by diff.gz As a general guideline, generated files should be stripped from "original" source tarballs. If you choose to keep them in orig.tar.{gz,bz2}, it's complicated for others people (FTP Masters, reviewers, ...) to ensure there is not binary blob or non-free stuff inside your package. Cheers, -- Damien - Debian Developper http://wiki.debian.org/DamienRaudeMorvan -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
Thomas Koch wrote: > > As long as the jar file is the one created by the sourcecode in the tarball, > I > don't see a reason, that it needs to be removed and thus the upstream tarball > repackaged. Right. I missed that from your initial post. -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
On Tue Dec 08 16:56, Thomas Koch wrote: > Trying to generate an appropriate quilt patch failed. The only thing I came > up > with, was a patch that contains the whole content of the removed files with - > before every line. > Anybody more clever then me? No, you can't do it like that. Generally the source package is repacked to remove these first and that tarball is uploaded as the orig.tar.gz. Many Java packages need to be repacked from .zip anyway, so that's not a big deal. If you do this is customary to append a '.ds' or similar suffix to the upstream version. > I know that dpatch allows the execution of shell scripts. This would be > ideal. > I'd just do find . -name "*.jar" -exec rm {} \; You could do this, although if you are going down this route, just doing it in the clean: target is probably sufficient. In any case they are still shipped in the upstream tarball and dpkg-source ignores missing files when creating the diff.gz Matt -- Matthew Johnson signature.asc Description: Digital signature
Re: Can quilt delete files?
On Tue Dec 08 17:42, Thomas Koch wrote: > As long as the jar file is the one created by the sourcecode in the tarball, > I > don't see a reason, that it needs to be removed and thus the upstream tarball > repackaged. No, but it is an option still. > Putting the deletion in the clean target could be an option, but I really > hate > to modify my source tree that much while packaging. Why do you think there's a difference between this and at patch time. > So no way to do it with quilt? There's definitely no way to do it with quilt. Matt -- Matthew Johnson signature.asc Description: Digital signature
Re: Can quilt delete files?
> Benjamin Drung wrote: > > Putting 'find . -name "*.jar" -delete' in you clean rule should do the > > same job for you. > > The *.jar files should not be present in the tarball. As long as the jar file is the one created by the sourcecode in the tarball, I don't see a reason, that it needs to be removed and thus the upstream tarball repackaged. If the upstream tarball contains dependency jars (as mostly) then we need to repackage. Putting the deletion in the clean target could be an option, but I really hate to modify my source tree that much while packaging. So no way to do it with quilt? Thomas Koch, http://www.koch.ro -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
Am Dienstag, den 08.12.2009, 17:31 +0100 schrieb Mehdi Dogguy: > Thomas Koch wrote: > > Hi, > > > > I'm triing to package a little java library, which contains its own .jar > > and > > some pregenerated docs. These files should be regenerated on build time. So > > I'd like to have them removed by diff.gz > > Trying to generate an appropriate quilt patch failed. The only thing I came > > up > > with, was a patch that contains the whole content of the removed files with > > - > > before every line. > > Anybody more clever then me? > > > > What about repackaging? Alternatively: build: find . -name "*.jar" -exec rename 's/$/.orig/' "{}" ";" clean: find . -name "*.jar.orig" -exec rename 's/\.orig$//' "{}" ";" IMO this is ok as long as these jars can be rebuilt during build. Regards, Daniel -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
Benjamin Drung wrote: > > Putting 'find . -name "*.jar" -delete' in you clean rule should do the > same job for you. > The *.jar files should not be present in the tarball. -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
Thomas Koch wrote: > Hi, > > I'm triing to package a little java library, which contains its own .jar and > some pregenerated docs. These files should be regenerated on build time. So > I'd like to have them removed by diff.gz > Trying to generate an appropriate quilt patch failed. The only thing I came > up > with, was a patch that contains the whole content of the removed files with - > before every line. > Anybody more clever then me? > What about repackaging? (I assume you are subscribed to the list) -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Can quilt delete files?
Am Dienstag, den 08.12.2009, 16:56 +0100 schrieb Thomas Koch: > Hi, > > I'm triing to package a little java library, which contains its own .jar and > some pregenerated docs. These files should be regenerated on build time. So > I'd like to have them removed by diff.gz > Trying to generate an appropriate quilt patch failed. The only thing I came > up > with, was a patch that contains the whole content of the removed files with - > before every line. > Anybody more clever then me? > > I know that dpatch allows the execution of shell scripts. This would be > ideal. > I'd just do find . -name "*.jar" -exec rm {} \; > > But also a patch which contains just the names of the files to be removed and > not the whole content would suffice. Putting 'find . -name "*.jar" -delete' in you clean rule should do the same job for you. -- Benjamin Drung Ubuntu Developer (www.ubuntu.com) | Debian Maintainer (www.debian.org) signature.asc Description: Dies ist ein digital signierter Nachrichtenteil