Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97786 - updated EBUILD for xemacs (21.4.19)
Summary: updated EBUILD for xemacs (21.4.19)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-02 22:34 UTC by Geoff Leach
Modified: 2006-12-10 03:41 UTC (History)
4 users (show)

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


Attachments
xemacs-21.4.17.ebuild (xemacs-21.4.17.ebuild,4.87 KB, text/plain)
2005-07-02 22:45 UTC, Geoff Leach
Details
updated gdbm patch (xemacs-21.4.17-gdbm.patch,646 bytes, text/plain)
2005-07-02 22:46 UTC, Geoff Leach
Details
Revised ebuild for xemacs 21.4.17 (xemacs-21.4.17.ebuild,5.10 KB, text/plain)
2005-08-21 08:42 UTC, Hans de Graaff
Details
xemacs-21.4.19.ebuild (xemacs-21.4.19.ebuild,4.93 KB, text/plain)
2006-06-05 03:11 UTC, Geoff Leach
Details
updated xemacs-21.4.19 ebuild (xemacs-21.4.19.ebuild,5.18 KB, text/plain)
2006-06-08 02:06 UTC, Geoff Leach
Details
updated xemacs-21.4.19 ebuild (xemacs-21.4.19.ebuild,5.20 KB, text/plain)
2006-06-08 21:33 UTC, Geoff Leach
Details
updated xemacs-21.4.19 ebuild (xemacs-21.4.19.ebuild,5.20 KB, text/plain)
2006-06-08 21:35 UTC, Geoff Leach
Details
emodules.texi patch (emodules.texi.patch,366 bytes, text/plain)
2006-06-10 01:59 UTC, Geoff Leach
Details
external-widget.texi patch (external-widget.texi.patch,354 bytes, text/plain)
2006-06-10 02:01 UTC, Geoff Leach
Details
xemacs.desktop (from Hans' overlay) (xemacs.desktop,1.07 KB, text/plain)
2006-06-10 02:03 UTC, Geoff Leach
Details
xemacs-21.4.19-r2.ebuild (xemacs-21.4.19-r2.ebuild,5.24 KB, text/plain)
2006-06-13 12:51 UTC, Hans de Graaff
Details
xemacs-21.4-db.patch (xemacs-21.4-db.patch,3.08 KB, patch)
2006-06-13 12:52 UTC, Hans de Graaff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Leach 2005-07-02 22:34:55 UTC
Please find attached an updated ebuild for the latest xemacs version.

Several changes c.f 21.4.15-r3

1) The emodules-info-21.4.8-gentoo.patch no longer seems necessary - I find the emodules entry in info fine without it. 

2) Updated gdbm patch to correspond track upstream changes of configure.in. The bug needs to be reported upstream (must check that it has/hasnt been)

3) The quick-fix.patch no longer seems to apply, so removed. I checked through the latest configure after ebuild xemacs-21.4.17 unpack and could not see anything relevant. Need powerpclinux person to verify patch is no longer necessary, i.e., ebuild works.

4) The patch for CAN-2005-0100 (movemail) is no longer necessary as a fix has been made upstream  http://list-archive.xemacs.org/cgi-bin/wilma_hiliter/xemacs-patches/200502/msg00082.html?line=319#hilite

New ebuild and gdbm patch attachments to come ...
Comment 1 Geoff Leach 2005-07-02 22:45:23 UTC
Created attachment 62520 [details]
xemacs-21.4.17.ebuild

new ebuild
Comment 2 Geoff Leach 2005-07-02 22:46:38 UTC
Created attachment 62521 [details]
updated gdbm patch
Comment 3 Hans de Graaff gentoo-dev Security 2005-08-12 02:30:34 UTC
I have just submitted a bug report about gdbm upstream, including the patch.
Comment 4 Hans de Graaff gentoo-dev Security 2005-08-12 03:12:23 UTC
The emodules-info-21.4.8-gentoo patch is still needed. The problem it fixes is
not that the file is not installed or found by info, but that it does not appear
in the right section and that it does not have a proper title.

