Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263614 - [x11 overlay] media-libs/mesa-7.4_rc1 failed on source preparation
Summary: [x11 overlay] media-libs/mesa-7.4_rc1 failed on source preparation
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-24 15:34 UTC by Rafal Lalik
Modified: 2009-03-25 17:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2009-03-24 15:34:54 UTC
# paludis mesa --log-level silent -i1
...
>>> Starting src_prepare

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *
 *   /var/tmp/paludis/media-libs-mesa-7.4_rc1/work/patches
 *   ( patches )  


!!! ERROR in media-libs/mesa-7.4_rc1:
!!! In epatch at line 2650
!!! Cannot find $EPATCH_SOURCE!

It seems to be invalid ebuild, my proposition is patch:

--- mesa-7.4_rc1.ebuild 2009-03-24 16:27:01.000000000 +0100
+++ mesa-7.4_rc1.ebuild 2009-03-24 16:26:17.000000000 +0100
@@ -109,7 +109,7 @@

 src_prepare() {
        # apply patches
-       [[ $PV = 9999* ]] || \
+       [[ $PV = 9999* ]] && \
                EPATCH_FORCE="yes" EPATCH_SOURCE="${WORKDIR}/patches" \
                EPATCH_SUFFIX="patch" epatch
        # FreeBSD 6.* doesn't have posix_memalign().



Regards,
Rafal
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-24 22:36:15 UTC
version 7.4_rc1 is not in the official portage-tree. Please tell us from which overlay this version is and post your "emerge --info" as well.

Reopen this bug when you provide the requested information.
Comment 2 Rafal Lalik 2009-03-24 23:14:24 UTC
Ebuild comes from layman X11 overlay.

# emerge --info
Portage 2.2_rc27 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5
Timestamp of tree: Tue, 24 Mar 2009 16:45:02 +0000
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -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/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/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/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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages logs parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j1 --quiet"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/banned_branches"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/qting-edge /usr/local/portage/layman/openrc /usr/local/portage/layman/openrc /usr/local/portage/layman/roslin /usr/local/portage/layman/x11 /usr/local/portage/layman/kde-testing /usr/local/portage/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acm acpi alsa amd64 aspell bash-completion bzip2 cli cracklib crypt cups dbus dell dri fortran gdbm gpm hal iconv isdnlog jpeg kde kdeprefix kerberos laptop lm_sensors midi mmx mmxext mudflap multilib ncurses nls nptl nptlonly nsplugin ntplonly nvidia opengl openmp pam pcre pdf perl pmu png pppd python qt3 qt3support qt4 readline reflection session slang spell spl sse sse2 ssl ssse3 svg sysfs tcpd truetype unicode vim-syntax xcomposite xinerama xorg xvmc zlib" ALSA_CARDS="hda-intel" 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 shmsoftvol" 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="evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-03-25 16:37:05 UTC
The change you suggested is wrong. I _want_ the patches to apply if this is not a git (9999) ebuild. If "${WORKDIR}/patches" is not around, then it's a paludis bug.

In any case, please test again with the ebuild I've put in portage this morning.

Thanks
Comment 4 Rafal Lalik 2009-03-25 17:12:15 UTC
Hi,

First, to explain misunderstanding: before posted bug I have checked with _both_ paludis and emerge, and results was the same error for both. I've checked ${WORKDIR} for both packages manegers and result was also the same: no patches directory inside. So I thought it was typo in ebuild and it should be && instead of || - I guessed patches should be applied only for git sources. After you explanation it see I was wrong.

Now everything compiles fine, but in ebuild $SRC_PATCHES is empty so in both $WORKDIR still is no "patches directory". Thus I cannot confirm or not that your new ebuild fixed problems. Good solution should have two step conditions:

if rc_4; then
  if $SRC_PATCHES
    apply patches
  else
    do nothing
else
  do whatever you want

I think now ebuild looks fine. But please check it also with patches if is still OK.

Rafal