Re: Build firefox with system libvpx
On Wed, Mar 20, 2013 at 06:42:23PM -0400, Brad Smith wrote: On Fri, Apr 06, 2012 at 12:45:52PM +0200, David Coppa wrote: Thoughts? Could this please be resurrected and updated for the -current ports tree? My semi-objection from july still stand, with the same reasons : - the bundled libvpx is 1.0.0 - it's heavily patched, see http://hg.mozilla.org/releases/mozilla-release/file/tip/media/libvpx - it's totally untested If : - you test it in all possible situations against various webm files - you check that most of the patches are already present in our libvpx 1.1.0, or harmless Then i might reconsider it. I'm not comfortable with the cairo situation, so i dont want to reproduce it with vpx. Landry
Re: Build firefox with system libvpx
On Fri, Apr 06, 2012 at 12:45:52PM +0200, David Coppa wrote: Thoughts? Could this please be resurrected and updated for the -current ports tree? Index: Makefile === RCS file: /cvs/ports/www/mozilla-firefox/Makefile,v retrieving revision 1.198 diff -u -p -r1.198 Makefile --- Makefile 16 Mar 2012 21:31:24 - 1.198 +++ Makefile 6 Apr 2012 10:44:41 - @@ -10,6 +10,7 @@ MOZILLA_VERSION = 11.0 MOZILLA_BRANCH = release MOZILLA_PROJECT =firefox MOZILLA_CODENAME = browser +REVISION = 0 SO_VERSION = 30.0 # NOTE: Must bump minor version if any shlib's are removed from the @@ -38,7 +39,8 @@ CONFIGURE_STYLE = autoconf no-autoheader CONFIGURE_ARGS +=--enable-official-branding CONFIGURE_ARGS +=--with-system-libevent=/usr/ --disable-gconf CONFIGURE_ARGS +=--with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE} -WANTLIB += event +CONFIGURE_ARGS +=--with-system-libvpx=${LOCALBASE} +WANTLIB += event vpx .if ${MACHINE_ARCH:Msparc64} CONFIGURE_ARGS +=--disable-tracejit --disable-methodjit @@ -47,8 +49,10 @@ CONFIGURE_ARGS += --disable-tracejit --d # needed during make install BUILD_DEPENDS += archivers/unzip +LIB_DEPENDS += multimedia/libvpx=1.0.0 + # ensure we depend on cairo with tee backend enabled -LIB_DEPENDS =graphics/cairo=1.10.2p0 +LIB_DEPENDS += graphics/cairo=1.10.2p0 # --with-system-png=${LOCALBASE} # no system png : apng support not bundled in Index: patches/patch-configure_in === RCS file: patches/patch-configure_in diff -N patches/patch-configure_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-configure_in6 Apr 2012 10:44:41 - @@ -0,0 +1,43 @@ +$OpenBSD$ + +Build --with-system-libvpx is broken for libvpx-1.0.0 +(https://hg.mozilla.org/mozilla-central/rev/e73a68477cfd) + +--- configure.in.origThu Apr 5 12:43:43 2012 configure.in Thu Apr 5 12:44:54 2012 +@@ -5710,20 +5710,20 @@ if test -n $MOZ_WEBM; then + [MOZ_NATIVE_LIBVPX_DEC_TEST=1], + ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found])) + if test -n $MOZ_NATIVE_LIBVPX_DEC_TEST ; then +-AC_MSG_CHECKING([for libvpx version = v0.9.7]) +-dnl We need at least v0.9.7 to fix several crash bugs (for which we +-dnl had local patches prior to v0.9.7). ++AC_MSG_CHECKING([for libvpx version = v1.0.0]) ++dnl We need at least v1.0.0 to fix several crash bugs (for which we ++dnl had local patches prior to v1.0.0). + dnl + dnl This is a terrible test for the library version, but we don't + dnl have a good one. There is no version number in a public header, + dnl and testing the headers still doesn't guarantee we link against + dnl the right version. While we could call vpx_codec_version() at + dnl run-time, that would break cross-compiling. There are no +-dnl additional exported symbols between the v0.9.7 release and the +-dnl v0.9.6 one to check for. ++dnl additional exported decoder symbols between the v1.0.0 release ++dnl and the v0.9.7 one to check for. + AC_TRY_COMPILE([ + #include vpx/vpx_decoder.h +-#if !defined(VPX_CODEC_USE_INPUT_PARTITION) ++#if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS) + #error test failed. + #endif + ], +@@ -5734,7 +5734,7 @@ if test -n $MOZ_WEBM; then + MOZ_LIBVPX_INCLUDES=-I${LIBVPX_DIR}/include + MOZ_LIBVPX_LIBS=-L${LIBVPX_DIR}/lib -lvpx], + [AC_MSG_RESULT([no]) +- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])]) ++ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])]) + fi + CFLAGS=$_SAVE_CFLAGS + LDFLAGS=$_SAVE_LDFLAGS -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: Build firefox with system libvpx
On Fri, Apr 06, 2012 at 12:45:52PM +0200, David Coppa wrote: Thoughts? Yes, very much so. Please update the diff for -current. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Build firefox with system libvpx
Thoughts? Index: Makefile === RCS file: /cvs/ports/www/mozilla-firefox/Makefile,v retrieving revision 1.198 diff -u -p -r1.198 Makefile --- Makefile16 Mar 2012 21:31:24 - 1.198 +++ Makefile6 Apr 2012 10:44:41 - @@ -10,6 +10,7 @@ MOZILLA_VERSION = 11.0 MOZILLA_BRANCH = release MOZILLA_PROJECT = firefox MOZILLA_CODENAME = browser +REVISION = 0 SO_VERSION = 30.0 # NOTE: Must bump minor version if any shlib's are removed from the @@ -38,7 +39,8 @@ CONFIGURE_STYLE = autoconf no-autoheader CONFIGURE_ARGS += --enable-official-branding CONFIGURE_ARGS += --with-system-libevent=/usr/ --disable-gconf CONFIGURE_ARGS += --with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE} -WANTLIB += event +CONFIGURE_ARGS += --with-system-libvpx=${LOCALBASE} +WANTLIB += event vpx .if ${MACHINE_ARCH:Msparc64} CONFIGURE_ARGS += --disable-tracejit --disable-methodjit @@ -47,8 +49,10 @@ CONFIGURE_ARGS +=--disable-tracejit --d # needed during make install BUILD_DEPENDS += archivers/unzip +LIB_DEPENDS += multimedia/libvpx=1.0.0 + # ensure we depend on cairo with tee backend enabled -LIB_DEPENDS = graphics/cairo=1.10.2p0 +LIB_DEPENDS += graphics/cairo=1.10.2p0 # --with-system-png=${LOCALBASE} # no system png : apng support not bundled in Index: patches/patch-configure_in === RCS file: patches/patch-configure_in diff -N patches/patch-configure_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-configure_in 6 Apr 2012 10:44:41 - @@ -0,0 +1,43 @@ +$OpenBSD$ + +Build --with-system-libvpx is broken for libvpx-1.0.0 +(https://hg.mozilla.org/mozilla-central/rev/e73a68477cfd) + +--- configure.in.orig Thu Apr 5 12:43:43 2012 configure.in Thu Apr 5 12:44:54 2012 +@@ -5710,20 +5710,20 @@ if test -n $MOZ_WEBM; then + [MOZ_NATIVE_LIBVPX_DEC_TEST=1], + ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found])) + if test -n $MOZ_NATIVE_LIBVPX_DEC_TEST ; then +-AC_MSG_CHECKING([for libvpx version = v0.9.7]) +-dnl We need at least v0.9.7 to fix several crash bugs (for which we +-dnl had local patches prior to v0.9.7). ++AC_MSG_CHECKING([for libvpx version = v1.0.0]) ++dnl We need at least v1.0.0 to fix several crash bugs (for which we ++dnl had local patches prior to v1.0.0). + dnl + dnl This is a terrible test for the library version, but we don't + dnl have a good one. There is no version number in a public header, + dnl and testing the headers still doesn't guarantee we link against + dnl the right version. While we could call vpx_codec_version() at + dnl run-time, that would break cross-compiling. There are no +-dnl additional exported symbols between the v0.9.7 release and the +-dnl v0.9.6 one to check for. ++dnl additional exported decoder symbols between the v1.0.0 release ++dnl and the v0.9.7 one to check for. + AC_TRY_COMPILE([ + #include vpx/vpx_decoder.h +-#if !defined(VPX_CODEC_USE_INPUT_PARTITION) ++#if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS) + #error test failed. + #endif + ], +@@ -5734,7 +5734,7 @@ if test -n $MOZ_WEBM; then + MOZ_LIBVPX_INCLUDES=-I${LIBVPX_DIR}/include + MOZ_LIBVPX_LIBS=-L${LIBVPX_DIR}/lib -lvpx], + [AC_MSG_RESULT([no]) +- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])]) ++ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])]) + fi + CFLAGS=$_SAVE_CFLAGS + LDFLAGS=$_SAVE_LDFLAGS
Re: Build firefox with system libvpx
On Fri, Apr 06, 2012 at 12:45:52PM +0200, David Coppa wrote: Thoughts? If you make sure : - it works on ppc - it applies to seamonkey/thunderbird/fennec (ie goes to mozilla.port.mk) - we're not affected by any of the local patches mozilla applies on top of the bundled libvpx (grep patch media/libvpx/update.sh) - compile_errors.patch seems a candidate, stdint.patch too, dunno for bug696390.patch) Then i dont see a problem with it. Do you have a particular page to test the change ? Landry Index: Makefile === RCS file: /cvs/ports/www/mozilla-firefox/Makefile,v retrieving revision 1.198 diff -u -p -r1.198 Makefile --- Makefile 16 Mar 2012 21:31:24 - 1.198 +++ Makefile 6 Apr 2012 10:44:41 - @@ -10,6 +10,7 @@ MOZILLA_VERSION = 11.0 MOZILLA_BRANCH = release MOZILLA_PROJECT =firefox MOZILLA_CODENAME = browser +REVISION = 0 SO_VERSION = 30.0 # NOTE: Must bump minor version if any shlib's are removed from the @@ -38,7 +39,8 @@ CONFIGURE_STYLE = autoconf no-autoheader CONFIGURE_ARGS +=--enable-official-branding CONFIGURE_ARGS +=--with-system-libevent=/usr/ --disable-gconf CONFIGURE_ARGS +=--with-system-zlib=/usr/ --with-system-bz2=${LOCALBASE} -WANTLIB += event +CONFIGURE_ARGS +=--with-system-libvpx=${LOCALBASE} +WANTLIB += event vpx .if ${MACHINE_ARCH:Msparc64} CONFIGURE_ARGS +=--disable-tracejit --disable-methodjit @@ -47,8 +49,10 @@ CONFIGURE_ARGS += --disable-tracejit --d # needed during make install BUILD_DEPENDS += archivers/unzip +LIB_DEPENDS += multimedia/libvpx=1.0.0 + # ensure we depend on cairo with tee backend enabled -LIB_DEPENDS =graphics/cairo=1.10.2p0 +LIB_DEPENDS += graphics/cairo=1.10.2p0 # --with-system-png=${LOCALBASE} # no system png : apng support not bundled in Index: patches/patch-configure_in === RCS file: patches/patch-configure_in diff -N patches/patch-configure_in --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-configure_in6 Apr 2012 10:44:41 - @@ -0,0 +1,43 @@ +$OpenBSD$ + +Build --with-system-libvpx is broken for libvpx-1.0.0 +(https://hg.mozilla.org/mozilla-central/rev/e73a68477cfd) + +--- configure.in.origThu Apr 5 12:43:43 2012 configure.in Thu Apr 5 12:44:54 2012 +@@ -5710,20 +5710,20 @@ if test -n $MOZ_WEBM; then + [MOZ_NATIVE_LIBVPX_DEC_TEST=1], + ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found])) + if test -n $MOZ_NATIVE_LIBVPX_DEC_TEST ; then +-AC_MSG_CHECKING([for libvpx version = v0.9.7]) +-dnl We need at least v0.9.7 to fix several crash bugs (for which we +-dnl had local patches prior to v0.9.7). ++AC_MSG_CHECKING([for libvpx version = v1.0.0]) ++dnl We need at least v1.0.0 to fix several crash bugs (for which we ++dnl had local patches prior to v1.0.0). + dnl + dnl This is a terrible test for the library version, but we don't + dnl have a good one. There is no version number in a public header, + dnl and testing the headers still doesn't guarantee we link against + dnl the right version. While we could call vpx_codec_version() at + dnl run-time, that would break cross-compiling. There are no +-dnl additional exported symbols between the v0.9.7 release and the +-dnl v0.9.6 one to check for. ++dnl additional exported decoder symbols between the v1.0.0 release ++dnl and the v0.9.7 one to check for. + AC_TRY_COMPILE([ + #include vpx/vpx_decoder.h +-#if !defined(VPX_CODEC_USE_INPUT_PARTITION) ++#if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS) + #error test failed. + #endif + ], +@@ -5734,7 +5734,7 @@ if test -n $MOZ_WEBM; then + MOZ_LIBVPX_INCLUDES=-I${LIBVPX_DIR}/include + MOZ_LIBVPX_LIBS=-L${LIBVPX_DIR}/lib -lvpx], + [AC_MSG_RESULT([no]) +- AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])]) ++ AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])]) + fi + CFLAGS=$_SAVE_CFLAGS + LDFLAGS=$_SAVE_LDFLAGS