The problem is really with the man/emodules.texi file in the original
distribution. This problem has been fixed in the 21.5 tree, so I have not
reported it to upstream. For 21.4 we simply keep this patch in.

Comment 5 Geoff Leach 2005-08-15 01:35:04 UTC
Looks like Robert Coie - main Gentoo XEmacs person - is snowed under with work
committments according to the Gentoo developer web page 

http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml website

So just wondering who else can update XEmacs in portage?

Not that a minor bump in XEmacs is that important, but keeping up to date
generally is part of the Gentoo attraction :)

Oh, and I guess assuming that someone else has tested the ebuild.

I had a look at effect of the emodules patch. The reason I thought it was not
needed is that my emodules info entry appears in the same place with same
heading with or without it. On looking into it, it seems that is because
/usr/share/info/dir.gz does not get rebuilt. Not sure how a rebuild is
triggered, or whether it should be a part of the install.

Comment 6 Hans de Graaff gentoo-dev Security 2005-08-21 08:42:49 UTC
Created attachment 66480 [details]
Revised ebuild for xemacs 21.4.17

I noticed I did not include my updated ebuild with this bug yet, so here it is.
I've been in contact with Torsten Veller about committing xemacs updates to
portage, so hopefully we can see things moving with xemacs some time soon.
Comment 7 Stefan Kamphausen 2005-08-25 02:10:49 UTC
Hi,

thanks for providing this ebuild.  A few notes:

* There ist actually a good reason to install 21.4.17: it introduces the
function run-mode-hooks which is used by cc-mode.  Thus customized c/c++-coding
is only possible with this version (if you use a recent cc-mode).

* I just managed to install 21.4.17 using the revised ebuild, the emodules-patch
from /usr/portage/app/editors/xemacs/files and the gdbm-patch attached to this
bug.  For this I first followed the "ebuild: A Safer Approach" and when I passed
the ebuild ... install-command I simply emerged xemacs.

* Should I come across any problems with the ebuild I will post to this bug (I
am a heavy xemacs user)

Thanks and kind regards
Stefan Kamphausen
Comment 8 Fred Labrosse 2005-09-29 03:50:08 UTC
Hi, 
 
Many thanks for the ebuild.  I concur with the fact that introducing 21.4.17 is 
a necessity, at least because of that run-mode-hooks business. 
 
I just installed it successfully on an amd64 and so far all seems to be working 
fine.  If I find something that does not work, I'll report. 
 
Just a comment.  The ebuild still contains 21.4.15-r3, which obviously needs to 
be modified. 
 
Again, many thanks. 
 
Fred 
 
Comment 9 Geoff Leach 2005-09-29 16:54:15 UTC
  Just a comment.  The ebuild still contains 21.4.15-r3, which obviously needs to 
  be modified. 

You mean the comment in the ebuild? 

# $Header: /var/cvsroot/gentoo-x86/app-editors/xemacs/xemacs-21.4.15-r3.ebuild,v
1.2 2005/06/12 22:50:02 solar Exp $

That would be updated by whoever does the checkin ..
Comment 10 Frank Lomax 2005-12-20 05:13:56 UTC
Actually 21.4.18 is out now, so you probably want to update the ebuild to install that.  It's definitely a higher priority because of the run-mode-hooks issue.  I've had to install from source into /usr/local to get things to work.

