public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - build: propagate relative info about /sbin vs sbindir
@ 2009-05-04 10:06 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-05-04 10:06 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=9c32940859baabb0f905b33445f8d6fde7d54d5b
Commit:        9c32940859baabb0f905b33445f8d6fde7d54d5b
Parent:        05d5e90c22e53426fe9e3642dd09cb230eecdb9e
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Mon May 4 11:50:03 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon May 4 12:03:59 2009 +0200

build: propagate relative info about /sbin vs sbindir

this is required to avoid hardlinking of some tools
---
 configure             |    4 ++++
 make/defines.mk.input |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index ce37f09..b400892 100755
--- a/configure
+++ b/configure
@@ -5,6 +5,7 @@ use Getopt::Long;
 use POSIX qw(uname);
 use Cwd 'abs_path';
 use File::Basename;
+use File::Spec;
 
 print "\nConfiguring Makefiles for your system...\n";
 
@@ -379,6 +380,7 @@ if (!$mandir) {
 if (!$sbindir) {
   $sbindir="${prefix}/sbin";
 }
+$relativesbin=File::Spec->abs2rel("/sbin", $sbindir);
 if (!$initddir) {
   $initddir="/etc/init.d";
 }
@@ -473,6 +475,8 @@ while (<IFILE>) {
   $_ =~ s/\@OPENAISLIBDIR\@/$openaislibdir/;
   $_ =~ s/\@MANDIR\@/$mandir/;
   $_ =~ s/\@SBINDIR\@/$sbindir/;
+  $_ =~ s/\@RELATIVESBIN\@/$relativesbin/;
+  $_ =~ s/\@PREFIX\@/$prefix/;
   $_ =~ s/\@INITDDIR\@/$initddir/;
   $_ =~ s/\@DOCDIR\@/$docdir/;
   $_ =~ s/\@LOGDIR\@/$logdir/;
diff --git a/make/defines.mk.input b/make/defines.mk.input
index 9e9a4b3..8b2f5e7 100644
--- a/make/defines.mk.input
+++ b/make/defines.mk.input
@@ -1,5 +1,6 @@
 # Install Locations
 sbindir ?= ${DESTDIR}@SBINDIR@
+relativesbin ?= @RELATIVESBIN@
 initddir ?= ${DESTDIR}@INITDDIR@
 libdir ?= ${DESTDIR}@LIBDIR@
 docdir ?= ${DESTDIR}@DOCDIR@


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-04 10:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-04 10:06 gfs2-utils: master - build: propagate relative info about /sbin vs sbindir Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).