Skip to contentSkip to conversation

xfsprogs: don't hard code the shell binary

PATCH In review Dave Chinner 3 participants 6 messages Jun 28, 2011 – Jul 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsprogs: don't hard code the shell binary

From: Dave Chinner <[email protected]>

Recent changes to debian unstable user space have caused the xfsprogs build to break as certain shell functionality is being assumed by libtool and friends. The configure scripts test and select the correct shell, but the input files ignore this and hard code the shell to use and hence now break.

Fix this by using the shell that the configure scripts decide is the right one to use.

---
 include/builddefs.in |    1 +
 include/buildmacros  |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)
include/builddefs.in +1 -0
index f895ed9..4c8ec64 100644
@@ -71,6 +71,7 @@ MAKE		= @make@
 ECHO		= @echo@
 SORT		= @sort@
 LN_S		= @LN_S@
+SHELL		= @SHELL@
 LIBTOOL		= @LIBTOOL@
 MAKEDEPEND	= @makedepend@
 
include/buildmacros +0 -1
index 62babca..31c7eb0 100644
@@ -32,7 +32,6 @@ OBJECTS = $(ASFILES:.s=.o) \
 
 INSTALL	= $(TOPDIR)/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
 
-SHELL = /bin/sh
 IMAGES_DIR = $(TOPDIR)/all-images
 DIST_DIR = $(TOPDIR)/dist
 
Signature · 6 lines
1.7.5.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw
Quoted 10 lines · Dave Chinner

From: Dave Chinner <[email protected]>

Recent changes to debian unstable user space have caused the xfsprogs build to break as certain shell functionality is being assumed by libtool and friends. The configure scripts test and select the correct shell, but the input files ignore this and hard code the shell to use and hence now break.

Fix this by using the shell that the configure scripts decide is the right one to use.

Looks good. The same fix should also be applied to xfsdump, xfstests and dmapi.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
Quoted 9 lines · Christoph Hellwig
Quoted 8 lines · Dave Chinner

From: Dave Chinner <[email protected]>

Recent changes to debian unstable user space have caused the xfsprogs build to break as certain shell functionality is being assumed by libtool and friends. The configure scripts test and select the correct shell, but the input files ignore this and hard code the shell to use and hence now break.

Quoted 5 lines
Quoted 2 lines

Fix this by using the shell that the configure scripts decide is the right one to use.

Looks good. The same fix should also be applied to xfsdump, xfstests and dmapi.

Yes, it should. I just haven't got to them yet ;)

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by
#3 lore raw
In reply to Christoph Hellwig
Quoted 9 lines · Christoph Hellwig
Quoted 8 lines · Dave Chinner

From: Dave Chinner <[email protected]>

Recent changes to debian unstable user space have caused the xfsprogs build to break as certain shell functionality is being assumed by libtool and friends. The configure scripts test and select the correct shell, but the input files ignore this and hard code the shell to use and hence now break.

Quoted 5 lines
Quoted 2 lines

Fix this by using the shell that the configure scripts decide is the right one to use.

Looks good. The same fix should also be applied to xfsdump, xfstests and dmapi.

Agree.

Quoted 1 line

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#5 lore raw
Quoted 2 lines · Christoph Hellwig

Dave, can you commit this one ASAP to all trees? I just updated my test system and I'm hitting the issue too now.

Done.

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs