An emerge fails with two errors in patch file: /usr/portage/app-admin/bacula/files/1.32f/1.32f-2-eom-nextvol.patch Examination of the files shows that the Version @Id:... strings are wrong. The patch file 1.32f-2-eom-nextvol.patch has: - * Version $Id: 1.32f-2-eom-nextvol.patch,v 1.1 2004/02/03 02:06:48 zul Exp $ + * Version $Id: 1.32f-2-eom-nextvol.patch,v 1.1 2004/02/03 02:06:48 zul Exp $ instead of: - * Version $Id: sql_find.c,v 1.23.2.7.2.1 2003/12/07 15:01:42 kerns Exp $ + * Version $Id: 1.32f-2-eom-nextvol.patch,v 1.1 2004/02/03 02:06:48 zul Exp $ and: - * Version $Id: mount.c,v 1.42.2.9.2.3 2003/12/08 20:53:47 kerns Exp $ + * Version $Id: 1.32f-2-eom-nextvol.patch,v 1.1 2004/02/03 02:06:48 zul Exp $ for the two source files being patched. I also noticed that unpack complains about the format of the patch files. Reproducible: Always Steps to Reproduce: 1.ACCEPT_KEYWORDS="~x86" emerge bacula 2. 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) app-admin/bacula-1.32f to / >>> md5 src_uri ;-) bacula-1.32f.tar.gz >>> md5 src_uri ;-) 1.32f-1-weekofmonth.patch >>> md5 src_uri ;-) 1.32f-2-eom-nextvol.patch >>> md5 src_uri ;-) 1.32f-4-run-crash.patch >>> Unpacking source... >>> Unpacking bacula-1.32f.tar.gz to /var/tmp/portage/bacula-1.32f/work >>> Unpacking 1.32f-1-weekofmonth.patch to /var/tmp/portage/bacula-1.32f/work unpack 1.32f-1-weekofmonth.patch: file format not recognized. Ignoring. >>> Unpacking 1.32f-2-eom-nextvol.patch to /var/tmp/portage/bacula-1.32f/work unpack 1.32f-2-eom-nextvol.patch: file format not recognized. Ignoring. >>> Unpacking 1.32f-4-run-crash.patch to /var/tmp/portage/bacula-1.32f/work unpack 1.32f-4-run-crash.patch: file format not recognized. Ignoring. * Applying patches from /usr/portage/app-admin/bacula/files/1.32f/1.32f-patchlist.txt patching file src/dird/scheduler.c patching file src/dird/ua_output.c patching file ReleaseNotes patching file src/cats/sql_find.c Hunk #1 FAILED at 7. 1 out of 3 hunks FAILED -- saving rejects to file src/cats/sql_find.c.rej patching file src/stored/mount.c Hunk #1 FAILED at 5. 1 out of 14 hunks FAILED -- saving rejects to file src/stored/mount.c.rej !!! ERROR: app-admin/bacula-1.32f failed. !!! Function src_unpack, Line 45, Exitcode 1 !!! Patch failed Expected Results: Install bacula on my system. bacula 1.29 installs but is not usable due to bug #40271 (no console program) so I tried to install verion 1.32f. I corrected the patch file 1.32f-2-eom-nextvol.patch and ran the emerge again: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bash-2.05b# ACCEPT_KEYWORDS="~x86" emerge bacula Calculating dependencies ...done! >>> emerge (1 of 1) app-admin/bacula-1.32f to / >>> md5 src_uri ;-) bacula-1.32f.tar.gz >>> md5 src_uri ;-) 1.32f-1-weekofmonth.patch >>> md5 src_uri ;-) 1.32f-2-eom-nextvol.patch >>> md5 src_uri ;-) 1.32f-4-run-crash.patch >>> Unpacking source... >>> Unpacking bacula-1.32f.tar.gz to /var/tmp/portage/bacula-1.32f/work >>> Unpacking 1.32f-1-weekofmonth.patch to /var/tmp/portage/bacula-1.32f/work unpack 1.32f-1-weekofmonth.patch: file format not recognized. Ignoring. >>> Unpacking 1.32f-2-eom-nextvol.patch to /var/tmp/portage/bacula-1.32f/work unpack 1.32f-2-eom-nextvol.patch: file format not recognized. Ignoring. >>> Unpacking 1.32f-4-run-crash.patch to /var/tmp/portage/bacula-1.32f/work unpack 1.32f-4-run-crash.patch: file format not recognized. Ignoring. * Applying patches from /usr/portage/app-admin/bacula/files/1.32f/1.32f-patchlist.txt patching file src/dird/scheduler.c patching file src/dird/ua_output.c patching file ReleaseNotes patching file src/cats/sql_find.c patching file src/stored/mount.c /usr/sbin/ebuild.sh: line 45: /usr/portage/app-admin/bacula/files/1.32f/1.32f-4-run-crash.patch: No such file or directory !!! ERROR: app-admin/bacula-1.32f failed. !!! Function src_unpack, Line 45, Exitcode 1 !!! Patch failed ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This result shows that another patch file: /usr/portage/app-admin/bacula/files/1.32f/1.32f-4-run-crash.patch is missing. I also noticed that unpack complains about the format of the patch files.
Fixed in cvs thanks for the bug report.
OOps