First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 42414
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: media-video herd <media-video@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stefan Briesenick <sbriesen@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
mjpegtools-1.6.2.ebuild.patch mjpegtools-1.6.2.ebuild.patch patch Stefan Briesenick 2004-02-21 13:40 0000 763 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 42414 depends on: Show dependency tree
Bug 42414 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-02-21 13:38 0000
Hi!

I patched media-video/mjpegtools-1.6.2.ebuild to do the following:

1. new USE flag 'yv12' to enable DV PAL YV12 read support
2. better CFLAGS/CXXFLAGS handling (-march=i686 problem)
   now compiles only with specified -mcpu and -march flags!

take my included patch and incorporate it into official portage. It compiles and works great!

thanks in advance.

Reproducible: Always
Steps to Reproduce:




--- /usr/portage/media-video/mjpegtools/mjpegtools-1.6.2.ebuild 2004-02-07 
21:09:41.000000000 +0100 
+++ mjpegtools-1.6.2.ebuild     2004-02-21 22:25:15.251619448 +0100 
@@ -11,7 +11,7 @@ 
 LICENSE="as-is" 
 SLOT="1" 
 KEYWORDS="~x86 ~ppc ~amd64" 
-IUSE="gtk avi dv quicktime sdl X 3dnow mmx sse" 
+IUSE="gtk avi dv yv12 quicktime sdl X 3dnow mmx sse" 
 
 DEPEND="media-libs/jpeg 
        >=sys-apps/sed-4 
@@ -52,6 +52,9 @@ 
 
        if [ "`use dv`" ] ; then 
                myconf="${myconf} --with-dv=/usr" 
+        if [ "`use yv12`" ] ; then 
+               myconf="${myconf} --with-dv-yv12" 
+           fi 
        fi 
 
        if [ "`use x86`" ]; then 
@@ -74,7 +77,7 @@ 
                done 
        fi 
 
-       emake -j1 || die "compile problem" 
+       emake -j1 CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" || die "compile 
problem" 
 } 
 
 src_install() {

------- Comment #1 From Stefan Briesenick 2004-02-21 13:40:27 0000 -------
Created an attachment (id=26064) [edit]
mjpegtools-1.6.2.ebuild.patch

------- Comment #2 From Stefan Briesenick 2004-03-12 06:21:24 0000 -------
any chance to get this into portage?

thanks!

------- Comment #3 From Patrick Kursawe 2004-03-12 06:42:51 0000 -------
Quite good chance, I'd say. Have a look at the buglist assigned to
media-video... please be patient.

------- Comment #4 From Stefan Briesenick 2004-04-11 16:22:11 0000 -------
please don't forget this "bug". ;-)

remind, remind, remind...

------- Comment #5 From Heinrich Wendel (RETIRED) 2004-04-17 04:36:19 0000 -------
+       emake -j1 CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" || die "compile 
problem" 

why do we need that?

------- Comment #6 From Stefan Briesenick 2004-04-17 12:58:26 0000 -------
> emake -j1 CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" || die "compile problem" 

this is needed to "fix" the CFLAGS. The Configure/Makefile makes some stupid additions (ie -march) to your supplied CFLAGS. This way I enforce *MY* CFLAGS (from /etc/make.conf).

believe me, it works! ;-)

------- Comment #7 From Stefan Briesenick 2004-04-17 13:13:35 0000 -------
ok, I try to explain the "emake hack".

there're some stupid less intelligent configure-scripts out there. Not only the one of mjpegtools. You say CFLAGS="-march=athlon ..." and the configure makes: CFLAGS="-march=pentium -O3 ... -march=athlon ..." bla blub. ;-)

If I see such stupid habbit, I check the created Makefile. Very often, you can just overwrite it, sometimes you have to add some other stuff. But you can always overwrite the XYZ=ABC settings in the Makefile by simply provide them as options to 'make'. mjpegtools is easy, no futher options needed, you can really overwrite the CFLAGS/CXXFLAGS in the created Makefile with the flags YOU want (yours in /etc/make.conf).

so: make CFLAGS="$CFLAGS" enforces our CFLAGS.

just try it! try to emerge with and without this little trick and watch the compiler output. it really works like a charm!

------- Comment #8 From Stefan Briesenick 2004-04-22 15:12:13 0000 -------
hmmm... no answer? what now?

------- Comment #9 From Patrick Kursawe 2004-04-23 03:37:01 0000 -------
No time next week, sorry. Perhaps in May... I know this must be frustrating for
you.

------- Comment #10 From Stefan Briesenick 2004-05-13 09:49:55 0000 -------
remind again :-/

------- Comment #11 From Patrick Kursawe 2004-05-13 22:40:11 0000 -------
*sigh* moved out of my focus again. Will check on monday.

------- Comment #12 From Patrick Kursawe 2004-05-17 02:28:19 0000 -------
Finally. -r2 should be there soon. Thanks for input and patience :-)

First Last Prev Next    No search results available      Search page      Enter new bug