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 107967 - [PATCH] - Fix for autogen.sh so that args are passed to ./configure
[PATCH] - Fix for autogen.sh so that args are passed to ./configure
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other other
: Normal normal
: 0.6.2
Assigned To: Thomas Vander Stichele
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-03-10 06:09 UTC by Malcolm Tredinnick
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to pass all arguments from autogen.sh to configure (787 bytes, patch)
2003-03-10 06:09 UTC, Malcolm Tredinnick
none Details | Review
Patch to fix autogen.sh (784 bytes, patch)
2003-04-07 22:40 UTC, Malcolm Tredinnick
none Details | Review

Description Malcolm Tredinnick 2003-03-10 06:09:07 UTC
On the BRANCH-GSTREAMER-0_6 branch (at least), there is a bug in
autogen.sh. It does not pass $CONFIGURE_OPTS to configure and it does not
pass any extra  command line argument to configure (even though it
advertises that it will do so if you pass in no arguments). The former
problem ($CONFIGURE_OPTS) shows up if you have a 'disable' file of plugins
that should not ever be built -- the corresponding '--disable-foo' argument
are not passsed to configure.

The following patch fixes both of these problems.
Comment 1 Malcolm Tredinnick 2003-03-10 06:09:40 UTC
Created attachment 14885 [details] [review]
Patch to pass all arguments from autogen.sh to configure
Comment 2 Ronald Bultje 2003-03-11 08:34:40 UTC
You're supposed to call "./autogen.sh --autogen-argument=bla --
--configure-option-bla=bla..." - note the two dashes between the
configure arguments and the autogen arguments.

Also see ./autogen.sh --help. ;).
Comment 3 Malcolm Tredinnick 2003-03-12 23:28:12 UTC
Urgh! That makes it different to most other autogen.sh scripts out
there (particularly in GNOME). So there's a good argument to change it
for consistency reasons. I had read the output of --help and had not
noticed the double dashes there at all until you pointed them out.

Comment 4 Christian Fredrik Kalager Schaller 2003-03-31 08:14:16 UTC
I agree with Malcomn on this one. So this patch should be merged
before 0.6.1 to both 0.6 branch and head.
Comment 5 Ronald Bultje 2003-04-07 17:39:49 UTC
We've discussed it, we'd rather not apply it. Being consistent with
Gnome is a good thing, but our current build system just works as it
does, we can't please everyone. Using two dashes shouldn't be the
worst thing in the world.

Of course, you can always keep a patched autogen.sh if you really want
to. ;-).
Comment 6 Malcolm Tredinnick 2003-04-07 21:44:24 UTC
So are you just going to ignore the other part of the patch as well
(not using the contents of $CONFIG_OPT)?
Comment 7 Thomas Vander Stichele 2003-04-07 22:27:08 UTC
I think GStreamer is doing the right thing here. '--' is the standard
way of separating the arguments to the program you're running from
other command-line parameters (Think rm -- - to remove a file called "-").

You are running autogen.sh and passing arguments to that app, not to
configure.  There is already a mechanism in place to pass arguments to
configure.  It might not be what you're used to, but it makes perfect
sense and I don't see why the behaviour would need to be changed.  We
have valid reasons for having it like this, because we actually do
have REAL autogen.sh arguments because they make sense.

As to the other part of the patch, if you think it is valid (don't
know what it does), please reattach without the other bits and
describe what it does.

Can you explain what $CONFIGURE_OPTS is, what it's supposed to do and
where it is described ?
Comment 8 Malcolm Tredinnick 2003-04-07 22:40:03 UTC
Created attachment 15547 [details] [review]
Patch to fix autogen.sh
Comment 9 Malcolm Tredinnick 2003-04-07 22:42:04 UTC
$CONFIGURE_OPT is documented in your autogen.sh file. If the file
'disable' exists, every line in it is appended to a '--disable-' flag
and _should_ be passed to configure (but isn't without this patch).
Similarly, every line in the 'enable' file is explicitly enabled.

This functionality is definitely required because various gst-plugin
components are broken from time to time with different setups and it
is often most productive to just be able to disable them and work with
what's left rather than get sidetracked fixing up yet another build
problem.
Comment 10 Christian Fredrik Kalager Schaller 2003-05-12 14:47:14 UTC
Assigning to thomasvs for review.
Comment 11 Thomas Vander Stichele 2003-05-12 15:11:52 UTC
fixed in CVS, please test and reopen if not to satisfaction.