Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 114578
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 112227
Assigned To: Gentoo's Haskell Language team <haskell@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Glynn Clements <glynn@gclements.plus.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gtk2hs-0.9.10.ebuild.patch Patch for ebuild patch Glynn Clements 2005-12-05 16:03 0000 589 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 114578 depends on: Show dependency tree
Bug 114578 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-12-05 16:01 0000
The configuration step in src_compile() does this:

	econf \
[snip]
		$(use_enable glade libglade) \
		$(use_enable gnome libglade) \

When using the glade USE flag without the gnome USE flag, this results in the
configuration switches:

	--enable-libglade --disable-libglade

which results in glade being disabled. However, src_install() does:

	ghc-setup-pkg \
[snip]
		$(use glade || use gnome && echo \
			"${D}/usr/$(get_libdir)/gtk2hs/glade.${pkgext}") \

so ghc-setup-pkg (in ghc-package.eclass) still tries to set up the package,
causing the build to fail.


Reproducible: Always
Steps to Reproduce:
1. USE='glade -gnome' emerge =dev-haskell/gtk2hs-0.9.10

Actual Results:  
emerge fails with:

/usr/portage/eclass/ghc-package.eclass: line 137:
/var/tmp/portage/gtk2hs-0.9.10/image//usr/lib/gtk2hs/glade.pkg: No such file or
directory

!!! ERROR: dev-haskell/gtk2hs-0.9.10 failed.
!!! Function ghc-setup-pkg, Line 138, Exitcode 1
!!! failed to register
/var/tmp/portage/gtk2hs-0.9.10/image//usr/lib/gtk2hs/glade.pkg
!!! If you need support, post the topmost build error, NOT this status message.

 * Failed merging dev-haskell/gtk2hs-0.9.8-r1 (2/6)!



Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2005.0/2.4, gcc-3.3.6, glibc-2.3.5-r2,
2.4.30 i686)
=================================================================
System uname: 2.4.30 i686 Pentium III (Coppermine)
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -mcpu=pentium3 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks noauto sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 alsa apm avi berkdb bitmap-fonts cdr crypt curl doc eds emboss
encode esd flac foomaticdb fortran gd gdbm gif gstreamer gtk gtk2 imlib jack
jpeg libg++ libwww mad mbox mikmod motif mp3 mpeg ncurses odbc ogg oggvorbis
opengl oss pam pdflib perl png postgres python quicktime readline samba sdl
slang speex spell ssl symlink tcpd tiff truetype truetype-fonts type1-fonts
vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS

------- Comment #1 From Glynn Clements 2005-12-05 16:03:08 0000 -------
Created an attachment (id=74121) [details]
Patch for ebuild

------- Comment #2 From Duncan Coutts (RETIRED) 2005-12-06 03:36:50 0000 -------
This should already be fixed. Try emerge sync.

Since 12 Nov 05 the ebuild does this:

$(use glade || use gnome && echo --enable-libglade) \

rather than

$(use_enable glade libglade) \
$(use_enable gnome libglade) \

Please re-open this bug if emerge sync does not fix it for you.
Sorry for wasting your time Glynn.

*** This bug has been marked as a duplicate of 112227 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug