Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62837 - nedit-5.4 is built for csh
Summary: nedit-5.4 is built for csh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-04 10:45 UTC by Hiel Van Campen
Modified: 2004-10-23 14:41 UTC (History)
0 users

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


Attachments
Diff -u hedit...pre20030213 nedit-5.4.ebuild (ebuild.diff,1.23 KB, patch)
2004-09-10 11:35 UTC, Hiel Van Campen
Details | Diff
Patch of nedit-5.4.ebuild (ebuild54.diff,1.04 KB, patch)
2004-09-12 18:21 UTC, Hiel Van Campen
Details | Diff
Patch for Nedit Makefile.linux and source/preference.c (nedit-5.4-gentoo.diff,1.92 KB, patch)
2004-09-12 18:35 UTC, Hiel Van Campen
Details | Diff
Finished ebuild patch (ebuild54.diff,1011 bytes, patch)
2004-09-19 18:12 UTC, Hiel Van Campen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiel Van Campen 2004-09-04 10:45:37 UTC
The shell commands spell, sort ... are called useing /bin/csh. I'm useing bash so it squawks. Editing preferance.c where 5.3 patch adds 
#else
  "/bin/csh"
#endif
 
Editing it to "/bin/bash" in place of /bin/csh is my quick hack. I'm useing gcc-3.4.1 and linux26-headers. Maybe __MVS__ and __EMX__ aren't defined any more?

Reproducible: Always
Steps to Reproduce:
1.emerge nedit 
2.
3.

Actual Results:  
builds expecting /bin/csh 

Expected Results:  
builds for bash

Portage 2.0.50-r10 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r2)
=================================================================
System uname: 2.6.8-gentoo-r2 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -fomit-frame-pointer -O2 -falign-jumps -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -fomit-frame-pointer -O2 -falign-jumps -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox userpriv"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/
http://128.213.5.34/gentoo/"
MAKEOPTS="-j3 "
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts async autofs avi berkdb chroot crypt cups dillo doc encode esd
foomaticdb freetype gdbm gif gpm gtk gvim hpijs imagemagick imlib jpeg libg++
libwww mad mikmod motif mozilla mpeg ncurses nptl oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba sdl slang snmp spell ssl svga
tcpd truetype type1 unicode x86 xml2 xmms xv zlib"
Comment 1 Hiel Van Campen 2004-09-06 20:29:36 UTC
I greped for __MVS__ and __EMX__ in /usr/include/* and only __MVS__ is defined in /usr/include/zconf.h. Hope this saves you 5 minutes.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-08 03:11:26 UTC
please provide a complete patch
Comment 3 Hiel Van Campen 2004-09-10 11:35:27 UTC
Created attachment 39338 [details, diff]
Diff -u hedit...pre20030213 nedit-5.4.ebuild

The problem is that going from _pre20030213 to 5.4.ebuild. src_unpack got leff
out. The attckment is a ditt -u of the 2 ebuilds.
Comment 4 Hiel Van Campen 2004-09-12 18:21:21 UTC
Created attachment 39475 [details, diff]
Patch of nedit-5.4.ebuild

Install by " patch -p0<ebuild54.diff
Comment 5 Hiel Van Campen 2004-09-12 18:35:46 UTC
Created attachment 39476 [details, diff]
Patch for Nedit Makefile.linux and source/preference.c

Put in nedit/files. Patch ebuild ( ebuild54.diff in nedit and patch for the
above) and then "emerge nedit".  

Heinrich I haven't been able to fully test this as scince yesterday I had to
reinstall gnome, it dissapeared?, and go up gtk2, anyway, any version of nedit
even 5.3 die with
 
.o ../util/libNUtil.a -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp
-lXpm -lXext -lXt -lSM -lICE -lX11 -lm -o nedit
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lXp
collect2: ld returned 1 exit status
make[1]: *** [nedit] Error 1
make[1]: Leaving directory `/home/tmp/portage/nedit-5.4/work/nedit-5.4/source'
make: *** [linux] Error 2 

Ive learned alot but unless youve got a easy fix I'm tired ;^) I've over 8
hours in this learning experince so for tonight and tommorrow no more.
Comment 6 Hiel Van Campen 2004-09-19 18:12:34 UTC
Created attachment 39974 [details, diff]
Finished ebuild patch

This a finished patch for the ebuild. There one minor squak out out of it or
maybe its form portage-2.0.51_rc1. Emerge gives this warning " QA Notice:
ECLASS 'EUTILS' inherited illegally...." and the same for gcc.
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-23 14:41:38 UTC
/bin/csh is replaced with /bin/sh in nedit-5.5. i don't see a reason for the ispell changes.