Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305345 - app-arch/p7zip-9.04 fails to build (hardlink problem?)
Summary: app-arch/p7zip-9.04 fails to build (hardlink problem?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
: 305369 305467 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-16 01:29 UTC by Mattia Rossi
Modified: 2010-02-17 01:30 UTC (History)
6 users (show)

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


Attachments
fixed p7zip-9.04.ebuild (p7zip-9.04.ebuild,3.68 KB, text/plain)
2010-02-16 04:33 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Rossi 2010-02-16 01:29:12 UTC
Well app-arch/p7zip-9.04 does not build for me:

cd bin ; rm -f Lang ; ln ../GUI/Lang .
ln: `../GUI/Lang': hard link not allowed for directory
make: *** [7zG] Error 1




Reproducible: Always

Steps to Reproduce:
1. emerge p7zip
2. 
3. 

Actual Results:  
Failed to emerge app-arch/p7zip-9.04,

Expected Results:  
builds and installs 

Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 15 Feb 2010 22:15:01 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL RTCW-ETEULA skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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/splash /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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://ftp.swin.edu.au/gentoo-portage"
USE="X a52 aac acl acpi adns ads akonadi alsa amd64 apache2 ares bash-completion berkdb bluetooth bonjour branding bzip2 cairo cdda cdr chm cli consolekit cracklib crypt cups curl cxx dbus dirac djvu dri dts dvd dvdr ebook eds emboss encode evo extras faac faad fam fbcondecor fftw firefox flac fortran fts3 fuse gcrypt gdbm geoip gif gkrellm glitz gnokii gnome gnutls google-gadgets gpm gstreamer gtk hal iconv ieee1394 imagemagick ipv6 java jpeg jpeg2k kde kerberos latex ldap libnotify lm_sensors lua lzma mad mikmod mmap mmx mmxext mng modules mono mp3 mp4 mpeg mplayer mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly ogg openexr opengl openmp pam pcre pdf perl phonon php plasma plugins png policykit ppds pppd python qt3support qt4 quicktime rar readline reflection rss samba schroedinger sdl secure-delete semantic-desktop session smbkrb5passwd speex spell spl sql sqlite sqlite3 sse sse2 sse3 ssh ssl ssse3 startup-notification subversion svg sysfs tcpd theora threads thumbnail thunar tiff truetype unicode usb vboxwebsrv vorbis webkit wxwidgets x264 xcb xcomposite xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="intel-hda" 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" APACHE2_MPMS="worker" 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="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2010-02-16 04:33:13 UTC
Created attachment 219855 [details]
fixed p7zip-9.04.ebuild

This error is caused by overzealously stripping the -s flag from makefiles; it should be stripped from compiler flags, but not from ln commands (otherwise, necessary symlinks during the build process will not be created).

The easiest way to get rid of the error is to add an extra -s flag to ln -s before getting rid of -s everywhere. An ebuild that does so is attached.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2010-02-16 06:50:17 UTC
that's still very prone to break in the future.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-02-16 08:17:37 UTC
Sorry for that. In old releases we patched it back, but it is fine now.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-02-16 09:45:54 UTC
*** Bug 305369 has been marked as a duplicate of this bug. ***
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-17 01:30:12 UTC
*** Bug 305467 has been marked as a duplicate of this bug. ***