First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 175668
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Team for the ML programming language family <ml@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jack Kelly <endgame.dos@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
install-ocaml-rebuild.sh.patch Patch to ocaml-3.09.3-r1.ebuild to make it install ocaml-rebuild.sh into /usr/share/ocaml/scripts patch Jack Kelly 2007-05-05 10:49 0000 987 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 175668 depends on: Show dependency tree
Bug 175668 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: 2007-04-23 08:26 0000
The elog output in pkg_postinst() of the ebuild directs the user to run
ocaml-rebuild.sh but specifies the wrong location for the script.

Reproducible: Always

Steps to Reproduce:
1. emerge --buildpkg =dev-lang/ocaml-3.09.3-r1
2. emerge -k1 =dev-lang/ocaml-3.09.3-r1
3.

Actual Results:  
 * OCaml is not binary compatible from version to version, so you (may)
 * need to rebuild all packages depending on it, that are actually
 * installed on your system. To do so, you can run:
 * sh
/var/tmp/portage/dev-lang/ocaml-3.09.3-r1/build-info/files/ocaml-rebuild.sh [-h
| emerge options]
 * Which will call emerge on all old packages with the given options


Expected Results:  
The output should have mentioned the ocaml-rebuild.sh in the portage tree
(typically /usr/portage/dev-lang/ocaml/files/ocaml-rebuild.sh)

emerge --info:

Portage 2.1.2.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r1,
2.6.20-gentoo-r6 i686)
=================================================================
System uname: 2.6.20-gentoo-r6 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 23 Apr 2007 07:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="  -march=prescott  -O2  -fomit-frame-pointer  -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="  -march=prescott  -O2  -fomit-frame-pointer  -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages metadata-transfer parallel-fetch
sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alsa bash-completion berkdb bitmap-fonts cairo cdr cli cracklib
dbus dri dvd dvdr dvdread eds emacs emboss encode evo fam firefox fortran gdbm
gif gpm gstreamer hal iconv ipv6 isdnlog joystick jpeg libg++ lm_sensors mad
midi mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl
pam pcre pdf perl png pppd preview-latex python qt3support quicktime readline
reflection sdl session spl sqlite sse sse2 ssl svg symlink tcpd tiff timidity
tk truetype truetype-fonts type1-fonts unicode vorbis win32codecs x264 x86 xml
xorg xv xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

------- Comment #1 From Richard Brown (RETIRED) 2007-04-23 16:43:21 0000 -------
This is because you're using a binpkg. Antarus says the ebuild should probably
be modified to install ocaml-rebuild.sh into /usr/share somewhere.

------- Comment #2 From Jack Kelly 2007-05-05 10:47:34 0000 -------
(In reply to comment #1)
> This is because you're using a binpkg. Antarus says the ebuild should probably
> be modified to install ocaml-rebuild.sh into /usr/share somewhere.
> 

I've got ocaml-rebuild.sh installing into
/usr/share/ocaml/scripts/ocaml-rebuild.sh. It works fine with the sandbox, and
I've modified the einfo message in pkg_postinst.

There seems to be no standard for these language-rebuild scripts, though.
perl-cleaner is in /usr/bin, python-updater in /usr/sbin and ocaml-rebuild.sh
in /usr/share/ocaml/scripts/.

------- Comment #3 From Jack Kelly 2007-05-05 10:49:16 0000 -------
Created an attachment (id=118220) [edit]
Patch to ocaml-3.09.3-r1.ebuild to make it install ocaml-rebuild.sh into
/usr/share/ocaml/scripts

Patch to fix the ebuild.

------- Comment #4 From Alexis Ballier 2007-05-12 08:26:14 0000 -------
I dosbin'ed ocaml-rebuild.sh, it needs root to work fine and is a script so I
think it's better to have it here

First Last Prev Next    No search results available      Search page      Enter new bug