The problem is that if you use the XEmacs package manager to update packages inside XEmacs, you'll actually break cc-mode when running in 21.4.15.  I'll let the cc-mode maintainers know about this, but still, Gentoo should be installing 21.4.18.
Comment 11 Malcolm Purvis 2005-12-27 04:20:02 UTC
I'll second the request to upgrade to xemacs 21.4.18.  Since 21.4.15 there have been a number of Gentoo friendly additions to xemacs including support for building with make -j.
Comment 12 Maxwell Walter 2006-01-03 23:06:24 UTC
Just renaming the above ebuild to xemacs-21.4.18.ebuild
worked fine for me.  It also solved a lot of problems that I was having with cc-mode, so thanks.
Comment 13 Hans de Graaff gentoo-dev Security 2006-06-04 11:18:53 UTC
I've created an updated ebuild for xemacs 21.4.19 in my xemacs overlay. I'd be happy to get feedback on it. The overlay can be found at http://moving-innvations.com/svn/xemacs and it also contains bumps for a whole set of xemacs packages.
Comment 14 Geoff Leach 2006-06-05 03:09:20 UTC
Hans, seems cant access your overlay at the moment (cant find the ip address for the website)

Simply copying the xemacs-21.4.17 ebuild in portage to xemacs-21.4.19 works for me (either rename the gdbm patch or make a minor change to the ebuild). I've attached the ebuild I used.

Use the 21.4.17 ebuild in portage as a base as it handles modular X dependencies.
Comment 15 Geoff Leach 2006-06-05 03:11:53 UTC
Created attachment 88412 [details]
xemacs-21.4.19.ebuild
Comment 16 Hans de Graaff gentoo-dev Security 2006-06-05 06:45:28 UTC
D'oh. Perhaps the right URL to the repository will give more satisfactory results... 

http://moving-innovations.com/svn/xemacs

And yes, I have used the 21.4.17.ebuild in portage as a base. I intend do some more work on the ebuild to deal with some of the reported bugs on xemacs, and to bring in some of the things that were included in earlier versions of the ebuild (e.g. the desktop file so that XEmacs shows up in desktop menus).
Comment 17 Geoff Leach 2006-06-08 02:06:08 UTC
Created attachment 88641 [details]
updated xemacs-21.4.19 ebuild


Slightly updated ebuild:

+ introduced gdbm flag, so berkdb or gdbm can be correctly chosen (see bug 102540)
+ only unpack NeXT_XEmacs.tar.gz if neXt set 
+ changed plain athena widgets to use xaw
+ included Hans' updates for the desktop changes (needs xemacs.desktop)
Comment 18 Geoff Leach 2006-06-08 03:09:17 UTC
Hans, I havent tried your individual package updates, but the ones I had a look at seem fine to me. 

I generally use the sumo package rollup for most of what I do, rather than individual packages - except for a couple of packages I want to rev faster than sumo (for example the Mew MUA).

New sumo out recently 2006.05.10, which works ok so far for the few things I've tried (~x86). Just a rename of the ebuild (also see bug 116859)   
Comment 19 Geoff Leach 2006-06-08 21:33:43 UTC
Created attachment 88736 [details]
updated xemacs-21.4.19 ebuild

Just a little more tweaking

+ add 'eolconv' use flag to enable setting of file-coding (\r\n,\n autodetect, usually off in unix) see bug 62991
+ patch for external-widget.texinfo for external-widget.info entry
+ changed patch for emodules.info to patch emodules.texinfo
+ removed line to remove emodules.info~* as patching texinfo file instead should not result in cruft from applying patch being installed
Comment 20 Geoff Leach 2006-06-08 21:35:58 UTC
Created attachment 88737 [details]
updated xemacs-21.4.19 ebuild

Just a little more tweaking

+ add 'eolconv' use flag to enable setting of file-coding (\r\n,\n autodetect, usually off in unix) see bug 62991
+ patch for external-widget.texinfo for external-widget.info entry
+ changed patch for emodules.info to patch emodules.texinfo
+ removed line to remove emodules.info~* as patching texinfo file instead should not result in cruft from applying patch being installed
Comment 21 Geoff Leach 2006-06-10 01:59:04 UTC
Created attachment 88823 [details]
emodules.texi patch

