Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328755 - app-backup/amanda-2.6.0_p2-r4 failed with will not overwrite just-created amcheckdump.8
Summary: app-backup/amanda-2.6.0_p2-r4 failed with will not overwrite just-created amc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-8.4
  Show dependency tree
 
Reported: 2010-07-17 20:28 UTC by Chris
Modified: 2010-10-27 14:02 UTC (History)
4 users (show)

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


Attachments
A patch to drop the duplicate man file (amanda-2.6.0_p2-man-amcheckdump.patch,284 bytes, patch)
2010-07-18 09:36 UTC, Chris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2010-07-17 20:28:08 UTC
I have added a new use to app-backup/amanda to include samba and perform a emerge --newuse amanda.

The build get to the install part and dies working back it is due to amcheckdump.8 being repeated in install statement.

Reproducible: Always

Steps to Reproduce:
Sorry not sure what I can put here.
1. edit package.use and add app-backup/amanda samba
2. emerge --newuse amanda
3. wait

Actual Results:  
Trimmed log.

make[2]: Entering directory `/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/work/amanda-2.6.0p2/man'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man5" || /bin/mkdir -p "/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/image//usr/share/man/man5"
 /usr/bin/install -c -m 644 amanda.conf.5 amanda-client.conf.5 '/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/image//usr/share/man/man5'
test -z "/usr/share/man/man8" || /bin/mkdir -p "/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/image//usr/share/man/man8"
 /usr/bin/install -c -m 644 amanda.8 amplot.8 amadmin.8 amcheck.8 amcheckdb.8 amcheckdump.8 amcleanup.8 amdd.8 amdevcheck.8 amdump.8 amflush.8 amgetconf.8 amlabel.8 ammt.8 amoverview.8 amreport.8 amrmtape.8 amstatus.8 amtape.8 amtapetype.8 amtoc.8 amverify.8 amverifyrun.8 amserverconfig.8 amaddclient.8 amcheckdump.8 amcrypt.8 amaespipe.8 amgpgcrypt.8 amcryptsimple.8 amcrypt-ossl.8 amcrypt-ossl-asym.8 amrecover.8 amrestore.8 amfetchdump.8 '/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/image//usr/share/man/man8'
/usr/bin/install: will not overwrite just-created `/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/image//usr/share/man/man8/amcheckdump.8' with `amcheckdump.8'
make[2]: *** [install-man8] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/work/amanda-2.6.0p2/man'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/work/amanda-2.6.0p2/man'
make: *** [install-recursive] Error 1
 * ERROR: app-backup/amanda-2.6.0_p2-r4 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 3421:  Called die
 * The specific snippet of code:
 *       emake -j1 DESTDIR="${D}" install || die;
 * 
 * If you need support, post the output of 'emerge --info =app-backup/amanda-2.6.0_p2-r4',
 * the complete build log and the output of 'emerge -pqv =app-backup/amanda-2.6.0_p2-r4'.
 * The complete build log is located at '/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/temp/environment'.
 * S: '/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/work/amanda-2.6.0p2'

>>> Failed to emerge app-backup/amanda-2.6.0_p2-r4, Log file:

>>>  '/var/tmp/portage/app-backup/amanda-2.6.0_p2-r4/temp/build.log'

Expected Results:  
Not sure exactly new install of amanda.

Portage 2.1.8.3 (hardened/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-gentoo-r7 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-VIA_Esther_processor_1000MHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 11 Jul 2010 01:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm hardened iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl ssl sysfs tcpd urandom x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1        emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel  mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage      siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware     voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

app-backup/amanda-2.6.0_p2-r4 was built with the following:
USE="berkdb gdbm -debug -devpay -ipv6 -kerberos -minimal -s3 -samba -xfs"
Comment 1 Chris 2010-07-17 20:32:25 UTC
emerge -vp =app-backup/amanda-2.6.0_p2-r4

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-backup/amanda-2.6.0_p2-r4  USE="berkdb gdbm samba* -debug -devpay -ipv6 -kerberos -minimal -s3 -xfs" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 2 Rafał Mużyło 2010-07-17 23:04:00 UTC
It's like bug 318739 again.
Does anyone know the reason yet (beside the obvious: an incorrect
Makefile.am somewhere in the tree) ?
Comment 3 Chris 2010-07-18 09:36:00 UTC
Created attachment 239227 [details, diff]
A patch to drop the duplicate man file

Finally worked out how to write a patch
diff -n /usr/portage/app-backup/amanda/amanda-2.6.0_p2-r4.ebuild /usr/local/portage/app-backup/amanda/amanda-2.6.0_p2-r4.ebuild 
a155 4
        # duplicate amcheckdump man patch
        cd "${S}/man"
        epatch "${FILESDIR}"/amanda-2.6.0_p2-man-amcheckdump.patch
Comment 4 Dustin J. Mitchell 2010-07-18 13:35:15 UTC
This has long since been fixed upstream, but the patch looks good.
Comment 5 Dustin J. Mitchell 2010-07-18 13:35:51 UTC
(In reply to comment #4)
> This has long since been fixed upstream, but the patch looks good.

Well, note that the patch has only Makefile.am, while it should be man/Makefile.am.
Comment 6 Chris 2010-07-18 16:19:29 UTC
Yes the patch is just the Makefile.am this is why I had to put the path in the ebuild i.e. cd "${S}/man". I spent more time finding information on making a patch than actually fixing it. I did start by trying to include the man part of the path but just got errors so when I found you can put the path in the ebuild I when that way as getting this working was the most important thing for myself.

I will let the maintainers to sort an official patch to their standards if the feel the need, else others can pick this up.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-10-27 14:02:57 UTC
+  27 Oct 2010; Samuli Suominen <ssuominen@gentoo.org>
+  amanda-2.6.0_p2-r4.ebuild, +files/amanda-2.6.0_p2-coreutils.patch:
+  Fix install with recent automake and coreutils wrt #328755 by "Chris".