[config-package-dev] transform does not work on ubuntu trusty

Jonathan D Reed jdreed at mit.edu
Wed Sep 17 08:12:08 EDT 2014


No, that is correct, config-package-dev should be in Build-Depends in the control file.

Are you able to share your entire package build directory, including the debian/ directory?  That will probably make it easier for us to figure out what might be going wrong.


On Sep 17, 2014, at 2:56 AM, Djokic, Slavisa <Slavisa.Djokic at uni-hamburg.de> wrote:

> Hello Jonathan,
> 
> i guess Build-Depending on config-package-dev means it's listed in Build-Depends in the control file. Yes, as all examples show I've put config-package-dev in there. Is this wrong?
> 
> Sascha
> 
> -----Ursprüngliche Nachricht-----
> Von: Jonathan D Reed [mailto:jdreed at mit.edu] 
> Gesendet: Dienstag, 16. September 2014 17:15
> An: Djokic, Slavisa
> Cc: config-package-dev at mit.edu
> Betreff: Re: [config-package-dev] transform does not work on ubuntu trusty
> 
> Hi Sascha, 
> 
> Please be sure to CC config-package-dev at mit.edu so that the other maintainers see the entire thread.
> 
> Are you Build-Depending on config-package-dev?  That might explain why pbuilder can't find it.
> 
> You may want to check out the examples in /usr/share/doc/config-package-dev/examples/debhelper/  (Assuming you have installed config-package-dev)
> 
> -Jon
> 
> On Sep 16, 2014, at 10:20 AM, Djokic, Slavisa <Slavisa.Djokic at uni-hamburg.de> wrote:
> 
>> Hello Jonathan,
>> 
>> thank you for your fast reply! The reason why I didn't get build-errors is because I passed '-d' (don't check build-dependencies) to debuild. But exactly that might be the problem. 
>> 
>> I want to repackage rkhunter to include a patch for our local repository. The build-machine is Ubuntu Trusty and the Target is Ubuntu Precise (the issue has been fixed in Trusty). So I tried sbuild and pbuilder but I don't seem to get the setup right.
>> 
>> I will try to get more into packaging and will report when succeeding. In short this error could relate to config-package-dev (with pbuilder-dist-simple):
>> dh: unable to load addon config-package: Can't locate Debian/Debhelper/Sequence/config_package.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 3) line 2.
>> 
>> My pbuilder-environment doesn't seem to work for the intended purpose, while building the source package as is works fine.
>> 
>> Cheers
>> Sascha
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: Jonathan D Reed [mailto:jdreed at mit.edu]
>> Gesendet: Donnerstag, 11. September 2014 18:15
>> An: Djokic, Slavisa
>> Cc: config-package-dev at mit.edu
>> Betreff: Re: [config-package-dev] transform does not work on ubuntu 
>> trusty
>> 
>> Hi Sascha,
>> 
>> Per dh_configpackage(1), the transform script provides the un-transformed version of the file on stdin, and expects the transformed file on stdout, so that invocation of patch won't actually do anything.  You probably want something like:
>> 
>> patch -N -f -r - -o - -i rkhunter.patch
>> 
>> That will cause patch to send the patched file to stdout, and read the .patch file directly, without using I/O redirection.  stdin would then be ignored.  However, that's probably also a bad idea, since patch will still look for the source file (to be patched) on the filesystem.  There is, as far as I can tell, no good way to get patch to use stdin as the original (to-be-patched) file.
>> 
>> That having been said, I'm not sure why you saw no errors in the build process - in some cursory testing, patch errored out, and thus dh_configpackage failed, and the build stopped.
>> 
>> If you want to use patch, the easiest way is probably with a separate transformation script (as described in the manpage), which can read the original file on stdin, write it somewhere temporary, apply the patch and generate the result on stdout.
>> 
>> -Jon
>> 
>> On Sep 11, 2014, at 10:59 AM, Djokic, Slavisa <Slavisa.Djokic at uni-hamburg.de> wrote:
>> 
>>> Hello,
>>> 
>>> How would I apply a patchfile to a file in a .transform notation? What I tried:
>>> seait-rkhunter.transform:
>>> /usr/bin/rkhunter.seait  patch -N -f -r - < rkhunter.patch
>>> 
>>> On Ubuntu Trusty i got the sources:
>>> apt-get source rkhunter/precise
>>> 
>>> Added config-package and rkhunter to Build-Depends in control Put 
>>> '--with=config-package' in the rules
>>> 
>>> Altered Version:
>>> dch -l+seait
>>> 
>>> Build the package with: debuild -us -uc -i -d
>>> 
>>> The package seems to build fine. No errors are reported in the buildlog. But /usr/bin/rkhunter is not patched neither is it linked to rkhunter.seait nor is there a rkhunter.orig.
>>> 
>>> Cheers
>>> sascha
>>> 
>>> _______________________________________________
>>> config-package-dev mailing list
>>> config-package-dev at mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/config-package-dev
>> 
> 




More information about the config-package-dev mailing list