Re: Problem with debian/rules
* Mathieu Malaterre mathieu.malate...@gmail.com, 2009-09-08, 11:38: Hi there, There is a problem with the following rules file (in dicom3tools), I wrote: for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \ dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all dcsrdump \ dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat gentodc.dat.all jpegdump \ jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith rawdiff rawmask rawnjl; do \ find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \ done `find | xargs rm` complains if no files were found. A more robust way to find-and-delete files is to use the -delete option for find. Of course, you should investigate why some files you are trying to delete are missing. -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Problem with debian/rules
On Tue, Sep 8, 2009 at 12:38 PM, Mathieu Malaterremathieu.malate...@gmail.com wrote: Hi there, There is a problem with the following rules file (in dicom3tools), I wrote: for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \ dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all dcsrdump \ dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat gentodc.dat.all jpegdump \ jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith rawdiff rawmask rawnjl; do \ find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \ done But this seems to be a problem on every single buildd machine (*). Does anyone see what could be wrong ? I think the problem is that sometimes find does not find anything and rm complain about missing argument. Like this: $ rm rm: missing operand Try `rm --help' for more information. Try to use rm -rf: $ rm -rf $ echo $? 0 $ What I am trying to do is remove, at the same time any existing man page ($file.1) or executable ($file) from a top level directory. Thanks, (*) https://buildd.debian.org/fetch.cgi?pkg=dicom3toolsarch=amd64ver=1.0~20090716-1stamp=1251914363file=logas=raw for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \ dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all dcsrdump \ dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat gentodc.dat.all jpegdump \ jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith rawdiff rawmask rawnjl; do \ find /build/buildd/dicom3tools-1.0~20090716/debian/dicom3tools -type f -name $file\* -print | xargs rm; \ done rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. rm: missing operand Try `rm --help' for more information. -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- Zaar -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Problem with debian/rules
On Tue, Sep 8, 2009 at 1:10 PM, Jakub Wilkuba...@users.sf.net wrote: * Mathieu Malaterre mathieu.malate...@gmail.com, 2009-09-08, 11:38: Hi there, There is a problem with the following rules file (in dicom3tools), I wrote: for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \ dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all dcsrdump \ dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat gentodc.dat.all jpegdump \ jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith rawdiff rawmask rawnjl; do \ find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \ done `find | xargs rm` complains if no files were found. A more robust way to find-and-delete files is to use the -delete option for find. Of course, you should investigate why some files you are trying to delete are missing Looking at the log, I can find: nawk -f ../../.././libsrc/support/strval.awk \ role=declare outname=strvalc ../../.././libsrc/standard/strval.tpl strvalc.h nawk: cannot open /dev/tty for output (No such device or address) make[5]: *** [strvalc.h] Error 2 I cannot find any result in google. Does anyone know what this means ? Thanks, -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Problem with debian/rules
On Tue, Sep 8, 2009 at 3:49 PM, Mathieu Malaterremathieu.malate...@gmail.com wrote: On Tue, Sep 8, 2009 at 1:10 PM, Jakub Wilkuba...@users.sf.net wrote: * Mathieu Malaterre mathieu.malate...@gmail.com, 2009-09-08, 11:38: Hi there, There is a problem with the following rules file (in dicom3tools), I wrote: for file in ancp andiff antodc.all binpatch bmpdump dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \ dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all dcsrdump \ dcsrmrg dcsub dcswab dctopgm8 dcunjpeg.all dumptiff dumpwhat gentodc.dat.all jpegdump \ jpegsplit pbmswbit pgmtobmp pnmpred pnmtoraw pqsplit rawarith rawdiff rawmask rawnjl; do \ find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \ done `find | xargs rm` complains if no files were found. A more robust way to find-and-delete files is to use the -delete option for find. Of course, you should investigate why some files you are trying to delete are missing Looking at the log, I can find: nawk -f ../../.././libsrc/support/strval.awk \ role=declare outname=strvalc ../../.././libsrc/standard/strval.tpl strvalc.h nawk: cannot open /dev/tty for output (No such device or address) Wild guess: if you run build from chroot, then probably your /dev (under chroot) is not populated, thus awk can not access /dev/tty (I do not know why it tries). make[5]: *** [strvalc.h] Error 2 I cannot find any result in google. Does anyone know what this means ? Thanks, -- Mathieu -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- Zaar -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Problem with debian/rules
In cfb54190909080619y7b60afd4ucbdf6d9cfe0b9...@mail.gmail.com, Hai Zaar wrote: On Tue, Sep 8, 2009 at 3:49 PM, Mathieu Malaterremathieu.malate...@gmail.com wrote: nawk -f ../../.././libsrc/support/strval.awk \ role=declare outname=strvalc ../../.././libsrc/standard/strval.tpl strvalc.h nawk: cannot open /dev/tty for output (No such device or address) Wild guess: if you run build from chroot, then probably your /dev (under chroot) is not populated, thus awk can not access /dev/tty. Either that or your chroot is in a nodev mount point. Then the device will exist, but won't work. -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ signature.asc Description: This is a digitally signed message part.