After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344112 - [gst-autogen.sh] Remove special handling of --prefix
[gst-autogen.sh] Remove special handling of --prefix
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: common
git master
Other Linux
: Immediate normal
: 0.10.18
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 397899 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-06-07 06:31 UTC by JP Rosevear
Modified: 2008-02-25 17:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Patch to pass libdir to the autogen script (838 bytes, patch)
2006-06-07 06:32 UTC, JP Rosevear
rejected Details | Review

Description JP Rosevear 2006-06-07 06:31:15 UTC
gstreamer ignores --libdir parameters to the common autogen script, this breaks jhbuild on 64bit platforms for instance.
Comment 1 JP Rosevear 2006-06-07 06:32:44 UTC
Created attachment 66878 [details] [review]
Patch to pass libdir to the autogen script
Comment 2 Tim-Philipp Müller 2006-06-21 13:05:12 UTC
> gstreamer ignores --libdir parameters to the common autogen script, this breaks
> jhbuild on 64bit platforms for instance.

You can already pass additional parameters like --libdir to autogen.sh like this:

  $ autogen.sh -- --libdir= 


Our build system maintainer seems to strongly dislike adding this to gst-autogen, see http://bugzilla.gnome.org/show_bug.cgi?id=307352 for a previous discussion about this ...
Comment 3 JP Rosevear 2006-08-05 04:37:55 UTC
Finally found time to follow up.  Additional parameters are not passed through, they are dropped by gst-autogen.sh:

       --) shift ; break ;;
      *) echo "- ignoring unknown autogen.sh argument $1"; shift ;;

Tne patch in bug 307352 not longer seems to be applied or was never applied to gst 0.10.
Comment 4 Elijah Newren 2007-01-18 18:22:59 UTC
*** Bug 397899 has been marked as a duplicate of this bug. ***
Comment 5 Elijah Newren 2007-03-12 04:31:49 UTC
In multiple places (such as bug 164973 comment 6), Thomas has said something along the lines of:

  all arguments to autogen that are supposed to go to configure should be listed
  AFTER "--".  This is the standard way to separate a program's own options from
  other parameters.

However, gstreamer oddly doesn't require this for --prefix, despite the fact that it is an argument to configure.  --prefix and --libdir have extremely similar meanings: setting up the path for installation.  So why shouldn't these two be treated the same?  I think gstreamer should either not treat --prefix specially (and require it to be listed after "--"), or apply JPR's patch for specially treating --libdir in an identical way to --prefix.  Am I missing something?

P.S.  I'm also filing a bug against jhbuild right now with the patch to make --libdir be passed after --, if both are being passed.  I still think gstreamer needs to fix the inconsistency in handling --prefix and --libdir, though.
Comment 6 Thomas Vander Stichele 2007-03-12 10:12:09 UTC
I agree that --prefix is inconsistent and I was opposed to adding it.

So yes, let's remove --prefix from autogen.sh, I support Elijah fully in this.

Adding --libdir as well to autogen.sh would only be a good idea if we also add:
  --bindir=DIR           user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR       program executables [EPREFIX/libexec]
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --includedir=DIR       C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --infodir=DIR          info documentation [PREFIX/info]
  --mandir=DIR           man documentation [PREFIX/man]
Comment 7 Thomas Vander Stichele 2007-03-12 10:25:45 UTC
wrt. the link to the other bug report - I have never understood why jhbuild never made the distinction between autogen and configure.

Surely by now, now that jhbuild has support for tarballs *and* uses it for a whole set of modules, it is doing The Right Thing and separating autogen steps from configure steps ?

Comment 8 Elijah Newren 2007-03-17 18:29:01 UTC
I've patch jhbuild to handle passing --prefix after '-- ' in the arguments to autogen (when '-- ' is passed, of course), so feel free to make this change.  The patch isn't committed quite yet, but it has been tested and it is simple so feel free to provide extra motivation to quickly review it.

jhbuild basically has autogen and configure going through the same code paths, but there is an ability to check which of the two is running and add special case code.  In fact, there was already one special case check in jhbuild (to remove --enable-maintainer-mode from tarball builds since it apparently broke them).
Comment 9 David Schleef 2007-05-13 20:38:45 UTC
Thomas, is it ok to go ahead and fix this in gstreamer now?
Comment 10 Elijah Newren 2007-05-13 20:52:47 UTC
Note that the jhbuild patch has been accepted and committed a while ago, so removing the special casing of --prefix won't break jhbuild.
Comment 11 Elijah Newren 2007-05-25 01:28:08 UTC
[Updating the bug summary and status as per Thomas' preferred fix.]
Comment 12 Tim-Philipp Müller 2008-02-25 17:57:17 UTC
 2008-02-25  Andy Wingo  <wingo@pobox.com>

        * gst-autogen.sh: Instead of only passing certain arguments to
        configure, pass anything that we didn't handle. Much friendlier.
        Fixes #34412.