slat makefiles
Hi John,
today I've problems to build a slat rpm with your spec file. The attached patch adds $DESTDIR to some makefiles to install all files to the right destination like /var/tmp/slat.../ .
Greetings
Carsten
doc/Makefile.in +2 -2
@@ -52,10 +52,10 @@ done install: all - $(INSTALL_DATA) $(BASE_NAME).pdf $(pkgdatadir)/$(BASE_NAME).pdf + $(INSTALL_DATA) $(BASE_NAME).pdf $(DESTDIR)/$(pkgdatadir)/$(BASE_NAME).pdf uninstall: - rm -f $(pkgdatadir)/$(BASE_NAME).pdf + rm -f $(DESTDIR)/$(pkgdatadir)/$(BASE_NAME).pdf distclean: clean -rm Makefile
ml/Makefile.in +4 -4
@@ -136,14 +136,14 @@ install: all @list='$(PROGRAMS)'; for p in $$list; do \ - echo " $(INSTALL_PROGRAM) $$p $(bindir)/$$p"; \ - $(INSTALL_PROGRAM) $$p $(bindir)/$$p; \ + echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)/$(bindir)/$$p"; \ + $(INSTALL_PROGRAM) $$p $(DESTDIR)/$(bindir)/$$p; \ done uninstall: @list='$(PROGRAMS)'; for p in $$list; do \ - echo " rm -f $(bindir)/$$p"; \ - rm -f $(bindir)/$$p; \ + echo " rm -f $(DESTDIR)/$(bindir)/$$p"; \ + rm -f $(DESTDIR)/$(bindir)/$$p; \ done # Dependency checking
Quoted 3 lines · Carsten Grohmann
today I've problems to build a slat rpm with your spec file. The attached patch adds $DESTDIR to some makefiles to install all files to the right destination like
/var/tmp/slat.../.
Carsten,
Thank you for your efforts aimed at improving the slat installation. I studied the patch file you sent, and I can see you are patching two Makefile.in's that have the same date as the ones in my CVS repository, however, I'm having trouble seeing why one would want to add $DESTDIR into these files. To install into /var/tmp/slat, after installing ocaml, you should type:
$ ./configure --prefix=/var/tmp/slat
$ make
$ make installUsed this way, the configure script will create a Makefile in doc with these declarations:
prefix = /var/tmp/slat
datadir = ${prefix}/share
pkgdatadir = $(datadir)/slatAs a result, it will install documents into /var/tmp/slat/share/slat, just as it should.
Just a few seconds ago, I used slat.spec to rebuild the RPM available at
http://www.ccs.neu.edu/home/ramsdell/tools/selinux/slat-1.0.1-1.i386.rpm
without any problems on a machine running Red Hat 9.0. I built it using RPM version 4.2 with the command:
$ rpmbuild -ba slat.spec
What version of Linux are you using? Perhaps the spec file is the location of the problem, not the Makefile.in's. Perhaps the prebuild RPM will solve your needs. Also, let me point out that you do not have to install slat to use it.
If you still think there is a need for DESTDIR, I suggest we discuss this off list, and submit a message to the list if we agree a change is needed.
John
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 2 lines · Carsten Grohmann
today I've problems to build a slat rpm with your spec file. The attached patch adds $DESTDIR
I figured out what you are getting at. You wanted to install into $(DESTDIR)$(bindir) and $(DESTDIR)$(pgkdatadir), but you wrote $(DESTDIR)/$(bindir) and $(DESTDIR)/$(pgkdatadir), which confused me. I have made the changes you requested and placed them into the repository.
John
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.