public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] rename configure.in to configure.ac
@ 2012-09-24 23:39 Mike Frysinger
  2012-09-24 23:39 ` [PATCH 2/3] respect DESTDIR when installing Mike Frysinger
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Mike Frysinger @ 2012-09-24 23:39 UTC (permalink / raw)
  To: xfs

Newer autotools warn and start to error with the older name.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 configure.in => configure.ac | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename configure.in => configure.ac (100%)

diff --git a/configure.in b/configure.ac
similarity index 100%
rename from configure.in
rename to configure.ac
-- 
1.7.12

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 2/3] respect DESTDIR when installing
  2012-09-24 23:39 [PATCH 1/3] rename configure.in to configure.ac Mike Frysinger
@ 2012-09-24 23:39 ` Mike Frysinger
  2012-09-25  9:41   ` Christoph Hellwig
  2012-10-24 20:51   ` Ben Myers
  2012-09-24 23:39 ` [PATCH 3/3] install shared libs with +x bits Mike Frysinger
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 15+ messages in thread
From: Mike Frysinger @ 2012-09-24 23:39 UTC (permalink / raw)
  To: xfs

This makes the `make install DESTDIR=...` form work.  It keeps support
for all previous forms too (like DIST_ROOT).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/install-sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/install-sh b/include/install-sh
index 18c051f..c952a71 100755
--- a/include/install-sh
+++ b/include/install-sh
@@ -85,6 +85,8 @@ REAL_UID=$OWNER
 INSTALL=true
 MANIFEST=:
 
+: ${DIST_ROOT:=${DESTDIR}}
+
 [ -n "$DIST_MANIFEST" -a -z "$DIST_ROOT" ] && INSTALL=false
 [ -n "$DIST_MANIFEST" ] && MANIFEST="_manifest"
 
-- 
1.7.12

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/3] install shared libs with +x bits
  2012-09-24 23:39 [PATCH 1/3] rename configure.in to configure.ac Mike Frysinger
  2012-09-24 23:39 ` [PATCH 2/3] respect DESTDIR when installing Mike Frysinger
@ 2012-09-24 23:39 ` Mike Frysinger
  2012-09-25  9:41   ` Christoph Hellwig
  2012-09-25  9:41 ` [PATCH 1/3] rename configure.in to configure.ac Christoph Hellwig
  2012-10-24 22:06 ` Ben Myers
  3 siblings, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2012-09-24 23:39 UTC (permalink / raw)
  To: xfs

These are shared libs w/executable code, so make sure they have +x bits
set on them.  Some kernels will proactively disallow executable mmaps if
the files lack +x bits.  It's also the right thing to do.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/buildmacros | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/buildmacros b/include/buildmacros
index 31c7eb0..7a01880 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -58,7 +58,7 @@ ifeq ($(ENABLE_SHARED),yes)
 INSTALL_LTLIB = \
 	cd $(TOPDIR)/$(LIBNAME)/.libs; \
 	../$(INSTALL) -m 755 -d $(PKG_ROOT_LIB_DIR); \
-	../$(INSTALL) -m 644 -T so_dot_version $(LIBNAME).lai $(PKG_ROOT_LIB_DIR); \
+	../$(INSTALL) -m 755 -T so_dot_version $(LIBNAME).lai $(PKG_ROOT_LIB_DIR); \
 	../$(INSTALL) -T so_dot_current $(LIBNAME).lai $(PKG_ROOT_LIB_DIR)
 endif
 
-- 
1.7.12

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] rename configure.in to configure.ac
  2012-09-24 23:39 [PATCH 1/3] rename configure.in to configure.ac Mike Frysinger
  2012-09-24 23:39 ` [PATCH 2/3] respect DESTDIR when installing Mike Frysinger
  2012-09-24 23:39 ` [PATCH 3/3] install shared libs with +x bits Mike Frysinger
@ 2012-09-25  9:41 ` Christoph Hellwig
  2012-09-25 16:38   ` Mike Frysinger
  2012-10-24 22:06 ` Ben Myers
  3 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2012-09-25  9:41 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: xfs

On Mon, Sep 24, 2012 at 07:39:36PM -0400, Mike Frysinger wrote:
> Newer autotools warn and start to error with the older name.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  configure.in => configure.ac | 0
>  1 file changed, 0 insertions(+), 0 deletions(-)
>  rename configure.in => configure.ac (100%)
> 
> diff --git a/configure.in b/configure.ac
> similarity index 100%
> rename from configure.in
> rename to configure.ac

Is there a patch version that can track this now?

Otherwise looks good and should go into all of the userspace repos.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-09-24 23:39 ` [PATCH 2/3] respect DESTDIR when installing Mike Frysinger
@ 2012-09-25  9:41   ` Christoph Hellwig
  2012-10-19  4:21     ` Mike Frysinger
  2012-10-24 20:51   ` Ben Myers
  1 sibling, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2012-09-25  9:41 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: xfs

Looks good.  I guess this is for xfstests as it should be working for
the real tools?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 3/3] install shared libs with +x bits
  2012-09-24 23:39 ` [PATCH 3/3] install shared libs with +x bits Mike Frysinger
@ 2012-09-25  9:41   ` Christoph Hellwig
  0 siblings, 0 replies; 15+ messages in thread
From: Christoph Hellwig @ 2012-09-25  9:41 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: xfs

On Mon, Sep 24, 2012 at 07:39:38PM -0400, Mike Frysinger wrote:
> These are shared libs w/executable code, so make sure they have +x bits
> set on them.  Some kernels will proactively disallow executable mmaps if
> the files lack +x bits.  It's also the right thing to do.

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] rename configure.in to configure.ac
  2012-09-25  9:41 ` [PATCH 1/3] rename configure.in to configure.ac Christoph Hellwig
@ 2012-09-25 16:38   ` Mike Frysinger
  0 siblings, 0 replies; 15+ messages in thread
From: Mike Frysinger @ 2012-09-25 16:38 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 808 bytes --]

On Tuesday 25 September 2012 05:41:13 Christoph Hellwig wrote:
> On Mon, Sep 24, 2012 at 07:39:36PM -0400, Mike Frysinger wrote:
> > Newer autotools warn and start to error with the older name.
> > 
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> > ---
> > 
> >  configure.in => configure.ac | 0
> >  1 file changed, 0 insertions(+), 0 deletions(-)
> >  rename configure.in => configure.ac (100%)
> > 
> > diff --git a/configure.in b/configure.ac
> > similarity index 100%
> > rename from configure.in
> > rename to configure.ac
> 
> Is there a patch version that can track this now?

`git am` should do the right thing.  patch-2.7 should also process this 
correctly (although you might want to get the latest 2.7 snapshot since it 
fixes a few bugs in the 2.7 release).
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-09-25  9:41   ` Christoph Hellwig
@ 2012-10-19  4:21     ` Mike Frysinger
  2012-10-23 12:25       ` Christoph Hellwig
  0 siblings, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2012-10-19  4:21 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 239 bytes --]

On Tuesday 25 September 2012 05:41:39 Christoph Hellwig wrote:
> Looks good.  I guess this is for xfstests as it should be working for
> the real tools?

