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 |
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. |
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...... |
All times are GMT -5. The time now is 04:22 PM. |