| Summary: | media-video/avidemux-2.6.1: make -j7 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++, make: *** No targets specified and no makefile found. Stop. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Tom Wijsman (TomWij) (RETIRED) <tomwij> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | media-video, mplichta, throw_away_2002 |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
/var/tmp/portage/media-video/avidemux-2.6.1/temp/build.log
avidemux-2.6.1.ebuild |
||
|
Description
Juergen Rose
2013-03-12 09:18:49 UTC
Thank you for reporting this. > CMake Error at /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/cmake/admFFmpegUtil.cmake:2 (FILE): file Internal CMake error when trying to open file: /usr/include/avidemux/2.6/libavcodec/version.h for reading. Odd, it is trying to use something from /usr/include/, this shouldn't happen; I think there is a conflict because you currently have 2.6 installed, as a temporary fix you could try to unmerge avidemux before emerging it again. > Call Stack (most recent call first): /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/cmake/admFFmpegUtil.cmake:8 (getFfmpegVersionFromHeader) It appears this error is introduced here, I'll take a look at it. > CMake Error at /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/avidemux/commonCmakeApplication.cmake:34 (MESSAGE): CMAKE_INSTALL_PREFIX does not contain include/avidemux/2.6/ADM_coreConfig.h (/usr/include/avidemux/2.6/ADM_coreConfig.h) Call Stack (most recent call first): CMakeLists.txt:12 (include) This seems like a different error but in a similar vein, it probably shouldn't look at the system in this case either. Can confirm this behavior that happens when 2.6 is present. I managed to solve the first error, but am now stuck at this: common/ADM_commonUI/libADM_commonUI6.a(DIA_gototime.cpp.o): In function `DIA_gotoTime(unsigned int*, unsigned int*, unsigned int*, unsigned int*)': /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/avidemux/common/ADM_commonUI/DIA_gototime.cpp:31: undefined reference to `diaElemTimeStamp::diaElemTimeStamp(unsigned int*, char const*, unsigned int, unsigned int)' /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/avidemux/common/ADM_commonUI/DIA_gototime.cpp:38: undefined reference to `diaElemTimeStamp::~diaElemTimeStamp()' /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/avidemux/common/ADM_commonUI/DIA_gototime.cpp:38: undefined reference to `diaElemTimeStamp::~diaElemTimeStamp()' collect2: error: ld returned 1 exit status Without 2.6 present it now fails with the second error: CMake Error at /var/tmp/portage/media-video/avidemux-2.6.1/work/avidemux_2.6.1/avidemux/commonCmakeApplication.cmake:34 (MESSAGE): CMAKE_INSTALL_PREFIX does not contain include/avidemux/2.6/ADM_coreConfig.h (/usr/include/avidemux/2.6/ADM_coreConfig.h) Call Stack (most recent call first): CMakeLists.txt:12 (include) Can't commit this one as it breaks it for everyone. To be continued... In my case avidemux-2.6 was not present, there was only avidemux-2.5.6-r2, which I now deleted. But nevertheless 'emerge avidemux' fails with the same error:
make -j5 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++
make: *** No targets specified and no makefile found. Stop.
* ERROR: media-video/avidemux-2.6.1 failed (compile phase):
* emake failed
...
root@impala:/usr/local/portage/net-fs(63)# qlist -Iv avidemux
root@impala:/usr/local/portage/net-fs(64)# genlop -t avidemux | tail
Wed Dec 12 09:47:01 2012 >>> media-video/avidemux-2.5.6-r2
merge time: 9 minutes and 23 seconds.
Tue Dec 18 16:59:19 2012 >>> media-video/avidemux-2.5.6-r2
merge time: 9 minutes and 43 seconds.
Mon Dec 31 11:29:10 2012 >>> media-video/avidemux-2.5.6-r2
merge time: 9 minutes and 30 seconds.
Seems I am making steady progress, not sure how fast though; so, expect a revised ebuild somewhere this week. Created attachment 341822 [details]
avidemux-2.6.1.ebuild
Attached my current progress for reference, it gets stuck in the plugins.
So, it appears that the presence of a working avidemux made my very first builds of the reworked ebuild work; but once that instance was unmerged, any future builds have broken. I don't want to go back to the old ebuild because it is not written in a clean way and not really maintainable.
These are way too much hacks to get this reworked ebuild to work so I am going to stop with this attempt; I'll revise the package later this week, I am probably going to split the current 'avidemux' package into a 'avidemux-core' package (ffmpeg and libs) and a new 'avidemux' package (CLI, Plugins and GUI) such that avidemux-core is installed before avidemux. Maybe I need to split plugins as well, it is likely to be used by the other ones.
In any case, having them all in one ebuild is clearly not the right approach; this is demonstrated by how bad the old and reworked ebuilds end up looking.
+ 10 Mar 2013; Tom Wijsman <TomWij@gentoo.org> package.mask: + Masked broken media-video/avidemux again, needs a revise for it to become + maintainable; I will look into splitting the package. Masked until the package has been revised. *** Bug 461474 has been marked as a duplicate of this bug. *** *** Bug 461678 has been marked as a duplicate of this bug. *** Appreciate your work on this, BUT 2.6.2 was just released yesterday, so it seems you should be working with that now instead of 2.6.1. + 16 Mar 2013; Tom Wijsman <TomWij@gentoo.org> +avidemux-core-2.6.2.ebuild, + +metadata.xml: + New package to separate the core libraries from avidemux. + 16 Mar 2013; Tom Wijsman <TomWij@gentoo.org> package.use.mask: + Masking system-ffmpeg on media-libs/avidemux-core until it compiles and works. + 16 Mar 2013; Tom Wijsman <TomWij@gentoo.org> +avidemux-2.6.2.ebuild, + -avidemux-2.6.0.ebuild, -avidemux-2.6.1.ebuild, metadata.xml: + Version bump to 2.6.2 where I revised the way it builds using separated core + libraries, should work properly. Removed old versions that had a broken + intermediate build system. Removed some unused things, fixed a QA warning and + more... + 16 Mar 2013; Tom Wijsman <TomWij@gentoo.org> package.mask: + Unmasked >=media-video/avidemux-2.6.2 which works properly and secure. + 16 Mar 2013; Tom Wijsman <TomWij@gentoo.org> package.use.mask: + Unmasking system-ffmpeg on media-video/avidemux as it no longer has that. |