hmm, these don't appear to have been merged.  is there something i should do ?
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-10-19  4:21     ` Mike Frysinger
@ 2012-10-23 12:25       ` Christoph Hellwig
  2012-10-23 14:23         ` Rich Johnston
  0 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2012-10-23 12:25 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: Christoph Hellwig, xfs

On Fri, Oct 19, 2012 at 12:21:58AM -0400, Mike Frysinger wrote:
> On Tuesday 25 September 2012 05:41:39 Christoph Hellwig wrote:
> > Looks good.  I guess this is for xfstests as it should be working for
> > the real tools?
> 
> hmm, these don't appear to have been merged.  is there something i should do ?

No, but I stopped applying patches to the kernel.org repos, with the SGI
people pickingup the slack using the oss.sgi.com repos.

Ben, any chance you could re-review the series and apply it?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-10-23 12:25       ` Christoph Hellwig
@ 2012-10-23 14:23         ` Rich Johnston
  0 siblings, 0 replies; 15+ messages in thread
From: Rich Johnston @ 2012-10-23 14:23 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Mike Frysinger, xfs

On 10/23/2012 07:25 AM, Christoph Hellwig wrote:
> On Fri, Oct 19, 2012 at 12:21:58AM -0400, Mike Frysinger wrote:
>> On Tuesday 25 September 2012 05:41:39 Christoph Hellwig wrote:
>>> Looks good.  I guess this is for xfstests as it should be working for
>>> the real tools?
>>
>> hmm, these don't appear to have been merged.  is there something i should do ?
>
> No, but I stopped applying patches to the kernel.org repos, with the SGI
> people pickingup the slack using the oss.sgi.com repos.
>
> Ben, any chance you could re-review the series and apply it?
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
>
Mike/Christoph,

I am in the process of going through patchworks and cleaning up the 
list.  I will make sure to include this.

Thanks
--Rich

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-09-24 23:39 ` [PATCH 2/3] respect DESTDIR when installing Mike Frysinger
  2012-09-25  9:41   ` Christoph Hellwig
@ 2012-10-24 20:51   ` Ben Myers
  2012-10-24 21:07     ` Mike Frysinger
  1 sibling, 1 reply; 15+ messages in thread
From: Ben Myers @ 2012-10-24 20:51 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: xfs

Hey Mike,

On Mon, Sep 24, 2012 at 07:39:37PM -0400, Mike Frysinger wrote:
> This makes the `make install DESTDIR=...` form work.  It keeps support
> for all previous forms too (like DIST_ROOT).

This doesn't seem to work for me.  I do a make install DESTDIR=/some/odd/path
and it all still goes into /usr.  What sort of system did you try this on?
Maybe it just doesn't like opensuse 12.2?

Regards,
	Ben

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-10-24 20:51   ` Ben Myers
@ 2012-10-24 21:07     ` Mike Frysinger
  2012-10-24 21:21       ` Ben Myers
  0 siblings, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2012-10-24 21:07 UTC (permalink / raw)
  To: Ben Myers; +Cc: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 858 bytes --]

On Wednesday 24 October 2012 16:51:40 Ben Myers wrote:
> Hey Mike,
> 
> On Mon, Sep 24, 2012 at 07:39:37PM -0400, Mike Frysinger wrote:
> > This makes the `make install DESTDIR=...` form work.  It keeps support
> > for all previous forms too (like DIST_ROOT).
> 
> This doesn't seem to work for me.  I do a make install
> DESTDIR=/some/odd/path and it all still goes into /usr.  What sort of
> system did you try this on? Maybe it just doesn't like opensuse 12.2?

the `make` output makes it look like it's going into / and such, but it isn't.  
the install-sh script rewrites the path silently behind the scenes.

alternatively, maybe you didn't rebuild autotools after applying the patch ?  
the code will copy include/install-sh to the top level, and then everything 
executes that rather than the original in the include/ subdir.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 2/3] respect DESTDIR when installing
  2012-10-24 21:07     ` Mike Frysinger
@ 2012-10-24 21:21       ` Ben Myers
  0 siblings, 0 replies; 15+ messages in thread
From: Ben Myers @ 2012-10-24 21:21 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: xfs


On Wed, Oct 24, 2012 at 05:07:36PM -0400, Mike Frysinger wrote:
> On Wednesday 24 October 2012 16:51:40 Ben Myers wrote:
> > On Mon, Sep 24, 2012 at 07:39:37PM -0400, Mike Frysinger wrote:
> > > This makes the `make install DESTDIR=...` form work.  It keeps support
> > > for all previous forms too (like DIST_ROOT).
> > 
> > This doesn't seem to work for me.  I do a make install
> > DESTDIR=/some/odd/path and it all still goes into /usr.  What sort of
> > system did you try this on? Maybe it just doesn't like opensuse 12.2?
> 
> the `make` output makes it look like it's going into / and such, but it isn't.  
> the install-sh script rewrites the path silently behind the scenes.
> 
> alternatively, maybe you didn't rebuild autotools after applying the patch ?  
> the code will copy include/install-sh to the top level, and then everything 
> executes that rather than the original in the include/ subdir.

