<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
bouncing personal mail to list.<br>
<div style=""><br>
<div>Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica';">&quot;Djokic, Slavisa&quot; &lt;<a href="mailto:Slavisa.Djokic@uni-hamburg.de">Slavisa.Djokic@uni-hamburg.de</a>&gt;<br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b>
</span><span style="font-family:'Helvetica';"><b>AW: [config-package-dev] transform does not work on ubuntu trusty</b><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">September 16, 2014 at 10:20:51 AM EDT<br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica';">Jonathan D Reed &lt;<a href="mailto:jdreed@mit.edu">jdreed@mit.edu</a>&gt;<br>
</span></div>
<br>
<div>Hello Jonathan,<br>
<br>
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.
<br>
<br>
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.<br>
<br>
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):<br>
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.<br>
<br>
My pbuilder-environment doesn't seem to work for the intended purpose, while building the source package as is works fine.<br>
<br>
Cheers<br>
Sascha<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: Jonathan D Reed [<a href="mailto:jdreed@mit.edu">mailto:jdreed@mit.edu</a>] <br>
Gesendet: Donnerstag, 11. September 2014 18:15<br>
An: Djokic, Slavisa<br>
Cc: <a href="mailto:config-package-dev@mit.edu">config-package-dev@mit.edu</a><br>
Betreff: Re: [config-package-dev] transform does not work on ubuntu trusty<br>
<br>
Hi Sascha,<br>
<br>
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. &nbsp;You probably want something like:<br>
<br>
patch -N -f -r - -o - -i rkhunter.patch<br>
<br>
That will cause patch to send the patched file to stdout, and read the .patch file directly, without using I/O redirection. &nbsp;stdin would then be ignored. &nbsp;However, that's probably also a bad idea, since patch will still look for the source file (to be patched)
 on the filesystem. &nbsp;There is, as far as I can tell, no good way to get patch to use stdin as the original (to-be-patched) file.<br>
<br>
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.<br>
<br>
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.<br>
<br>
-Jon<br>
<br>
On Sep 11, 2014, at 10:59 AM, Djokic, Slavisa &lt;<a href="mailto:Slavisa.Djokic@uni-hamburg.de">Slavisa.Djokic@uni-hamburg.de</a>&gt; wrote:<br>
<br>
<blockquote type="cite">Hello,<br>
<br>
How would I apply a patchfile to a file in a .transform notation? What I tried:<br>
seait-rkhunter.transform:<br>
/usr/bin/rkhunter.seait &nbsp;patch -N -f -r - &lt; rkhunter.patch<br>
<br>
On Ubuntu Trusty i got the sources:<br>
apt-get source rkhunter/precise<br>
<br>
Added config-package and rkhunter to Build-Depends in control Put <br>
'--with=config-package' in the rules<br>
<br>
Altered Version:<br>
dch -l&#43;seait<br>
<br>
Build the package with: debuild -us -uc -i -d<br>
<br>
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.<br>
<br>
Cheers<br>
sascha<br>
<br>
_______________________________________________<br>
config-package-dev mailing list<br>
<a href="mailto:config-package-dev@mit.edu">config-package-dev@mit.edu</a><br>
http://mailman.mit.edu/mailman/listinfo/config-package-dev<br>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</body>
</html>