Comment 14 for bug 76364

Revision history for this message
digitalage (iulmit) wrote :

Hi everyone and thanks for support. I use to get good informations on Launchpad.net on several issues, however, in few times, I was in the position that I got clear informations about the issue but sadly it didn't help me solve it. It would be very helpful if someone could guide me on applying the patch provided above. I wasn't able to follow the guide on BuildFromDebdiff page (Kees' suggestion) and I'll be very happy if someone could bring some light here, as I'm not the only one in this situation - I've seen threads on ubuntuforums and other forums.

Kees, if you're still around, in your .debdiff file I see paths /tmp/pvr04DowCb/libpam-foreground-0.3/debian/control and /tmp/7r5OcF8D3r/libpam-foreground-0.3/debian/control. Using the guide on BuildFromDebdiff page, I have no clue how to get directories such pvr04DowCb or 7r5OcF8D3r, to which your patch refers to. This is what I do:
- download your patch (wget http://launchpadlibrarian.net/7755823/Makefile.patch)
- download the source file (apt-get source libpam-foreground)
- extract the tar.gz source file (tar -xvf libpam-foreground_0.3.tar.gz)
- enter extracted directory (cd libpam-foreground-0.3)
- run the command "patch -p1 < ../libpam-foreground_0.3-0ubuntu1.debdiff"
Whenever I try to apply the patch, I get the following:

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru /tmp/pvr04DowCb/libpam-foreground-0.3/Makefile /tmp/7r5OcF8D3r/libpam-foreground-0.3/Makefile
|--- /tmp/pvr04DowCb/libpam-foreground-0.3/Makefile 2006-05-11 03:41:51.000000000 -0700
|+++ /tmp/7r5OcF8D3r/libpam-foreground-0.3/Makefile 2007-06-21 13:05:32.000000000 -0700
--------------------------
File to patch:

Please tell me if I'm doing smth wrong. It would be great if someone could advise me.