From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 19 00:10:03 2008 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9713C106567A for ; Wed, 19 Nov 2008 00:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 800B78FC21 for ; Wed, 19 Nov 2008 00:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mAJ0A334087486 for ; Wed, 19 Nov 2008 00:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mAJ0A3PS087485; Wed, 19 Nov 2008 00:10:03 GMT (envelope-from gnats) Date: Wed, 19 Nov 2008 00:10:03 GMT Message-Id: <200811190010.mAJ0A3PS087485@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Jochen Baier Cc: Subject: re: ports/124501: multimedia/gstreamer-ffmpeg version 0.10.4_1 compile fails (gnome-config, gstreamer-check, many config errors) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jochen Baier List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2008 00:10:03 -0000 The following reply was made to PR ports/124501; it has been noted by GNATS. From: Jochen Baier To: bug-followup@FreeBSD.org, rannumgen@globaleyes.net, email@jochen-baier.de Cc: Subject: re: ports/124501: multimedia/gstreamer-ffmpeg version 0.10.4_1 compile fails (gnome-config, gstreamer-check, many config errors) Date: Wed, 19 Nov 2008 00:52:23 +0100 This is a multi-part message in MIME format. --------------010308090507080305010405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit hi, the configure script from gst-ffmpeg-0.10.4/gst-libs/ext/ffmpeg only accepts a few options, if an other option is passed the script will do weird things. For example if "-march=athlon64" if passed (from the configure file in gst-ffmpeg-0.10.4) the script will convert it to '_march=-march=athlon64' and set this to CFLAGS. If now the configure script starts the gcc check this test will file because gcc do not know this option. Fix: ignore all options which are not allowed. The "-march" option will anyway work cause it is set in CFLAGS correctly. patch attached. jochen --------------010308090507080305010405 Content-Type: text/x-patch; name="gstreamer-ffmpeg.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gstreamer-ffmpeg.patch" +++ /usr/ports/multimedia/gstreamer-ffmpeg/files/patch-configure 2008-11-19 00:04:13.000000000 +0100 @@ -0,0 +1,32 @@ +--- gst-libs/ext/ffmpeg/configure 2008-05-22 01:05:32.000000000 +0200 ++++ gst-libs/ext/ffmpeg/configure 2008-11-18 23:57:52.000000000 +0100 +@@ -997,7 +997,7 @@ + $OUTDEV_LIST \ + + die_unknown(){ +- echo "Unknown option \"$1\"." ++ echo "Unknown option \"$@\"." + echo "See $0 --help for available options." + + } +@@ -1047,13 +1047,18 @@ + ;; + --help|-h) show_help + ;; ++ + *) +- optname="${opt%=*}" ++ optname="${opt%%=*}" + optname="${optname#--}" + optname=$(echo "$optname" | sed 's/-/_/g') +- is_in $optname $CMDLINE_SET || die_unknown $opt ++ if is_in $optname $CMDLINE_SET; then + eval $optname='$optval' ++ else ++ die_unknown $opt ++ fi + ;; ++ + esac + done + --------------010308090507080305010405--