Bug 94649 - build: Fix autogen.sh when run with builddir ≠ srcdir
Summary: build: Fix autogen.sh when run with builddir ≠ srcdir
Status: RESOLVED FIXED
Alias: None
Product: GeoClue
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Geoclue Bugs
QA Contact: Geoclue Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-21 15:39 UTC by Philip Withnall
Modified: 2016-03-22 12:34 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
build: Fix autogen.sh when run with builddir ≠ srcdir (1.13 KB, patch)
2016-03-21 15:39 UTC, Philip Withnall
Details | Splinter Review

Description Philip Withnall 2016-03-21 15:39:40 UTC
Trivial patch attached.
Comment 1 Philip Withnall 2016-03-21 15:39:42 UTC
Created attachment 122460 [details] [review]
build: Fix autogen.sh when run with builddir ≠ srcdir

When run from outside the srcdir, autogen.sh was failing because various
of the tools it calls expect to be called from within srcdir.
Comment 2 Zeeshan Ali 2016-03-21 17:42:43 UTC
Comment on attachment 122460 [details] [review]
build: Fix autogen.sh when run with builddir ≠ srcdir

Review of attachment 122460 [details] [review]:
-----------------------------------------------------------------

::: autogen.sh
@@ -6,4 @@
>  
>  srcdir=`dirname $0`
>  test -z "$srcdir" && srcdir=.
> -mkdir -p m4

So we are removing this? Are you sure it doesn't cause any issues?
Comment 3 Philip Withnall 2016-03-21 19:08:30 UTC
(In reply to Zeeshan Ali from comment #2)
> Comment on attachment 122460 [details] [review] [review]
> build: Fix autogen.sh when run with builddir ≠ srcdir
> 
> Review of attachment 122460 [details] [review] [review]:
> -----------------------------------------------------------------
> 
> ::: autogen.sh
> @@ -6,4 @@
> >  
> >  srcdir=`dirname $0`
> >  test -z "$srcdir" && srcdir=.
> > -mkdir -p m4
> 
> So we are removing this? Are you sure it doesn't cause any issues?

It was a workaround for an automake bug which existed in versions prior to 1.11.0 (https://lists.gnu.org/archive/html/bug-automake/2012-03/msg00046.html). I don’t think it’s necessary any more.

The standard GNOME autogen.sh template is used by a number of projects without problems, and it doesn’t have the `mkdir` call.

https://wiki.gnome.org/Projects/GnomeCommon/Migration#autogen.sh
Comment 4 Zeeshan Ali 2016-03-22 12:33:57 UTC
Pushed the patch with a very minor fix to shortlog.
Comment 5 Zeeshan Ali 2016-03-22 12:34:32 UTC
(In reply to Philip Withnall from comment #3)
> (In reply to Zeeshan Ali from comment #2)
> > Comment on attachment 122460 [details] [review] [review] [review]
> > build: Fix autogen.sh when run with builddir ≠ srcdir
> > 
> > Review of attachment 122460 [details] [review] [review] [review]:
> > -----------------------------------------------------------------
> > 
> > ::: autogen.sh
> > @@ -6,4 @@
> > >  
> > >  srcdir=`dirname $0`
> > >  test -z "$srcdir" && srcdir=.
> > > -mkdir -p m4
> > 
> > So we are removing this? Are you sure it doesn't cause any issues?
> 
> It was a workaround for an automake bug which existed in versions prior to
> 1.11.0
> (https://lists.gnu.org/archive/html/bug-automake/2012-03/msg00046.html). I
> don’t think it’s necessary any more.
> 
> The standard GNOME autogen.sh template is used by a number of projects
> without problems, and it doesn’t have the `mkdir` call.
> 
> https://wiki.gnome.org/Projects/GnomeCommon/Migration#autogen.sh

Ah ok, thanks! I just thought I should make sure that it wasn't removed by mistake. :)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.