Thanks Mike, works great. 

-Ben

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] rename configure.in to configure.ac
  2012-09-24 23:39 [PATCH 1/3] rename configure.in to configure.ac Mike Frysinger
                   ` (2 preceding siblings ...)
  2012-09-25  9:41 ` [PATCH 1/3] rename configure.in to configure.ac Christoph Hellwig
@ 2012-10-24 22:06 ` Ben Myers
  2012-10-24 22:22   ` Mike Frysinger
  3 siblings, 1 reply; 15+ messages in thread
From: Ben Myers @ 2012-10-24 22:06 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: xfs

On Mon, Sep 24, 2012 at 07:39:36PM -0400, Mike Frysinger wrote:
> Newer autotools warn and start to error with the older name.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

I have pulled this series into xfsdump and xfsprogs repos on oss.  xfstests has
a little hiccup that I need to sort through first:

~/xfstests # make
make: *** No rule to make target `configure.in', needed by `configure'.  Stop.

I haven't forgotten dmapi.

Thanks Mike!

-Ben

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/3] rename configure.in to configure.ac
  2012-10-24 22:06 ` Ben Myers
@ 2012-10-24 22:22   ` Mike Frysinger
  0 siblings, 0 replies; 15+ messages in thread
From: Mike Frysinger @ 2012-10-24 22:22 UTC (permalink / raw)
  To: Ben Myers; +Cc: xfs


[-- Attachment #1.1: Type: Text/Plain, Size: 1185 bytes --]

On Wednesday 24 October 2012 18:06:17 Ben Myers wrote:
> On Mon, Sep 24, 2012 at 07:39:36PM -0400, Mike Frysinger wrote:
> > Newer autotools warn and start to error with the older name.
> > 
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> 
> I have pulled this series into xfsdump and xfsprogs repos on oss.  xfstests
> has a little hiccup that I need to sort through first:
> 
> ~/xfstests # make
> make: *** No rule to make target `configure.in', needed by `configure'. 
> Stop.

yeah, i forgot to update Makefile to look for configure.ac.  i think all the 
repos will need that fix.  xfsprogs for example:
diff --git a/Makefile b/Makefile
index 80fec1e..7ef3e84 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ SRCDIR = $(PKG_NAME)-$(PKG_VERSION)
 SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
 
 CONFIGURE = aclocal.m4 configure config.guess config.sub install-sh ltmain.sh
-LSRCFILES = configure.in release.sh README VERSION $(CONFIGURE)
+LSRCFILES = configure.ac release.sh README VERSION $(CONFIGURE)
 
 LDIRT = config.log .ltdep .dep config.status config.cache confdefs.h \
 	conftest* built .census install.* install-dev.* *.gz \
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-10-24 22:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 23:39 [PATCH 1/3] rename configure.in to configure.ac Mike Frysinger
2012-09-24 23:39 ` [PATCH 2/3] respect DESTDIR when installing Mike Frysinger
2012-09-25  9:41   ` Christoph Hellwig
2012-10-19  4:21     ` Mike Frysinger
2012-10-23 12:25       ` Christoph Hellwig
2012-10-23 14:23         ` Rich Johnston
2012-10-24 20:51   ` Ben Myers
2012-10-24 21:07     ` Mike Frysinger
2012-10-24 21:21       ` Ben Myers
2012-09-24 23:39 ` [PATCH 3/3] install shared libs with +x bits Mike Frysinger
2012-09-25  9:41   ` Christoph Hellwig
2012-09-25  9:41 ` [PATCH 1/3] rename configure.in to configure.ac Christoph Hellwig
2012-09-25 16:38   ` Mike Frysinger
2012-10-24 22:06 ` Ben Myers
2012-10-24 22:22   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox