Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40021 - apcupsd ebuild 3.10.8 or .9 won't build -- error in smtp patch.
Summary: apcupsd ebuild 3.10.8 or .9 won't build -- error in smtp patch.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-31 16:07 UTC by Jason Costomiris
Modified: 2004-02-16 14:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
First troubleshooting steps requested (2004-02-02 10:16 PST) (apcupsd1.txt,9.44 KB, text/plain)
2004-02-02 10:39 UTC, Jason Costomiris
Details
The result of emerge apcupsd (emerge.txt,36.43 KB, text/plain)
2004-02-02 10:40 UTC, Jason Costomiris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Costomiris 2004-01-31 16:07:22 UTC
I've got apcupsd 3.10.5 installed.  I recently tried to upgrade to 3.10.8 or 3.10.9, only to find that the ebuild is borked.  Here's the end of the build:

gmake[1]: Nothing to be done for `install'.
gmake[1]: Leaving directory `/var/tmp/portage/apcupsd-3.10.9/work/apcupsd-3.10.9/autoconf'
 * Applying smtp.patch...

 * Failed Patch: smtp.patch!
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/apcupsd-3.10.9/temp/smtp.patch-27677.out


!!! ERROR: sys-apps/apcupsd-3.10.9 failed.
!!! Function epatch, Line 354, Exitcode 0
!!! Failed Patch: smtp.patch!

Here's the requested data (the failed patch):

***** smtp.patch *****

======================

PATCH COMMAND:  patch  -p0 < /usr/portage/sys-apps/apcupsd/files/3.10.9/smtp.patch

======================
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 -u old/changeme new/changeme
|--- old/changeme	2003-11-01 11:31:10.000000000 -0500
|+++ new/changeme	2003-11-01 11:27:09.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commfailure new/commfailure
|--- old/commfailure	2003-11-01 11:31:26.000000000 -0500
|+++ new/commfailure	2003-11-01 11:27:13.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commok new/commok
|--- old/commok	2003-11-01 11:31:33.000000000 -0500
|+++ new/commok	2003-11-01 11:27:16.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 52
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mainsback new/mainsback
|--- old/mainsback	2003-11-01 11:30:55.000000000 -0500
|+++ new/mainsback	2003-11-01 11:27:21.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 68
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/masterconnect new/masterconnect
|--- old/masterconnect	2003-11-01 11:31:43.000000000 -0500
|+++ new/masterconnect	2003-11-01 11:27:30.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 84
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mastertimeout new/mastertimeout
|--- old/mastertimeout	2003-11-01 11:31:52.000000000 -0500
|+++ new/mastertimeout	2003-11-01 11:27:33.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 100
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/onbattery new/onbattery
|--- old/onbattery	2003-11-01 11:32:03.000000000 -0500
|+++ new/onbattery	2003-11-01 11:27:35.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
======================

PATCH COMMAND:  patch  -p1 < /usr/portage/sys-apps/apcupsd/files/3.10.9/smtp.patch

======================
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 -u old/changeme new/changeme
|--- old/changeme	2003-11-01 11:31:10.000000000 -0500
|+++ new/changeme	2003-11-01 11:27:09.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commfailure new/commfailure
|--- old/commfailure	2003-11-01 11:31:26.000000000 -0500
|+++ new/commfailure	2003-11-01 11:27:13.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commok new/commok
|--- old/commok	2003-11-01 11:31:33.000000000 -0500
|+++ new/commok	2003-11-01 11:27:16.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 52
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mainsback new/mainsback
|--- old/mainsback	2003-11-01 11:30:55.000000000 -0500
|+++ new/mainsback	2003-11-01 11:27:21.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 68
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/masterconnect new/masterconnect
|--- old/masterconnect	2003-11-01 11:31:43.000000000 -0500
|+++ new/masterconnect	2003-11-01 11:27:30.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 84
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mastertimeout new/mastertimeout
|--- old/mastertimeout	2003-11-01 11:31:52.000000000 -0500
|+++ new/mastertimeout	2003-11-01 11:27:33.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 100
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/onbattery new/onbattery
|--- old/onbattery	2003-11-01 11:32:03.000000000 -0500
|+++ new/onbattery	2003-11-01 11:27:35.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
======================

PATCH COMMAND:  patch  -p2 < /usr/portage/sys-apps/apcupsd/files/3.10.9/smtp.patch

======================
missing header for unified diff at line 4 of patch
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 -u old/changeme new/changeme
|--- old/changeme	2003-11-01 11:31:10.000000000 -0500
|+++ new/changeme	2003-11-01 11:27:09.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 20 of patch
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commfailure new/commfailure
|--- old/commfailure	2003-11-01 11:31:26.000000000 -0500
|+++ new/commfailure	2003-11-01 11:27:13.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 36 of patch
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commok new/commok
|--- old/commok	2003-11-01 11:31:33.000000000 -0500
|+++ new/commok	2003-11-01 11:27:16.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 52 of patch
can't find file to patch at input line 52
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mainsback new/mainsback
|--- old/mainsback	2003-11-01 11:30:55.000000000 -0500
|+++ new/mainsback	2003-11-01 11:27:21.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 68 of patch
can't find file to patch at input line 68
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/masterconnect new/masterconnect
|--- old/masterconnect	2003-11-01 11:31:43.000000000 -0500
|+++ new/masterconnect	2003-11-01 11:27:30.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 84 of patch
can't find file to patch at input line 84
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mastertimeout new/mastertimeout
|--- old/mastertimeout	2003-11-01 11:31:52.000000000 -0500
|+++ new/mastertimeout	2003-11-01 11:27:33.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 100 of patch
can't find file to patch at input line 100
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/onbattery new/onbattery
|--- old/onbattery	2003-11-01 11:32:03.000000000 -0500
|+++ new/onbattery	2003-11-01 11:27:35.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
======================

PATCH COMMAND:  patch  -p3 < /usr/portage/sys-apps/apcupsd/files/3.10.9/smtp.patch

======================
missing header for unified diff at line 4 of patch
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 -u old/changeme new/changeme
|--- old/changeme	2003-11-01 11:31:10.000000000 -0500
|+++ new/changeme	2003-11-01 11:27:09.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 20 of patch
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commfailure new/commfailure
|--- old/commfailure	2003-11-01 11:31:26.000000000 -0500
|+++ new/commfailure	2003-11-01 11:27:13.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 36 of patch
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commok new/commok
|--- old/commok	2003-11-01 11:31:33.000000000 -0500
|+++ new/commok	2003-11-01 11:27:16.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 52 of patch
can't find file to patch at input line 52
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mainsback new/mainsback
|--- old/mainsback	2003-11-01 11:30:55.000000000 -0500
|+++ new/mainsback	2003-11-01 11:27:21.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 68 of patch
can't find file to patch at input line 68
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/masterconnect new/masterconnect
|--- old/masterconnect	2003-11-01 11:31:43.000000000 -0500
|+++ new/masterconnect	2003-11-01 11:27:30.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 84 of patch
can't find file to patch at input line 84
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mastertimeout new/mastertimeout
|--- old/mastertimeout	2003-11-01 11:31:52.000000000 -0500
|+++ new/mastertimeout	2003-11-01 11:27:33.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 100 of patch
can't find file to patch at input line 100
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/onbattery new/onbattery
|--- old/onbattery	2003-11-01 11:32:03.000000000 -0500
|+++ new/onbattery	2003-11-01 11:27:35.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
======================

PATCH COMMAND:  patch  -p4 < /usr/portage/sys-apps/apcupsd/files/3.10.9/smtp.patch

======================
missing header for unified diff at line 4 of patch
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 -u old/changeme new/changeme
|--- old/changeme	2003-11-01 11:31:10.000000000 -0500
|+++ new/changeme	2003-11-01 11:27:09.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 20 of patch
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commfailure new/commfailure
|--- old/commfailure	2003-11-01 11:31:26.000000000 -0500
|+++ new/commfailure	2003-11-01 11:27:13.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 36 of patch
can't find file to patch at input line 36
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/commok new/commok
|--- old/commok	2003-11-01 11:31:33.000000000 -0500
|+++ new/commok	2003-11-01 11:27:16.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 52 of patch
can't find file to patch at input line 52
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mainsback new/mainsback
|--- old/mainsback	2003-11-01 11:30:55.000000000 -0500
|+++ new/mainsback	2003-11-01 11:27:21.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 68 of patch
can't find file to patch at input line 68
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/masterconnect new/masterconnect
|--- old/masterconnect	2003-11-01 11:31:43.000000000 -0500
|+++ new/masterconnect	2003-11-01 11:27:30.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 84 of patch
can't find file to patch at input line 84
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/mastertimeout new/mastertimeout
|--- old/mastertimeout	2003-11-01 11:31:52.000000000 -0500
|+++ new/mastertimeout	2003-11-01 11:27:33.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 100 of patch
can't find file to patch at input line 100
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u old/onbattery new/onbattery
|--- old/onbattery	2003-11-01 11:32:03.000000000 -0500
|+++ new/onbattery	2003-11-01 11:27:35.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored


Reproducible: Always
Steps to Reproduce:
1. emerge -u apcupsd
2. Wait for it to blow up.
Actual Results:  
The ebuild failed

Expected Results:  
I would have hoped it would have merged correctly..

[anthrax:root](07:05 PM)
/root# emerge info
Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.2-rc2-mm1)
============================================================
=====
System uname: 2.6.2-rc2-mm1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/
kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts avi berkdb berkdbi crypt cups curl encode esd foomaticdb gdbm gif 
gnome gpm gtk gtk2 imap imlib innodb ipv6 java jpeg kde ldap libg++ libwww mad mbox mikmod 
motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline samba sasl sdl slang slp snmp spell ssl svga tcltk tcpd truetype usb x86 xml xml2 xmms 
xv zlib"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-01-31 17:10:46 UTC
try with sys-apps/diffutils-2.8.4-r4
Comment 2 Jason Costomiris 2004-01-31 17:50:09 UTC
[anthrax:root](08:48 PM)
/root# emerge search diffutils
Searching...   
[ Results for search key : diffutils ]
[ Applications found : 1 ]
 
*  sys-apps/diffutils
      Latest version available: 2.8.4-r4
      Latest version installed: 2.8.4-r4
      Size of downloaded files: 809 kB
      Homepage:    http://www.gnu.org/software/diffutils/diffutils.html
      Description: Tools to make diffs and compare files

Anything else I should be looking at?
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2004-02-01 14:57:01 UTC
I tried to reproduce this bug but had no success. I played arounde with the USE vars... nothing.

Does this patch fail every time or just sometimes? Do you have any hint why or under what circumstances it fails?

Possible solution would be to get that changes the patch does done inline in the ebuild using sed.
Suggestions?
Comment 4 Jason Costomiris 2004-02-01 15:03:15 UTC
Yes, it fails each and every time.  Don't have to do anything special to get it to fail, just "emerge -u apcupsd".
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2004-02-02 10:16:25 UTC
I think i need more information...

Please try the following:

ebuild /usr/portage/sys-apps/apcupsd/apcupsd-3.10.9.ebuild install
cd /var/tmp/portage/apcupsd-3.10.9/image/etc/apcupsd/
ls -l

Then look into the smtp patch for the files it tries to patch.

You could also try to find out if other files do not get installed properly.

If all those things does not help feel free to attach the complete output of an emerge apcupsd to this bug.
Comment 6 Jason Costomiris 2004-02-02 10:39:37 UTC
Created attachment 24822 [details]
First troubleshooting steps requested (2004-02-02 10:16 PST)

This is the result of:
ebuild /usr/portage/sys-apps/apcupsd/apcupsd-3.10.9.ebuild install
cd /var/tmp/portage/apcupsd-3.10.9/image/etc/apcupsd/
ls -l

Then look into the smtp patch for the files it tries to patch.
Comment 7 Jason Costomiris 2004-02-02 10:40:09 UTC
Created attachment 24823 [details]
The result of emerge apcupsd

As requested, the output of "emerge apcupsd"
Comment 8 Jason Costomiris 2004-02-13 07:27:58 UTC
I had to rebuild this machine for other reasons.  For some crazy reason, now the 3.10.9 ebuild works fine.  Bizarre.
Comment 9 Michael Imhof (RETIRED) gentoo-dev 2004-02-16 14:20:53 UTC
Thanks for the feedback.
Closing this bug now.