Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21804 - avifile refuses to build without qt installed
Summary: avifile refuses to build without qt installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 21795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-27 20:46 UTC by Robert Coie (RETIRED)
Modified: 2003-06-10 12:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated ebuild file as proposed in the initial comment. (avifile-0.7.37.20030522-r1.ebuild,4.17 KB, text/plain)
2003-06-02 07:50 UTC, Daniel Steinberger
Details
a patch against the current ebuild to my proposed -r1 version (avifile-0.7.37.20030522-r1.ebuild.diff,485 bytes, patch)
2003-06-02 07:54 UTC, Daniel Steinberger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Coie (RETIRED) gentoo-dev 2003-05-27 20:46:37 UTC
Even with USE="-qt", avifile refuses to build for me unless qt is installed.
The problem seems to stem from the fact that it still tries to compile some 
things underneath samples/ that require qt, even when configured with --without-qt.

I am sure there are many more elegant ways to solve the problem, but one quick
& dirty way is to add a src_unpack function that looks like this:

unpack ${A}
use qt || sed -i 's/qt[a-z]*//g' ${S}/samples/Makefile.am
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-05-28 03:22:06 UTC
*** Bug 21795 has been marked as a duplicate of this bug. ***
Comment 2 Claes Mogren 2003-05-28 04:48:33 UTC
I have qt installed (3.1.2-r3), but also have -qt in my USE-flags since I don't use KDE. It's always that ccap.cpp that fails. Even with simple CFLAGS.

It's not an application I've use that much anyway, but still it's annoying that it doesn't compile.
Comment 3 Jordan 2003-05-29 20:12:09 UTC
I was about to file another bug but noticed this. I have a giant output of errors in which ccap is mentioned.  This didn't happen with the previous version. I'm not sure if this is related or not but I figure it won't hurt to post it.

In file included from capproc.h:4,
                 from capproc.cpp:2:
../../include/avm_stl.h: In member function `const Type&
   avm::qring<Type>::back() const':
../../include/avm_stl.h:96: warning: no return statement in function returning
   non-void
In file included from ccap.h:1,
                 from ccap.cpp:6:
../../include/avm_stl.h: In member function `const Type&
   avm::qring<Type>::back() const':
../../include/avm_stl.h:96: warning: no return statement in function returning
   non-void
In file included from capproc.cpp:27:
v4lwindow.h:4:21: qwidget.h: No such file or directory
v4lwindow.h:5:20: qtimer.h: No such file or directory
In file included from capproc.cpp:27:
v4lwindow.h: At global scope:
v4lwindow.h:30: syntax error before `{' token
v4lwindow.h:36: syntax error before `*' token
v4lwindow.h:37: destructors must be member functions
v4lwindow.h: In function `void setAutoRecord()':
v4lwindow.h:39: `m_bAutoRecord' undeclared (first use this function)
v4lwindow.h:39: (Each undeclared identifier is reported only once for each
   function it appears in.)
