Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268618 - media-video/avidemux 2.4.4 won't compile with cmake 2.6.4
Summary: media-video/avidemux 2.4.4 won't compile with cmake 2.6.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
: 268569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-04 15:15 UTC by DarkNRG
Modified: 2009-05-08 12:52 UTC (History)
8 users (show)

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


Attachments
build log (build.log,14.36 KB, text/plain)
2009-05-04 15:16 UTC, DarkNRG
Details
avidemux-2.4.4-cmake.patch (avidemux-2.4.4-cmake.patch,820 bytes, patch)
2009-05-06 11:16 UTC, Martin Jansa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DarkNRG 2009-05-04 15:15:26 UTC
avidemux 2.4.4 (and svn version) compiles fine with cmake 2.6.3 (and 2.6.3-r1) but fails with cmake 2.6.4:
"
CMake Error at avidemux/CMakeLists.txt:95 (ADD_SUBDIRECTORY):
  The binary directory

    /var/tmp/portage/media-video/avidemux-2.4.4/work/avidemux_build/avidemux/ADM_filter

  is already used to build another source directory, so it cannot be used to
  build source directory

    /var/tmp/portage/media-video/avidemux-2.4.4/work/avidemux_2.4.4/avidemux/ADM_filter

  Specify a unique binary directory name.
"


Reproducible: Always

Steps to Reproduce:
Comment 1 DarkNRG 2009-05-04 15:16:33 UTC
Created attachment 190314 [details]
build log

See attachment for a complete build log.
Comment 2 Chris Smith 2009-05-04 15:21:41 UTC
verified here
Comment 3 MaratIK 2009-05-04 18:11:41 UTC
see bug 268569
Comment 4 MaratIK 2009-05-05 08:01:00 UTC
The same for avidemux 2.4.3 too.
Comment 5 Anton S. Ustyuzhanin 2009-05-05 13:14:48 UTC
Same here. I've masked =dev-util/cmake-2.6.4 to compile avidemux-2.4.4
Comment 6 DaggyStyle 2009-05-05 13:34:16 UTC
*** Bug 268569 has been marked as a duplicate of this bug. ***
Comment 7 peteru 2009-05-06 06:52:16 UTC
The problem is in avidemux/CMakeLists.txt where ADM_filter is listed at line 80 and again at line 87. Removing the second occurrence should help.
Comment 8 Igor Nemilentsev 2009-05-06 08:11:35 UTC
(In reply to comment #7)
> The problem is in avidemux/CMakeLists.txt where ADM_filter is listed at line 80
> and again at line 87. Removing the second occurrence should help.
> 
After removing the second occurrence ADM_filter have happened compilation error.
Comment 9 Martin Jansa 2009-05-06 11:15:44 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > The problem is in avidemux/CMakeLists.txt where ADM_filter is listed at line 80
> > and again at line 87. Removing the second occurrence should help.
> > 
> After removing the second occurrence ADM_filter have happened compilation
> error.
> 

It worked for me with avidemux-2.4.4-cmake.patch in files/ and
epatch "${FILESDIR}"/${P}-cmake.patch in ebuild's src_prepare.

The ADM_filter is needed twice in library list (at least I didn't found proper order of libraries to link it together successfully), so I duplicated that set once with double ADM_filter for libraries and once without second ADM_filter for cmake subdirs.

It was built successfully with gcc-4.3.3, 

with gcc-4.4* i get this build error:
http://lists.rpmfusion.org/pipermail/rpmfusion-developers/2009-February/003870.html
Comment 10 Martin Jansa 2009-05-06 11:16:20 UTC
Created attachment 190492 [details, diff]
avidemux-2.4.4-cmake.patch
Comment 11 renato gallo 2009-05-06 17:49:02 UTC
bug confirmed will test the patch

(In reply to comment #10)
> Created an attachment (id=190492) [edit]
> avidemux-2.4.4-cmake.patch
> 

Comment 12 Ben de Groot (RETIRED) gentoo-dev 2009-05-08 12:52:31 UTC
Fixed in 2.4.4-r1. Thanks for your contributions!