Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27606

Summary: Nedit version bump needed (RC1 available)
Product: Gentoo Linux Reporter: Sergey Kuleshov (RETIRED) <svyatogor>
Component: Current packagesAssignee: Seemant Kulleen (RETIRED) <seemant>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: bartron, leroutier
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://nedit.org
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: semi-working ebuild
nedit-5.4_rc1.ebuild
files/nedit-5.4RC1-gentoo_pre.diff

Description Sergey Kuleshov (RETIRED) gentoo-dev 2003-08-30 10:25:22 UTC
subj.

Reproducible: Always
Steps to Reproduce:
Comment 1 Sergey Kuleshov (RETIRED) gentoo-dev 2003-10-02 06:51:18 UTC
This is not my area of expertise. Plz assign it someone who will manage to
make this into portage.
Comment 2 Tal Peer (RETIRED) gentoo-dev 2003-10-04 01:24:58 UTC
Added app-i18n/bidiv
Comment 3 Tal Peer (RETIRED) gentoo-dev 2003-10-04 01:26:43 UTC
Sorry, closed wrong bug
Comment 4 Mike Tangolics 2003-10-04 09:30:47 UTC
Created attachment 18747 [details]
semi-working ebuild

I version-bumped this nedit ebuild, but it fails when linking.	I'd like to
see
if anyone can get it to work...
Comment 5 Mike Tangolics 2003-10-04 09:35:48 UTC
Sorry, forgot to post the link errors in my last comment,

file.o(.text+0x1b4a): In function `PrintString':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x69): In function `_XEditResCheckMessages':
: undefined reference to `_XEditResResetStream'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x7d): In function `_XEditResCheckMessages':
: undefined reference to `_XEditResPut8'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x1ab): In function `SendFailure':
: undefined reference to `_XEditResResetStream'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x1be): In function `SendFailure':
: undefined reference to `_XEditResPutString8'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x221): In function `SendCommand':

(... redundant lines cut out ...)

: undefined reference to `_XEditResPutString8'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x2cb4): In function `ExecuteGetResources':
: undefined reference to `_XEditResPutString8'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x30a5): In function `DumpChildren':
: undefined reference to `_XEditResPut32'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x35eb): In function `DumpChildren':
: undefined reference to `_XEditResPut32'
/usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x3606): In function `DumpChildren':
: undefined reference to `_XEditResPut32'
collect2: ld returned 1 exit status
make[1]: *** [nedit] Error 1
make[1]: Leaving directory `/var/tmp/portage/nedit-5.4_rc1/work/nedit/source'
make: *** [linux] Error 2

!!! ERROR: app-editors/nedit-5.4_rc1 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)

Also, I had to add the flag -DBUILD_BROKEN_NEDIT because it doesn't like
OpenMotif 2.2.*
The only other thing I did was modify the tarball so that it extracted a
correct path in the work dir.
Comment 6 bartron 2003-10-10 19:59:25 UTC
  The undefined references are because nedit by default links
with static motif libraries and openmotif-2.2 for some unknown 
reason adds references to resedit functions (which are in 
libXmu).  Possible workarounds are to link to the shared 
libXm (pulls in libXmu automatically), or add `-lXmu' to the 
link line.

  However... there's still the problem that nedit developers
consider both openmotif-2.2 and lesstif-0.93.40 "known-bad".
They definitely have a point with lesstif-0.93.40 (frequently
takes focus from the main text field and there's no way to 
move it back).  Adding `-DBUILD_BROKEN_NEDIT' allows nedit to
build, but on the other hand does just that... it builds a 
broken version of nedit, and also adds a section to the 
`version' help page telling users to complain to their linux 
distributor to build nedit with a stable motif.

  There's currently work underway to move motif and lesstif to
different (also nedit-compatible) versions that also allows
them to be installed at the same time, but until that is 
sorted out --
Comment 7 bartron 2003-10-10 20:02:00 UTC
Created attachment 19080 [details]
nedit-5.4_rc1.ebuild

- builds nedit against shared motif libs
- adds `-DBUILD_BROKEN_NEDIT' only if neccessary
(question: 5.3 depends on aspell only if "spell" is in USE, 
but builds the exact same binary even if it is not, is that 
correct?  Changed to hard depend for now).
Comment 8 bartron 2003-10-10 20:03:20 UTC
Created attachment 19081 [details]
files/nedit-5.4RC1-gentoo_pre.diff

required patch
Comment 9 bartron 2003-10-31 17:41:51 UTC
  rc2 is out... test ebuild is here:
http://bugs.gentoo.org/show_bug.cgi?id=29388#c44
Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-10 18:49:45 UTC

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