#52689 closed defect (fixed)
Attica fails to build - missing files from ECM
Reported by: | Polyergic (Shad Sterling) | Owned by: | NicosPavlov |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | NicosPavlov, RJVB (René Bertin), mkae (Marko Käning) | |
Port: | attica |
Description
Attica @0.4.2_1+docs fails in configure with an error message about missing files from ECM:
:info:configure CMake Error at CMakeLists.txt:10 (find_package): :info:configure Could not find a package configuration file provided by "ECM" (requested :info:configure version 0.0.6) with any of the following names: :info:configure :info:configure ECMConfig.cmake :info:configure ecm-config.cmake :info:configure :info:configure Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR" :info:configure to a directory containing one of the above files. If "ECM" provides a :info:configure separate development package or SDK, be sure it has been installed.
Is this an unclaimed dependency? It doesn't seem likely to be any of the ports found by port search \*ecm\*
Attachments (4)
Change History (29)
Changed 8 years ago by Polyergic (Shad Sterling)
Changed 8 years ago by Polyergic (Shad Sterling)
Attachment: | CMakeOutput.log added |
---|
comment:1 Changed 8 years ago by mkae (Marko Käning)
Cc: | rjvbertin@… mk@… added |
---|---|
Version: | 2.3.4 |
comment:2 Changed 8 years ago by mkae (Marko Käning)
Cc: | mkae added; mk@… removed |
---|
comment:3 Changed 8 years ago by mkae (Marko Käning)
Cc: | RJVB added; rjvbertin@… removed |
---|
comment:4 Changed 8 years ago by mkae (Marko Käning)
comment:5 Changed 8 years ago by mkae (Marko Käning)
Summary: | Attica fails to build - mising files from ECM → Attica fails to build - missing files from ECM |
---|
comment:6 Changed 8 years ago by RJVB (René Bertin)
This is simply a result of building (stock) attica with Qt5 installed and where cmake finds it.
For building attica for Qt4/KDE4 you need at least to add -DQT4_BUILD=ON to the configure.args .
The port from my macstrop repo contains the necessary modifications including some for forward compatibility with the upcoming KF5 ports (and a now redundant -qt5 subport, I see).
Nicos should be the ticket owner, btw.
comment:7 Changed 8 years ago by mkae (Marko Käning)
Owner: | changed from macports-tickets@… to nicos@… |
---|---|
Status: | new → assigned |
Thanks, René!
comment:8 Changed 8 years ago by Polyergic (Shad Sterling)
@mkae, no local source, selfupdated a few hours before. I did not request attica, it was brought in as a dependency of kdelibs4 and kde4-runtime. Anything I can do to make it work now?
comment:9 Changed 8 years ago by RJVB (René Bertin)
The easiest way to get it to build while we find a better solution is to deactivate your qt5 port(s) for the duration of the build. Untested, but I think it should work.
comment:10 Changed 8 years ago by Polyergic (Shad Sterling)
It wasn't enough to deactivate qt5, I had to port -p deactivate \*qt5\*
, but now attica is installed & activated. Thanks!
comment:11 Changed 8 years ago by mkae (Marko Käning)
Yes, that's what René meant with "qt5 port(s)". Nice that it worked, but it is only a workaround and needs a proper fix.
Changed 8 years ago by mkae (Marko Käning)
Attachment: | attica_Portfile.diff added |
---|
Changed 8 years ago by mkae (Marko Käning)
Attachment: | patch-includedir.diff added |
---|
comment:12 Changed 8 years ago by NicosPavlov
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:13 follow-up: 16 Changed 8 years ago by mkae (Marko Käning)
Hi @NicosPavlov, is there a reason why you've ignored the two patches which make Attica work with a qt5 co-installation?
comment:14 Changed 8 years ago by mkae (Marko Käning)
@RJVB, why did you remove phonon in your patch?
comment:15 follow-up: 18 Changed 8 years ago by RJVB (René Bertin)
Phonon is a dependency that's added by default by the KDE4 1.1 PG because it's needed by most KDE4 software. Not so for attica. I suppose I noticed this by looking at CMake's output, most KDE projects have it print a summary at the end. That includes a list of the unused variables specified on the command line.
comment:16 Changed 8 years ago by RJVB (René Bertin)
Replying to mkae:
Hi @NicosPavlov, is there a reason why you've ignored the two patches which make Attica work with a qt5 co-installation?
You mean with a *KF5* co-installation?
comment:18 Changed 8 years ago by mkae (Marko Käning)
Replying to RJVB:
... because it's needed by most KDE4 software. Not so for attica.
Oh, I see. Now I remember that you mentioned that a while ago - and I forgot about it in the meantime.
comment:19 Changed 8 years ago by NicosPavlov
The patch was doing several things, several of them not related to the issue at hand, so I focused on the part directly related to that ticket. It was also removing the kde4 portgroup and moving headers, which is not related to that ticket, and linked to a more global move of other ports.
comment:20 follow-up: 23 Changed 8 years ago by mkae (Marko Käning)
OK, so, I understand you suggest to file a new ticket or create a PR for the residual bits from those patches?
comment:21 Changed 8 years ago by RJVB (René Bertin)
Come to think of it, attica/Qt4 does indeed not depend on KDE4, but I did NOT remove the KDE4 PortGroup, did I?!
comment:22 follow-up: 25 Changed 8 years ago by mkae (Marko Käning)
Well, according to the portfile diff you didn't.
I believe that the changes in the include dirs are actually quite important to include, no!?
comment:23 Changed 8 years ago by NicosPavlov
comment:24 Changed 8 years ago by mkae (Marko Käning)
OK, cool to see that you have a nice overview of these related tickets. So we can leave this closed then and address the residual bits over there, especially in #49924. Thanks for checking, @NicosPavlov!
comment:25 Changed 8 years ago by RJVB (René Bertin)
Replying to mkae:
I believe that the changes in the include dirs are actually quite important to include, no!?
Indeed - but not as long as there is no kf5-attica port and if you don't mind coming back and make yet more adjustments. Attica doesn't depend on KDE4 and thus also doesn't inherit a specific KDE4 header install location, which is why that has to be configured explicitly in this port. I saw that as a reason to include the changes to prepare the port for KF5 in one "fell" swoop, but who am I...
@Polyergic, you are using stock port
attica
?Your MacPorts installation has been selfupdated recently?