LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-13-2007, 06:45 AM   #1
adymcc
Member
 
Registered: Dec 2006
Posts: 31

Rep: Reputation: 17
Help with RPM Build issue for xemacs


Hi, I am trying to build a package for Redhat EL Linux 4 to install xemacs

The binaries compile, install and run fine. When I use rpmbuild -ba to run the configure/make/make install, again the package is installed fine.

When the newly built rpm is installed on a fresh machine xemacs reports: "temacs can only be run in -batch mode."

It all works when compiled from source but not when installed from the RPM package, though the binaries are identical as a sum on the two main proram binaries both show identical results:

# sum /usr/local/bin/xemacs-21.4.20
09595 4765

See below the spec file:

#
# A spec file for xemacs
#
Summary: xemacs test editor
Name: xemacs
Version: 21.4.20
Release: 1
Copyright: GPL
Group: Applications/System
Source: <removed to allow post>
URL: <removed to allow post>
Distribution: RedHat Linux
Vendor: Xemacs.org
Packager: Me <me@domain.com>

%description
It a text editor
%prep
rm -rf $RPM_BUILD_DIR/xemacs-21.4.20
zcat $RPM_SOURCE_DIR/xemacs-21.4.20.tar.gz | tar -xvf -
%build
$RPM_BUILD_DIR/xemacs-21.4.20/configure --with-database=no --with-x11
make
%install
make install
%files
%doc $RPM_BUILD_DIR/xemacs-21.4.20/README
/usr/local/lib/xemacs-21.4.20/info/lispref.info-2
/usr/local/lib/xemacs-21.4.20/info/widget.info
/usr/local/lib/xemacs-21.4.20/info/external-widget.info
/usr/local/lib/xemacs-21.4.20/info/xemacs.info-1
/usr/local/lib/xemacs-21.4.20/info/lispref.info-9
/usr/local/lib/xemacs-21.4.20/info/term.info
/usr/local/lib/xemacs-21.4.20/info/xemacs.info-4
/usr/local/lib/xemacs-21.4.20/info/lispref.info-3
/usr/local/lib/xemacs-21.4.20/info/lispref.info-7
/usr/local/lib/xemacs-21.4.20/info/lispref.info-4
/usr/local/lib/xemacs-21.4.20/info/xemacs-faq.info
/usr/local/lib/xemacs-21.4.20/info/custom.info
/usr/local/lib/xemacs-21.4.20/info/standards.info
/usr/local/lib/xemacs-21.4.20/info/xemacs-faq.info-2
/usr/local/lib/xemacs-21.4.20/info/lispref.info
/usr/local/lib/xemacs-21.4.20/info/texinfo.info-2
/usr/local/lib/xemacs-21.4.20/info/lispref.info-5
/usr/local/lib/xemacs-21.4.20/info/texinfo.info
/usr/local/lib/xemacs-21.4.20/info/info.info
/usr/local/lib/xemacs-21.4.20/info/lispref.info-1
/usr/local/lib/xemacs-21.4.20/info/internals.info-1
/usr/local/lib/xemacs-21.4.20/info/lispref.info-6
/usr/local/lib/xemacs-21.4.20/info/new-users-guide.info
/usr/local/lib/xemacs-21.4.20/info/cl.info
/usr/local/lib/xemacs-21.4.20/info/internals.info
/usr/local/lib/xemacs-21.4.20/info/termcap.info
/usr/local/lib/xemacs-21.4.20/info/xemacs-faq.info-1
/usr/local/lib/xemacs-21.4.20/info/xemacs.info-3
/usr/local/lib/xemacs-21.4.20/info/xemacs.info
/usr/local/lib/xemacs-21.4.20/info/xemacs.info-2
/usr/local/lib/xemacs-21.4.20/info/texinfo.info-1
/usr/local/lib/xemacs-21.4.20/info/emodules.info
/usr/local/lib/xemacs-21.4.20/info/dir
/usr/local/lib/xemacs-21.4.20/info/internals.info-2
/usr/local/lib/xemacs-21.4.20/info/lispref.info-8
/usr/local/lib/xemacs-21.4.20/etc/NEWS
--CUT--
/usr/local/lib/xemacs-21.4.20/etc/TUTORIAL.no
/usr/local/lib/xemacs-21.4.20/lisp/gtk-marshal.el
--CUT--
/usr/local/lib/xemacs-21.4.20/lisp/check-features.elc
/usr/local/lib/xemacs-21.4.20/i686-pc-linux/digest-doc
--CUT--
/usr/local/lib/xemacs-21.4.20/i686-pc-linux/rcs2log
/usr/local/man/man1/ctags.1
/usr/local/man/man1/etags.1
/usr/local/man/man1/gnuclient.1
/usr/local/man/man1/gnudoit.1
/usr/local/man/man1/gnuserv.1
/usr/local/man/man1/gnuattach.1
/usr/local/man/man1/xemacs.1
/usr/local/bin/gnuattach
/usr/local/bin/gnuclient
/usr/local/bin/etags
/usr/local/bin/ellcc
/usr/local/bin/rcs-checkin
/usr/local/bin/ootags
/usr/local/bin/b2m
/usr/local/bin/gnudoit
/usr/local/bin/xemacs-21.4.20
/usr/local/bin/ctags

%clean
rm -rf %buildroot

Any ideas much appreciated.

Ady
 
Old 02-13-2007, 07:07 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
xemacs reports: "temacs can only be run in -batch mode."
I don't use emacs, ans since the build process runs OK as you say, maybe try and:
- check what the exact command and arguments used in the "xemacs" button/icon/panel/whatever command are,
- find out what "temacs" is,
- find out how "-batch mode" works?
Hope *that* gives some clues.
 
Old 02-13-2007, 08:04 AM   #3
adymcc
Member
 
Registered: Dec 2006
Posts: 31

Original Poster
Rep: Reputation: 17
Unhappy

Hi unSpawn,

When I run the compiled app resulting from the rpmbuild -ba from the command line i.e #/usr/local/bin/xemacs is works fine.

When I try to do the same on a machine where the package has been used to install the app I get the "temacs can only be run in -batch mode."

There are no additional flags and Im running it via the command line. Xemacs normally defaults to interactive mode but for some reason this is not possible on the clean machine, even though the #sum /usr/local/bin/xemacs shows that both the manually compiled binary and the binary installed using the rpm -i are identical.

There must be files missing from the RPM install.

Assuming this was the case I went back to the build machine. Deleted all the files listed in the %files section of the spec file and installed using the

#rpm -i xemacs-version.rpm

Expecting that this would work ok as there were files that I dodn't know about I would not have deleted them, so they would still be there. So when the rpm was installed it would work correctly.

This is not the case as this also results in "temacs can only be run in -batch mode."

So, Deleted all the files listed in the %files section of the spec file again. re run rpmbuild -ba which re runs the confiure/make/make install and it works fine....


What is happening......
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glibc-2.3.6 build issue ---- wordexp.o not build Dhana_pal Linux - Software 0 12-27-2006 02:56 AM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 10:15 AM
How to build a XEmacs with GUI? zhanmei Linux - Software 1 09-16-2004 05:06 AM
does xemacs have anything to do with color? what is wrong with this xemacs? broodman Linux - Software 0 02-15-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration