Bug 748115 - automoc4 reports wrong version
Summary: automoc4 reports wrong version
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: automoc
Version: 14
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-22 05:00 UTC by George R. Goffe
Modified: 2012-08-16 15:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 15:13:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
flat file containing the output from various commands relating to automoc4 (8.24 KB, application/octet-stream)
2011-10-25 05:37 UTC, George R. Goffe
no flags Details

Description George R. Goffe 2011-10-22 05:00:03 UTC
Description of problem:

/usr/bin/automoc4 from automoc-1.0-0.14.rc3.fc13.x86_64.rpm reports it's version as automoc4 0.9.88 causing build of mplayer to fail.


Version-Release number of selected component (if applicable):


How reproducible: always


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Build log from mplayer:

/tools/ktorrent/buildkt
module () {  eval `/usr/bin/modulecmd bash $*`
}
#!/bin/bash -xv

 cd /tools/ktorrent
+ cd /tools/ktorrent

 ./updkt
+ ./updkt
module () {  eval `/usr/bin/modulecmd bash $*`
}
#!/bin/bash -xv

 cd /tools/ktorrent
+ cd /tools/ktorrent

 cd  libktorrent
+ cd libktorrent
 git pull --verbose
+ git pull --verbose
From git://anongit.kde.org/libktorrent
 = [up to date]      1.0        -> origin/1.0
 = [up to date]      1.1        -> origin/1.1
 = [up to date]      master     -> origin/master
Already up-to-date.

 cd  ../ktorrent
+ cd ../ktorrent
 git pull --verbose
+ git pull --verbose
From git://anongit.kde.org/ktorrent
 = [up to date]      1.0        -> origin/1.0
 = [up to date]      1.1        -> origin/1.1
 = [up to date]      1.2        -> origin/1.2
 = [up to date]      2.0        -> origin/2.0
 = [up to date]      2.1        -> origin/2.1
 = [up to date]      3.0        -> origin/3.0
 = [up to date]      3.1        -> origin/3.1
 = [up to date]      3.2        -> origin/3.2
 = [up to date]      3.3        -> origin/3.3
 = [up to date]      4.0        -> origin/4.0
 = [up to date]      4.1        -> origin/4.1
 = [up to date]      master     -> origin/master
Already up-to-date.

 exit 0
+ exit 0

 mkdir  libktorrent/build 2>/dev/null
+ mkdir libktorrent/build
 cd  libktorrent/build
+ cd libktorrent/build
 cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
kde4-config --prefix
++ kde4-config --prefix
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
 make clean
+ make clean
 make depend
+ make depend
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [depend] Error 1
 make
+ make
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
 make install
+ make install
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1

 mkdir  ../../ktorrent/build 2>/dev/null
+ mkdir ../../ktorrent/build
 cd  ../../ktorrent/build
+ cd ../../ktorrent/build
 cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
kde4-config --prefix
++ kde4-config --prefix
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
 make clean
+ make clean
 make depend
+ make depend
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [depend] Error 1
 make
+ make
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
 make install
+ make install
-- Found Qt-Version 4.7.4 (using /usr/bin/qmake-qt4)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:469 (message):
  Your version of automoc4 is too old.  You have 0.9.83, you need at least
  0.9.88
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1

 exit 0
+ exit 0

Comment 1 Rex Dieter 2011-10-23 21:38:54 UTC
I'm not sure what the problem is here, but I'm pretty sure it's not automoc.

$ /usr/bin/automoc4 --version
automoc4 0.9.88

$ rpm -q -f /usr/bin/automoc4
automoc-1.0-0.14.rc3.fc13.x86_64

You sure you aren't missing some other dependency?  or have some other copy/version of automoc4 installed?

Comment 2 Kevin Kofler 2011-10-23 23:01:29 UTC
Huh, MPlayer bundles KTorrent now?

In any case, FindKDE4Internal.cmake has this:
> if (NOT AUTOMOC4_VERSION)
>    # the version macro was added for 0.9.84
>    set(AUTOMOC4_VERSION "0.9.83")
> endif (NOT AUTOMOC4_VERSION)
so I suspect automoc was not found at all. Are you sure the automoc package is installed? If this is an RPM build with mock, make sure automoc or automoc4 (a virtual Provides provided by automoc) is listed as a BuildRequires of your package.

Comment 3 George R. Goffe 2011-10-24 22:02:07 UTC
Hi,

I'm completely embarrassed now. I misspoke myself. I should have said ktorrent instead of mplayer. Oops.

As for the other questions. I'll have to wait til I get home to answer them.

Shouldn't automoc4 return the version of the rpm that it's in?

George...

Comment 4 George R. Goffe 2011-10-25 05:37:34 UTC
Created attachment 530000 [details]
flat file containing the output from various commands relating to automoc4

Comment 5 George R. Goffe 2011-10-25 05:38:57 UTC
Could this bug be related to x86 vs x86_64. I just re-installed this system a few days ago from x86 to x86_64.

Comment 6 Kevin Kofler 2011-10-25 10:49:47 UTC
> I'm completely embarrassed now. I misspoke myself. I should have said ktorrent
> instead of mplayer. Oops.

Are you aware that we already package KTorrent in Fedora? Are you sure you need KTorrent git master?

> Shouldn't automoc4 return the version of the rpm that it's in?

1.0 RC3 and 0.9.88 is the same version. The internal version had already been 1.0 before they started doing 0.9.x tarballs (but the version wasn't visible to CMake before 0.9.83, so the version going backwards wasn't a problem there) and we wanted to avoid having to bump Epoch, so we used 1.0 RC3 as the versioning.

There was supposed to be an 1.0 release, but upstream dropped the ball on that. :-/ (I guess the all too common "1.0 scare" phenomenon hit.) We might want to go with Epoch 1 and Version 0.9.88 for this package, but we haven't had to touch automoc at all for a long time now, so the Epoch-Version-Release (EVR) we picked basically stuck. (That number "14" and the ".fc13" disttag in the Release tag are getting bumped by automated mass rebuilds or manual rebuilds only, the last actual change to the package was the upgrade from 0.9.87/RC2 to 0.9.88/RC3 in January 2009.)

Comment 7 Kevin Kofler 2011-10-25 10:52:00 UTC
> Could this bug be related to x86 vs x86_64.

Yes, you probably have to pass -DLIB_SUFFIX=64 to cmake (our %cmake and %cmake_kde4 RPM macros do this automatically).

I guess we should be setting LIB_SUFFIX inside CMake itself on x86_64. It's really needed for all builds, not just RPM builds.

Comment 8 George R. Goffe 2011-10-26 01:18:03 UTC
Kevin,

I'll give this a try.

I was initially experiencing a large number of crashes with the out of the box ktorrent. In working with the developer, I started building straight out of his repository.

I like helping improve "products" and finding bugs so I started using his repository. I build almost every night, whenever Joris updates the repository.

I do this with other software where the people are receptive to someone finding oddities with their and other's software. I get to learn things too... a definite win for me. Alas, sometimes, people aren't that receptive. Sigh.

I am certainly aware that Ktorrent is packaged by Fedora. I'm using the latest version now since the build process is broken for me. THANK YOU FOR the hints!

Regards,

George...

Comment 9 Kevin Kofler 2011-10-26 01:22:28 UTC
Have you tried passing -DLIB_SUFFIX=64 to cmake as I suggested?

Comment 10 George R. Goffe 2011-10-26 03:46:46 UTC
Kevin,

I just tried it... same results. Here's the script I've been using.

George...


#!/bin/bash -xv

 cd /tools/ktorrent

 which automoc

 automoc --version

 which automoc4

 automoc4 --version

 ./updkt

 mkdir  libktorrent/build 2>/dev/null
 cd  libktorrent/build
 cmake -DLIB_SUFFIX=64 -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
 make clean
 make depend
 make
 make install

 mkdir  ../../ktorrent/build 2>/dev/null
 cd  ../../ktorrent/build
 cmake -DLIB_SUFFIX=64 -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
 make clean
 make depend
 make
 make install

 exit 0

Comment 11 George R. Goffe 2011-10-31 11:46:39 UTC
Kevin,

I don't know how to proceed with this problem. Could I get some help please?

I opened a kde/ktorrent bug 284913 and got a response from Joris that I needed to update automoc.

In an experiment, I get the same result with /usr/bin/automoc4 removed (renamed).

Regards,

George...

Comment 12 Kevin Kofler 2011-10-31 11:51:46 UTC
Try also passing -DLIB_INSTALL_DIR:PATH=/usr/lib64

Comment 13 George R. Goffe 2011-11-07 10:09:11 UTC
Kevin,

I am still getting this failure.

I tried renaming automoc4 on a lark. This did not change the behavior of this "bug" at all.

Any thoughts on how I should proceed?

Regards,

George...

Comment 14 Rex Dieter 2011-11-07 12:44:42 UTC
rm CMakeCache.txt ?

Comment 15 Rex Dieter 2011-11-07 12:45:43 UTC
Just did a fresh git clone of ktorrent repo, and a simple 
mkdir build
cd build
cmake ..

worked fine for me on my my f16/x86_64 box.

Comment 16 George R. Goffe 2011-11-08 08:02:15 UTC
Rex,

You are the MASTER! I bow to you.

No kidding. Removing CMakeCache.txt from ktorrent and libktorrent worked like a charm!

How did you know?

THANKS TO YOU!

George...

Comment 17 Kevin Kofler 2011-11-08 11:42:15 UTC
> How did you know?

From personal bad experience, I guess. ;-)

I've had to delete CMakeCache.txt every so often as well, I just didn't realize this could be the problem here.

Comment 18 Fedora End Of Life 2012-08-16 15:13:48 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.