Message ID | 1393360566-4849-1-git-send-email-spdawson@gmail.com |
---|---|
State | Accepted |
Commit | 020047730b5a30491751b81f9bc7017818d29269 |
Headers | show |
Hi Simon, On Tue, Feb 25, 2014 at 9:36 PM, Simon Dawson <spdawson@gmail.com> wrote: > Fix a large number of incorrect configure options for vlc. > > Configure warnings reported by Arnout Vandecappelle, in his analysis of vlc > autobuild failures. Don't forget your SoB line ;) Reviewed-by: Samuel Martin <s.martin49@gmail.com> Regards,
>>>>> "Samuel" == Samuel Martin <s.martin49@gmail.com> writes: > Hi Simon, > On Tue, Feb 25, 2014 at 9:36 PM, Simon Dawson <spdawson@gmail.com> wrote: >> Fix a large number of incorrect configure options for vlc. >> >> Configure warnings reported by Arnout Vandecappelle, in his analysis of vlc >> autobuild failures. > Don't forget your SoB line ;) Simon, can I add it when I commit?
Hi Peter.
On 25 Feb 2014 21:55, "Peter Korsgaard" <jacmet@uclibc.org> wrote:
> Simon, can I add it when I commit?
Yes, of course. Sorry about that.
Simon.
>>>>> "Simon" == Simon Dawson <spdawson@gmail.com> writes: > Fix a large number of incorrect configure options for vlc. > Configure warnings reported by Arnout Vandecappelle, in his analysis of vlc > autobuild failures. > --- > package/vlc/vlc.mk | 70 +++++++++++++++++++++++++++--------------------------- > 1 file changed, 35 insertions(+), 35 deletions(-) > diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk > index 0e76e11..9bcedd1 100644 > --- a/package/vlc/vlc.mk > +++ b/package/vlc/vlc.mk > @@ -14,23 +14,23 @@ VLC_AUTORECONF = YES > VLC_CONF_OPT += \ > --disable-a52 \ > - --disable-shout \ > - --disable-twolame \ > - --disable-dca \ > - --disable-dirac \ > - --disable-schroedinger \ > - --disable-quicksync \ > - --disable-fluidsynth \ > + --without-shout \ > + --without-twolame \ > + --without-dca \ > + --without-dirac \ > + --without-schroedinger \ > + --without-quicksync \ > + --without-fluidsynth \ Did you test these? From a quick look: ./configure --help | egrep 'a52|shout|twolame|dca|dirac|schroedinger|quicksync|fluidsynth' --enable-shout libshout output plugin [default=auto] --enable-twolame MPEG Audio Layer 2 encoder [default=auto] --enable-a52 A/52 support with liba52 (default enabled) --with-a52=PATH a52 headers and libraries --with-a52-tree=PATH a52dec tree for static linking --enable-dca DTS Coherent Acoustics support with libdca --enable-dirac dirac encoder [default=auto] --enable-schroedinger dirac decoder and encoder using schroedinger --enable-quicksync Intel QuickSync MPEG4-Part10/MPEG2 (aka H.264/H.262) --enable-fluidsynth MIDI synthetiser with libfluidsynth [default=auto] So they all seem to be of the --enable / --disable form and not --with / --without. > --disable-zvbi \ > - --disable-kate \ > - --disable-caca \ > + --without-kate \ > + --without-caca \ > --disable-jack \ > - --disable-samplerate \ > - --disable-chromaprint \ > - --disable-goom \ > + --without-samplerate \ > + --without-chromaprint \ > + --without-goom \ Same here: ./configure --help | egrep 'kate|caca|samplerate|chromaprint|goom' --enable-kate kate codec [default=auto] --enable-caca libcaca output [default=auto] --enable-samplerate Resampler with libsamplerate [default=auto] --enable-chromaprint (Chromaprint based audio fingerprinter) --enable-goom goom visualization plugin [default=auto] > --disable-projectm \ > --disable-vsxu \ > - --disable-mtp \ > + --without-mtp \ > --without-opencv And here: ./configure --help | egrep 'mtp' --enable-mtp MTP devices support [default=auto] > # Set powerpc altivec appropriately > @@ -49,10 +49,10 @@ endif > # bonjour support needs avahi-client, which needs avahi-daemon and dbus > ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yyy) > -VLC_CONF_OPT += --enable-bonjour > +VLC_CONF_OPT += --with-bonjour > VLC_DEPENDENCIES += avahi dbus > else > -VLC_CONF_OPT += --disable-bonjour > +VLC_CONF_OPT += --without-bonjour ./configure --help | egrep 'bonjour' --enable-bonjour Bonjour services discovery [default=auto] > endif > ifeq ($(BR2_PACKAGE_DBUS),y) > @@ -96,10 +96,10 @@ VLC_CONF_OPT += --disable-swscale > endif > ifeq ($(BR2_PACKAGE_FLAC),y) > -VLC_CONF_OPT += --enable-flac > +VLC_CONF_OPT += --with-flac > VLC_DEPENDENCIES += flac > else > -VLC_CONF_OPT += --disable-flac > +VLC_CONF_OPT += --without-flac > endif ./configure --help | egrep 'flac' --enable-flac libflac decoder/encoder support [default=auto] > ifeq ($(BR2_PACKAGE_MESA3D),y) > @@ -110,10 +110,10 @@ VLC_CONF_OPT += --disable-glx > endif > ifeq ($(BR2_PACKAGE_OPUS),y) > -VLC_CONF_OPT += --enable-opus > +VLC_CONF_OPT += --with-opus > VLC_DEPENDENCIES += opus > else > -VLC_CONF_OPT += --disable-opus > +VLC_CONF_OPT += --without-opus > endif ./configure --help | egrep 'opus' --enable-opus Opus support [default=auto] .. And so on. What's going on here?
>>>>> "Peter" == Peter Korsgaard <jacmet@uclibc.org> writes: >>>>> "Simon" == Simon Dawson <spdawson@gmail.com> writes: >> Fix a large number of incorrect configure options for vlc. >> Configure warnings reported by Arnout Vandecappelle, in his analysis of vlc >> autobuild failures. >> --- >> package/vlc/vlc.mk | 70 +++++++++++++++++++++++++++--------------------------- >> 1 file changed, 35 insertions(+), 35 deletions(-) >> diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk >> index 0e76e11..9bcedd1 100644 >> --- a/package/vlc/vlc.mk >> +++ b/package/vlc/vlc.mk >> @@ -14,23 +14,23 @@ VLC_AUTORECONF = YES >> VLC_CONF_OPT += \ >> --disable-a52 \ >> - --disable-shout \ >> - --disable-twolame \ >> - --disable-dca \ >> - --disable-dirac \ >> - --disable-schroedinger \ >> - --disable-quicksync \ >> - --disable-fluidsynth \ >> + --without-shout \ >> + --without-twolame \ >> + --without-dca \ >> + --without-dirac \ >> + --without-schroedinger \ >> + --without-quicksync \ >> + --without-fluidsynth \ > Did you test these? > From a quick look: > ./configure --help | egrep 'a52|shout|twolame|dca|dirac|schroedinger|quicksync|fluidsynth' > --enable-shout libshout output plugin [default=auto] > --enable-twolame MPEG Audio Layer 2 encoder [default=auto] > --enable-a52 A/52 support with liba52 (default enabled) > --with-a52=PATH a52 headers and libraries > --with-a52-tree=PATH a52dec tree for static linking > --enable-dca DTS Coherent Acoustics support with libdca > --enable-dirac dirac encoder [default=auto] > --enable-schroedinger dirac decoder and encoder using schroedinger > --enable-quicksync Intel QuickSync MPEG4-Part10/MPEG2 (aka H.264/H.262) > --enable-fluidsynth MIDI synthetiser with libfluidsynth [default=auto] > So they all seem to be of the --enable / --disable form and not --with / --without. Ahh, now I get it. Our autoreconf somehow converts all those --enable / --disable to --with / --without. Anybody that has any idea why this is so? It quite unfortunate as we will have to change all of this back once we bump the vlc version and no longer need VLC_AUTORECONF = YES.
Hi Peter, On 25 February 2014 23:00, Peter Korsgaard <peter@korsgaard.com> wrote: > > Did you test these? Yes, I did. > Ahh, now I get it. Our autoreconf somehow converts all those --enable / > --disable to --with / --without. Yes, exactly so. > Anybody that has any idea why this is so? It quite unfortunate as we > will have to change all of this back once we bump the vlc version and no > longer need VLC_AUTORECONF = YES. I haven't yet got to the bottom of how/why this is happening, I'm afraid. Simon.
On 26/02/14 11:11, Simon Dawson wrote: > Hi Peter, > > On 25 February 2014 23:00, Peter Korsgaard <peter@korsgaard.com> wrote: >> > Did you test these? > > Yes, I did. > >> Ahh, now I get it. Our autoreconf somehow converts all those --enable / >> --disable to --with / --without. > > Yes, exactly so. > >> Anybody that has any idea why this is so? It quite unfortunate as we >> will have to change all of this back once we bump the vlc version and no >> longer need VLC_AUTORECONF = YES. > > I haven't yet got to the bottom of how/why this is happening, I'm afraid. There's a lot of strangeness caused by our AUTORECONF... I guess it has something to do with all the warnings we get when AUTORECONFing, since in m4/with_pkg.m4 I do see: m4_case(def_arg, [yes],[m4_pushdef([with_without], [--disable-]with_arg)], [m4_pushdef([with_without],[--enable-]with_arg)]) AC_ARG_ENABLE(with_arg, AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, [AS_TR_SH([enable_]with_arg)=def_arg]) In other words, it registers an --enable option. I guess that the PKG_CHECK_MODULES option implicitly enables a --with-foo option as well, but doesn't mention it in the help text. Regards, Arnout > > Simon. > _______________________________________________ > buildroot mailing list > buildroot@busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > >
On 26/02/14 00:00, Peter Korsgaard wrote: >>>>>> "Peter" == Peter Korsgaard <jacmet@uclibc.org> writes: > >>>>>> "Simon" == Simon Dawson <spdawson@gmail.com> writes: > >> Fix a large number of incorrect configure options for vlc. > >> Configure warnings reported by Arnout Vandecappelle, in his analysis of vlc > >> autobuild failures. > > >> --- > >> package/vlc/vlc.mk | 70 +++++++++++++++++++++++++++--------------------------- > >> 1 file changed, 35 insertions(+), 35 deletions(-) > > >> diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk > >> index 0e76e11..9bcedd1 100644 > >> --- a/package/vlc/vlc.mk > >> +++ b/package/vlc/vlc.mk > >> @@ -14,23 +14,23 @@ VLC_AUTORECONF = YES > > >> VLC_CONF_OPT += \ > >> --disable-a52 \ > >> - --disable-shout \ > >> - --disable-twolame \ > >> - --disable-dca \ > >> - --disable-dirac \ > >> - --disable-schroedinger \ > >> - --disable-quicksync \ > >> - --disable-fluidsynth \ > >> + --without-shout \ > >> + --without-twolame \ > >> + --without-dca \ > >> + --without-dirac \ > >> + --without-schroedinger \ > >> + --without-quicksync \ > >> + --without-fluidsynth \ > > > Did you test these? > > > From a quick look: > > > ./configure --help | egrep 'a52|shout|twolame|dca|dirac|schroedinger|quicksync|fluidsynth' > > --enable-shout libshout output plugin [default=auto] > > --enable-twolame MPEG Audio Layer 2 encoder [default=auto] > > --enable-a52 A/52 support with liba52 (default enabled) > > --with-a52=PATH a52 headers and libraries > > --with-a52-tree=PATH a52dec tree for static linking > > --enable-dca DTS Coherent Acoustics support with libdca > > --enable-dirac dirac encoder [default=auto] > > --enable-schroedinger dirac decoder and encoder using schroedinger > > --enable-quicksync Intel QuickSync MPEG4-Part10/MPEG2 (aka H.264/H.262) > > --enable-fluidsynth MIDI synthetiser with libfluidsynth [default=auto] > > > So they all seem to be of the --enable / --disable form and not --with / --without. > > Ahh, now I get it. Our autoreconf somehow converts all those --enable / > --disable to --with / --without. > > Anybody that has any idea why this is so? It quite unfortunate as we > will have to change all of this back once we bump the vlc version and no > longer need VLC_AUTORECONF = YES. OK, I got it. VLC defines their own version of PKG_WITH_MODULES in m4/with_pkg.m4. However, our autoreconf takes the one from host/usr/share/aclocal/pkg.m4 (which comes from host-pkgconf). The two implementations are identical, except for replacing the enable/disable with with/without. pkg-config itself currently doesn't have this macro, so it's not very likely that VLC will use the "standard" one from pkgconf in the short term. So I think it's OK to do this enable->with change, but adding a comment that this changes when AUTORECONF is removed. Regards, Arnout
>>>>> "Simon" == Simon Dawson <spdawson@gmail.com> writes: > Fix a large number of incorrect configure options for vlc. > Configure warnings reported by Arnout Vandecappelle, in his analysis of vlc > autobuild failures. Committed with the commit message extended to explain that this is caused by our autoreconfm thanks.
diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk index 0e76e11..9bcedd1 100644 --- a/package/vlc/vlc.mk +++ b/package/vlc/vlc.mk @@ -14,23 +14,23 @@ VLC_AUTORECONF = YES VLC_CONF_OPT += \ --disable-a52 \ - --disable-shout \ - --disable-twolame \ - --disable-dca \ - --disable-dirac \ - --disable-schroedinger \ - --disable-quicksync \ - --disable-fluidsynth \ + --without-shout \ + --without-twolame \ + --without-dca \ + --without-dirac \ + --without-schroedinger \ + --without-quicksync \ + --without-fluidsynth \ --disable-zvbi \ - --disable-kate \ - --disable-caca \ + --without-kate \ + --without-caca \ --disable-jack \ - --disable-samplerate \ - --disable-chromaprint \ - --disable-goom \ + --without-samplerate \ + --without-chromaprint \ + --without-goom \ --disable-projectm \ --disable-vsxu \ - --disable-mtp \ + --without-mtp \ --without-opencv # Set powerpc altivec appropriately @@ -49,10 +49,10 @@ endif # bonjour support needs avahi-client, which needs avahi-daemon and dbus ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yyy) -VLC_CONF_OPT += --enable-bonjour +VLC_CONF_OPT += --with-bonjour VLC_DEPENDENCIES += avahi dbus else -VLC_CONF_OPT += --disable-bonjour +VLC_CONF_OPT += --without-bonjour endif ifeq ($(BR2_PACKAGE_DBUS),y) @@ -96,10 +96,10 @@ VLC_CONF_OPT += --disable-swscale endif ifeq ($(BR2_PACKAGE_FLAC),y) -VLC_CONF_OPT += --enable-flac +VLC_CONF_OPT += --with-flac VLC_DEPENDENCIES += flac else -VLC_CONF_OPT += --disable-flac +VLC_CONF_OPT += --without-flac endif ifeq ($(BR2_PACKAGE_MESA3D),y) @@ -110,10 +110,10 @@ VLC_CONF_OPT += --disable-glx endif ifeq ($(BR2_PACKAGE_OPUS),y) -VLC_CONF_OPT += --enable-opus +VLC_CONF_OPT += --with-opus VLC_DEPENDENCIES += opus else -VLC_CONF_OPT += --disable-opus +VLC_CONF_OPT += --without-opus endif ifeq ($(BR2_PACKAGE_LIBASS),y) @@ -147,10 +147,10 @@ VLC_CONF_OPT += --disable-mod endif ifeq ($(BR2_PACKAGE_LIBMPEG2),y) -VLC_CONF_OPT += --enable-libmpeg2 +VLC_CONF_OPT += --with-libmpeg2 VLC_DEPENDENCIES += libmpeg2 else -VLC_CONF_OPT += --disable-libmpeg2 +VLC_CONF_OPT += --without-libmpeg2 endif ifeq ($(BR2_PACKAGE_LIBPNG),y) @@ -161,31 +161,31 @@ VLC_CONF_OPT += --disable-png endif ifeq ($(BR2_PACKAGE_LIBRSVG),y) -VLC_CONF_OPT += --enable-svg +VLC_CONF_OPT += --with-svg VLC_DEPENDENCIES += librsvg else -VLC_CONF_OPT += --disable-svg +VLC_CONF_OPT += --without-svg endif ifeq ($(BR2_PACKAGE_LIBTHEORA),y) -VLC_CONF_OPT += --enable-theora +VLC_CONF_OPT += --with-theora VLC_DEPENDENCIES += libtheora else -VLC_CONF_OPT += --disable-theora +VLC_CONF_OPT += --without-theora endif ifeq ($(BR2_PACKAGE_LIBUPNP),y) -VLC_CONF_OPT += --enable-upnp +VLC_CONF_OPT += --with-upnp VLC_DEPENDENCIES += libupnp else -VLC_CONF_OPT += --disable-upnp +VLC_CONF_OPT += --without-upnp endif ifeq ($(BR2_PACKAGE_LIBVORBIS),y) -VLC_CONF_OPT += --enable-vorbis +VLC_CONF_OPT += --with-vorbis VLC_DEPENDENCIES += libvorbis else -VLC_CONF_OPT += --disable-vorbis +VLC_CONF_OPT += --without-vorbis endif ifeq ($(BR2_PACKAGE_LIBV4L),y) @@ -203,10 +203,10 @@ VLC_CONF_OPT += --disable-xcb endif ifeq ($(BR2_PACKAGE_LIBXML2),y) -VLC_CONF_OPT += --enable-libxml2 +VLC_CONF_OPT += --with-libxml2 VLC_DEPENDENCIES += libxml2 else -VLC_CONF_OPT += --disable-libxml2 +VLC_CONF_OPT += --without-libxml2 endif ifeq ($(BR2_PACKAGE_LIVE555),y) @@ -254,10 +254,10 @@ VLC_CONF_OPT += --disable-sdl-image endif ifeq ($(BR2_PACKAGE_SPEEX),y) -VLC_CONF_OPT += --enable-speex +VLC_CONF_OPT += --with-speex VLC_DEPENDENCIES += speex else -VLC_CONF_OPT += --disable-speex +VLC_CONF_OPT += --without-speex endif ifeq ($(BR2_PACKAGE_TREMOR),y) @@ -268,10 +268,10 @@ VLC_CONF_OPT += --disable-tremor endif ifeq ($(BR2_PACKAGE_UDEV),y) -VLC_CONF_OPT += --enable-udev +VLC_CONF_OPT += --with-udev VLC_DEPENDENCIES += udev else -VLC_CONF_OPT += --disable-udev +VLC_CONF_OPT += --without-udev endif ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)