v4lwindow.h: In function `void unregisterCapDialog()':
v4lwindow.h:40: `m_pCapDialog' undeclared (first use this function)
v4lwindow.h: In function `ClosedCaption* getcc()':
v4lwindow.h:43: `m_pCC' undeclared (first use this function)
v4lwindow.h: At global scope:
v4lwindow.h:44: syntax error before `)' token
v4lwindow.h:45: `Modes' was not declared in this scope
v4lwindow.h:45: syntax error before `)' token
v4lwindow.h:51: `QString' was not declared in this scope
v4lwindow.h:51: syntax error before `)' token
v4lwindow.h:56: syntax error before `public'
v4lwindow.h:81: syntax error before `protected'
v4lwindow.h:89: `XEvent' was not declared in this scope
v4lwindow.h:89: syntax error before `)' token
v4lwindow.h:89: virtual outside class declaration
v4lwindow.h:90: `QFocusEvent' was not declared in this scope
v4lwindow.h:90: syntax error before `)' token
v4lwindow.h:90: virtual outside class declaration
v4lwindow.h:91: `QFocusEvent' was not declared in this scope
v4lwindow.h:91: syntax error before `)' token
v4lwindow.h:91: virtual outside class declaration
v4lwindow.h:92: `QHideEvent' was not declared in this scope
v4lwindow.h:92: syntax error before `)' token
v4lwindow.h:92: virtual outside class declaration
v4lwindow.h:93: `QKeyEvent' was not declared in this scope
v4lwindow.h:93: syntax error before `)' token
v4lwindow.h:93: virtual outside class declaration
v4lwindow.h:94: `QMouseEvent' was not declared in this scope
v4lwindow.h:94: syntax error before `)' token
v4lwindow.h:94: virtual outside class declaration
v4lwindow.h:95: `QMoveEvent' was not declared in this scope
v4lwindow.h:95: syntax error before `)' token
v4lwindow.h:95: virtual outside class declaration
v4lwindow.h:96: `QPaintEvent' was not declared in this scope
v4lwindow.h:96: syntax error before `)' token
v4lwindow.h:96: virtual outside class declaration
v4lwindow.h:97: `QResizeEvent' was not declared in this scope
v4lwindow.h:97: syntax error before `)' token
v4lwindow.h:97: virtual outside class declaration
v4lwindow.h:98: `QShowEvent' was not declared in this scope
v4lwindow.h:98: syntax error before `)' token
v4lwindow.h:98: virtual outside class declaration
v4lwindow.h:121: 'Modes' is used as a type, but is not defined as a type.
v4lwindow.h:122: syntax error before `private'
v4lwindow.h:129: `AviCapDialog*m_pCapDialog' used prior to declaration
v4lwindow.h:130: `ClosedCaption*m_pCC' used prior to declaration
v4lwindow.h:132: 'QTimer' is used as a type, but is not defined as a type.
v4lwindow.h:133: 'QTimer' is used as a type, but is not defined as a type.
v4lwindow.h:134: 'QTimer' is used as a type, but is not defined as a type.
v4lwindow.h:135: 'QTimer' is used as a type, but is not defined as a type.
v4lwindow.h:145: `bool m_bAutoRecord' used prior to declaration
v4lwindow.h:153: syntax error before `public'
In file included from capproc.cpp:27:
v4lwindow.h:156: syntax error before `}' token
make[3]: *** [capproc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/avifile-0.7.37.20030522/work/avifile0.7-0.7.37/samples/qtvidcap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.37.20030522/work/avifile0.7-0.7.37/samples/qtvidcap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.37.20030522/work/avifile0.7-0.7.37/samples'
make: *** [all-recursive] Error 1
Comment 4 Tobias Klausmann (RETIRED) gentoo-dev 2003-05-30 08:31:40 UTC
I have the exactly same problem: USE contains -qt but avifile still wants to compile something with it. As a result I can't update dvdrip, which requires avifile-0.7.37.20030522.
Comment 5 Jonathan Hitchcock 2003-05-30 09:59:32 UTC
I have "-qt" in my USE flags, and avifile failed, as well, although I do have x11-libs/qt-3.1.2-r3 installed.

I added "qt" to my USE flags, and did an "emerge -upv --deep world", and "x11-libs/qt-2.3.2-r1" was listed as a dependency.  Installing this made avifile install perfectly.

Dependencies need fixing?
Comment 6 Claes Mogren 2003-06-01 16:12:56 UTC
Mine compiled when I took away the - infront of qt.

# USE="alsa cdr dga gtk2 -kde qt mozilla X mmx 3dnow" emerge -uv avifile
Comment 7 Daniel Steinberger 2003-06-02 07:50:56 UTC
Created attachment 12676 [details]
Updated ebuild file as proposed in the initial comment.

This ebuild is a proposal for an -r1 version of the ebuild. it simply
incorporates the changes proposed in the initial comment and in
http://forums.gentoo.org/viewtopic.php?t=56124. putting this into my
portage-overlay, generating a digest for it and emerging it worked perfectly
fine for me.
Comment 8 Daniel Steinberger 2003-06-02 07:54:09 UTC
Created attachment 12677 [details, diff]
a patch against the current ebuild to my proposed -r1 version

universal patch against the current ebuild:

--- /usr/portage/media-video/avifile/avifile-0.7.37.20030522.ebuild    
2003-05-22 21:15:00.000000000 +0200
+++ /usr/portage-overlay/media-video/avifile/avifile-0.7.37.20030522-r1.ebuild 
2003-06-02 07:37:24.000000000 +0200
@@ -37,6 +37,11 @@
	alsa? ( >=media-libs/alsa-lib-0.9.0_rc2 )
	esd? ( >=media-sound/esound-0.2.28 )"
 
+src_unpack() {
+	unpack ${A}
+	use qt || sed -i 's/qt[a-z]*//g' ${S}/samples/Makefile.am
+	}
+
 src_compile() {
	local myconf="--enable-oss"
	local kdepre=""
Comment 9 Philip Walls (RETIRED) gentoo-dev 2003-06-05 14:39:39 UTC
This fixes the same problem for me and 3 friends (we all use -qt :-P)
Comment 10 William Pearson 2003-06-06 20:35:08 UTC
The submitted patch works for me as well. The output of my failed ebuild was the same as the one previously submitted. After applying the patch the ebuild successfully completed. My use flags include "-kde -qt"
Comment 11 Tony Vroon (RETIRED) gentoo-dev 2003-06-08 18:39:50 UTC
-qt and -kde in USE flags, the included patch works for me.
Comment 12 Chris Irwin 2003-06-10 10:37:16 UTC
Proposed patch works for me. This patch should be included.

Originally failed as part of 'emerge gnome' immediately following stage 1 build with ACCEPT_KEYWORDS="~x86".
Comment 13 Alastair Tse (RETIRED) gentoo-dev 2003-06-10 12:23:39 UTC
i wonder why this has been sitting here like this for so long. i've stepped in and fixed this in cvs. thanks Daniel for the patch.