obsoletes emodules.info patch
Comment 22 Geoff Leach 2006-06-10 02:01:28 UTC
Created attachment 88824 [details]
external-widget.texi patch

fixes external-widget.info entry
Comment 23 Geoff Leach 2006-06-10 02:03:49 UTC
Created attachment 88825 [details]
xemacs.desktop (from Hans' overlay)
Comment 24 Hans de Graaff gentoo-dev Security 2006-06-11 13:49:27 UTC
The database support in the latest uploaded ebuild does not work for me. My nbdm.h file is located in /usr/include/gdbm/ndbm.h which is not where the configure script looks for it (it only checks /usr/include/ndbm.h). 

For berkdb I have db 4.2 installed, but this version is not properly detected. I'm currently testing a fix that I lifted from sxemacs configure, which seems to be the only version that has fixed this. The problem is that db 4.2 maps db_create to db_create_4002 (specific name depending on version), but configure only checks for presence of db_create. As a consequence the library is not added to the build because db_create is not in it, and the build fails while linking.
Comment 25 Hans de Graaff gentoo-dev Security 2006-06-13 12:51:02 UTC
Created attachment 89082 [details]
xemacs-21.4.19-r2.ebuild

New ebuild with improved database support. Both berkdb and gdbm can be set resulting in support for both databases to be included. Also fixed compilation with new gdbm support in Gentoo (with nbdm.h in /usr/include/gdbm only) and newer (> 4.1) versions of berkdb.
Comment 26 Hans de Graaff gentoo-dev Security 2006-06-13 12:52:56 UTC
Created attachment 89083 [details, diff]
xemacs-21.4-db.patch

Patch for database support used by xemacs-21.4.19-r2.ebuild. 

All of the files are available as an overlay at http://moving-innovations.com/svn/xemacs
Comment 27 Hans de Graaff gentoo-dev Security 2006-07-13 13:31:39 UTC
I just noticed that xemacs in portage got bumped to 21.4.19, but without any of the bug fixes included in this thread. I think this bug should remain opened until these are also included in portage.
Comment 28 Marijn Schouten (RETIRED) gentoo-dev 2006-10-27 06:32:20 UTC
I tried the ebuild (with patches and desktop file) and it creates a menu entry under kde as I had hoped.

(directed here from Bug#:   152968)
Comment 29 Hans de Graaff gentoo-dev Security 2006-10-27 06:41:11 UTC
Thanks for the confirmation!

Hopefully this will end up in portage fairly soon (once the Gentoo recruiters have approved my status as developer).
Comment 30 Marijn Schouten (RETIRED) gentoo-dev 2006-10-27 07:26:53 UTC
I am getting a lot of xemacs warnings:

 (error/warning) Error in process filter: (wrong-type-argument consp nil

is this related to any of the new patches here?
Comment 31 Hans de Graaff gentoo-dev Security 2006-10-27 07:37:41 UTC
It's hard to tell from the little bit of information you are giving, but it may be related to the eolconv flag, which determines how eol is handled. It it disabled in earlier versions of xemacs currently in portage, so this would only be a problem if you enabled this flag explicitly. The other patches only fix compilation or configuration issues. 
Comment 32 Marijn Schouten (RETIRED) gentoo-dev 2006-10-27 07:42:51 UTC
ok, I just wanted to mention it; did not want to confuse different bugs.

I don't have eolconf enabled, so I guess it's something else.
Comment 33 Hans de Graaff gentoo-dev Security 2006-12-09 07:06:37 UTC
Just a note that most of the changes attached to this bug have found their way into portage now. As far as I can tell only the database patches are still missing, but I hope to get to those shortly.
Comment 34 Hans de Graaff gentoo-dev Security 2006-12-10 03:41:24 UTC
The database changes have now also been added to portage in xemacs 21.4.19-r2. I believe that was the last of the pending changes reported in this bug. Please let me know if I've missed anything.

Thanks everyone for the patches and feedback!