Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112707 - hsshellscript-2.6.0 ebuild fails with ghc-6.4.1-r1 and installs hsshellscript.h with wrong permissions
Summary: hsshellscript-2.6.0 ebuild fails with ghc-6.4.1-r1 and installs hsshellscript...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 08:04 UTC by Rob Henderson
Modified: 2005-11-18 03:47 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 Rob Henderson 2005-11-16 08:04:43 UTC
The hsshellscript-2.6.0 ebuild has:

  DEPEND="=virtual/ghc-6.4

but I *think* this should be

  DEPEND=">=virtual/ghc-6.4

so it works with ghc-6.4.1-r1.  I made this change and it appears to emerge
and work fine with ghc-6.4.1-r1.  The ChangeLog says:

  Added new hsshellscript version. This version only works for >= ghc6.4

so it looks like ">=" is correct.

Also, after you emerge hsshellscript-2.6.0 the following file has permissions
600 so it is not world readable:

   % ls -l /usr/lib/ghc-6.4.1/imports/hsshellscript.h
   -rw-------  1 root root 1228 Nov 14 09:08
/usr/lib/ghc-6.4.1/imports/hsshellscript.h

Not sure if this is a problem with the ebuild or an upstream problem but
wanted to mention it.

Reproducible: Always
Steps to Reproduce:
1. emerge ghc-6.4.1-r1
2. try to emerge hsshellscript-2.6.0
3. fix the dependency and then emerge

Actual Results:  
Emerge fails with dependency on ghc-6.4 even though ghc-6.4.1-r1 is installed.
Once that is fixed, it installs /usr/lib/ghc-6.4.1/imports/hsshellscript.h with
permissions 600.

Expected Results:  
It should recognize ghc-6.4.1 as satisfying the necessary ghc dependency.

Also, once you fix the dependency it should install
/usr/lib/ghc-6.4.1/imports/hsshellscript.h with permissons 644.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
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.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/WindowMaker /etc/X11/rstart /etc/X11/serverconfig
/etc/X11/starthere /etc/X11/sysconfig /etc/X11/twm /etc/a2ps /etc/apm /etc/gconf
/etc/gnome-vfs-2.0 /etc/gtk-2.0 /etc/hotplug /etc/hotplug.d /etc/init.d
/etc/lam-mpi /etc/nmh /etc/snort /etc/sound /etc/ssl/misc /etc/terminfo /etc/xdg
/usr/kde/3.3/share/config /usr/lib/X11/xkb /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://spout.ussg.indiana.edu/pub/array2/linux/gentoo/
ftp://mirrors.tds.net/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo-install.cs.indiana.edu/gentoo-portage"
USE="x86 X acl alsa apache2 apm arts audiofile avi berkdb bitmap-fonts
browserplugin bzip2 cdr crypt cups curl eds emboss encode esd ethereal exif
expat f77 fam ffmpeg flac font-server foomaticdb fortran gd gdbm gif gimpprint
glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imap imlib ipv6
java jpeg junit kde lcms ldap libg++ libwww mad mbox mhash mikmod mng motif
mozilla mp3 mpeg mysql ncurses net nethack nls nntp nsplugin ogg oggvorbis
opengl oss pam pam_console pcre pdflib perl png python qt quicktime readline
recode ruby samba sdl slang snmp spell ssl svga tcltk tcpd tetex tiff truetype
truetype-fonts type1-fonts udev usb vorbis wmf xine xml xml2 xmms xprint xv xvid
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Luis Araujo (RETIRED) gentoo-dev 2005-11-18 03:47:30 UTC
I have just fixed this problem. It also looks like mainstream doesn't
set the proper permissions for the header, i also took care of that on 
the ebuild.

Thank you very much Rob.