Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 237840

Summary: 'ebuild subversion-1.5.1.ebuild rpm' fails when creating tar.gz
Product: Gentoo Linux Reporter: Tony Czeh <tony>
Component: [OLD] UnspecifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: jer
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 216231    

Description Tony Czeh 2008-09-16 14:14:20 UTC
When trying to build an rpm for subversion-1.5.1, the source compiles fine but fails when trying to create the tar.gz.  It appears to be looking for the ebuild in / as opposed to /usr/portage/dev-util/subversion/.  Copying the contents of /usr/portage/dev-util/subversion to / gets me further, but it still dies when trying to write the .spec file.

Reproducible: Always

Steps to Reproduce:
1. cd /usr/portage/dev-util/subversion
2. ebuild subversion-1.5.1.ebuild rpm

Actual Results:  
tar: Removing leading `/' from member names
tar: /subversion-1.5.1.ebuild: Cannot stat: No such file or directory
tar: /files: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
 *
 * ERROR: dev-util/subversion-1.5.1 failed.
 * Call stack:
 *       misc-functions.sh, line 609:  Called dyn_rpm
 *       misc-functions.sh, line 599:  Called dyn_spec
 *       misc-functions.sh, line 565:  Called die
 * The specific snippet of code:
 *      tar czf "/usr/src/rpm/SOURCES/${PF}.tar.gz" \
 *              "${O}/${PF}.ebuild" "${O}/files" || \
 *              die "Failed to create base rpm tarball."
 *  The die message:
 *   Failed to create base rpm tarball.
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/subversion-1.5.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/subversion-1.5.1/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.07"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info


Expected Results:  
An RPM is built.

# emerge --info
Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Fri, 12 Sep 2008 11:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://gentoo.mirrors.pair.com"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi aim alsa amd64 arts artswrappersuid automount bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cups curl curlwrappers dbus dga directfb dri dvd dvdr dvdread eds emboss encode enscript esd evo exif expat fam ffmpeg firefox flac fortran ftp gdbm gif gimp glut gpm gstreamer gtk hal iconv imagemagick ipod isdnlog jabber java java6 javascript jpeg kde kerberos lame ldap libnotify lm_sensors lzo mad matroska midi mikmod mime mmap mmx mp3 mpeg mudflap multilib musicbrainz ncurses nis nls nptl nptlonly offensive ogg openal opengl openmp oscar pam pcntl pcre pdf perl png posix ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline recode reflection rss samba sdl session sockets spell spl sse sse2 ssl startup-notification subversion svg symlink sysfs syslog sysvipc taglib tcpd theora threads tidy tiff truetype unicode usb vcd vhosts vim-syntax vnc vorbis x264 xattr xcomposite xine xinerama xml xorg xpm xscreensaver xsl xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="fglrx radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Zac Medico gentoo-dev 2008-09-16 14:55:59 UTC
This should be fixed svn r11194 which is included in portage-2.2_rc8. I can also include this fix in the 2.1.5.7 release that I've been working on.
Comment 2 Tony Czeh 2008-09-16 17:05:40 UTC
Verified fixed on amd64 with portage-2.2_rc8.  Thanks!