Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147844 - [GCC4] app-editors/nvi-1.81.5-r3 stable request
Summary: [GCC4] app-editors/nvi-1.81.5-r3 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Harald van Dijk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc41-stable
  Show dependency tree
 
Reported: 2006-09-16 12:47 UTC by Karl Hakimian
Modified: 2006-10-21 14:54 UTC (History)
0 users

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


Attachments
Patch to fix reported problem (nvi-gcc4-patch,5.62 KB, patch)
2006-09-16 12:48 UTC, Karl Hakimian
Details | Diff
config.log for comment #6 (config.log,22.68 KB, text/plain)
2006-09-17 00:57 UTC, Christian Faulhammer (RETIRED)
Details
app-editors:nvi-1.81.5-r3:20061001-151237.log (app-editors:nvi-1.81.5-r3:20061001-151237.log,239.96 KB, text/plain)
2006-10-01 08:39 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Hakimian 2006-09-16 12:47:41 UTC
Sorry if this is a dup, all my searches only show bugs for nvidia...

Anyway, gcc4 apparently no longer likes the following

(char *)bp = ((void *)0);

It wants
bp = ((void *)0);

instead. I have a patch that will allow the nvi code to compile again.
Comment 1 Karl Hakimian 2006-09-16 12:48:45 UTC
Created attachment 97170 [details, diff]
Patch to fix reported problem

This patch changes a few 

(char *)bp = ptr

type lines to

bp = ptr.
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2006-09-16 14:15:32 UTC
If you're running ~arch, there is a big problem; nvi should build with GCC4 just fine. If you're not, the newer ebuild that's already in the tree should be marked stable. I don't know which is the case. Please, always provide your emerge --info.
Comment 3 Karl Hakimian 2006-09-16 14:25:07 UTC
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17.13 i686)
=================================================================
System uname: 2.6.17.13 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 16 Sep 2006 10:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2"
DISTDIR="/usr/local/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_US"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/data/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://magnus.gnatcreek.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl acpi alsa asf at bash-completion berkdb bitmap-fonts blas bzip2 cairo cdr cli cracklib crypt cups curl dbus dga divx4linux dlloader dri dv dvb dvd dvdr dvdread eds elibc_glibc emboss encode exif expat fam ffmpeg fftw firefox fits flac foomaticdb fortran gd gdbm ggi gif gimp gmp gnutls gphoto2 gpm gstreamer gtk gtk2 guile icms idn imagemagick imap imlib input_devices_keyboard input_devices_mouse isdnlog java javascript jbig jpeg kerberos kernel_linux lapack lcms ldap libg++ linguas_en_US lua m17n-lib mad matroska mbox mhash mikmod mmx mng monitor motif mozilla mp3 mpeg mplayer mysql ncurses netcdf nls nptl nptlonly nsplugin ofx ogdi ogg opengl oss pam pcre pda pdf perl pic plotutils png postgres ppds pppd python qt3 qt4 quicktime quotas readline reflection samba sasl sdl session slang sox speex spell spl sse ssl stroke svga szip tcl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32codecs wmf xinerama xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2006-09-16 14:29:01 UTC
Thanks, in that case, nvi-1.81.5-r3 should work for you. Arch teams, please mark this version stable.
Comment 5 Karl Hakimian 2006-09-16 14:31:59 UTC
I had not noticed -r3. However, that one will not work since it is now blocking with gvim. Is there really a reason to keep blocking two versons of vi on a distribution that is all about choice? Gvim worked up until this version with nvi, why was that added to the block list?
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-17 00:55:49 UTC
configure fails here,

checking for db_create in -ldb... no
configure: error: Need DB 3.

ebuild says:
DEPEND="=sys-libs/db-4*"

Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.5
Last Sync: Sun, 17 Sep 2006 07:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2"
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 /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 alsa arts artworkextra asf audiofile bash-completion beagle berkdb bidi bitmap-fonts bootsplash branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups curl custom-cflags dbus dga directfb divx4linux dlloader dri dts dvd dvdr dvdread dvi eds elibc_glibc emacs emboss encode esd evo exif expat fam fat fbcon ffmpeg firefox fortran ftp gb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imap input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jikes jpeg jpeg2k kernel_linux ldap leim libg++ linguas_de lm_sensors mad maildir matroska mbox mikmod mime mmx mmxext mng mono mp3 mpeg mpeg2 mule nautilus ncurses nforce2 nls nocardbus nptl nptlonly nsplugin nvidia objc ogg opengl pam pcre pdf perl plotutils pmu png ppds pppd preview-latex print python qt3 qt4 quicktime readline reflection reiserfs samba sdk session slang spell spl sse ssl svg svga t1lib tcltk tcpd tetex theora thunderbird tiff truetype truetype-fonts type1-fonts udev usb userland_GNU vcd video_cards_fbdev video_cards_radeon video_cards_vesa videos vorbis win32codecs wmf wxwindows xine xml xorg xosd xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-17 00:57:44 UTC
Created attachment 97205 [details]
config.log for comment #6
Comment 8 Harald van Dijk (RETIRED) gentoo-dev 2006-09-17 02:52:11 UTC
> I had not noticed -r3. However, that one will not work since it is now blocking
> with gvim. Is there really a reason to keep blocking two versons of vi on a
> distribution that is all about choice? Gvim worked up until this version with
> nvi, why was that added to the block list?

I added that block when I noticed gvim and nvi install conflicting files. You can't install both, because then one ebuild will overwrite files belonging to the other. It wasn't a problem before because gvim used to not install convenience symlinks.

> configure fails here,
> 
> checking for db_create in -ldb... no
> configure: error: Need DB 3.
> 
> ebuild says:
> DEPEND="=sys-libs/db-4*"

=db-4* is intentional; when updating nvi to use DB 4, I simply didn't adjust all error messages. The problem is that nvi didn't handle DB 4.2's symbol mangling, which I didn't know about because I tested with DB 4.3. This will be fixed as soon as CVS is working again.
Comment 9 Karl Hakimian 2006-09-17 06:28:27 UTC
The ebuilds can modify the default install and not put in the links. We should have all vi like program install to their own names and put in links via eselect.
Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2006-09-17 06:42:13 UTC
> The ebuilds can modify the default install and not put in the links.

nvi does this already. gvim didn't, last time I checked. If you want to make it possible to install gvim and nvi at the same time, report this as a bug / feature request against gvim. I don't maintain gvim, only nvi, and that's what this bug is about.
Comment 11 Karl Hakimian 2006-09-17 06:55:18 UTC
I did open a generic bug yesterday to move things to eselect.
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2006-09-18 00:31:19 UTC
Saw you fixed the configure problem.  Now here we go for the normal test procedure as written in the x86 arch testing reference manual:

1) emerges fine
2) passes collision test
3) works

emerge --info in comment #6
Comment 13 Andrej Kacian (RETIRED) gentoo-dev 2006-09-18 10:21:41 UTC
x86 done
Comment 14 Gustavo Zacarias (RETIRED) gentoo-dev 2006-09-19 06:13:33 UTC
sparc stable.
Comment 15 Lars Weiler (RETIRED) gentoo-dev 2006-09-24 04:15:06 UTC
ppc done
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2006-10-01 08:39:51 UTC
Created attachment 98525 [details]
app-editors:nvi-1.81.5-r3:20061001-151237.log

The ebuild fails because for some reason mkinstalldirs does not do mkdir /usr/bin before it tries to cd there.
Comment 17 Harald van Dijk (RETIRED) gentoo-dev 2006-10-01 08:58:51 UTC
(In reply to comment #16)
> The ebuild fails because for some reason mkinstalldirs does not do mkdir
> /usr/bin before it tries to cd there.

I added -j1 for the installation, that should work around it for now. I'll try to see if fixing it properly is doable soon.
Comment 18 Jeroen Roovers (RETIRED) gentoo-dev 2006-10-01 09:39:05 UTC
HPPA done.
Comment 19 Simon Stelling (RETIRED) gentoo-dev 2006-10-04 11:01:14 UTC
amd64 stable... i had to emerge -C vim, what an unholy piece of software!
Comment 20 Bryan Østergaard (RETIRED) gentoo-dev 2006-10-21 14:54:43 UTC
Alpha done.