Bug 293331 - Automoc4Config.cmake find_program vs. find_tool
Summary: Automoc4Config.cmake find_program vs. find_tool
Status: RESOLVED WORKSFORME
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE4 (cmake) (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Neundorf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 22:45 UTC by Anders Ladegaard Marchsteiner
Modified: 2023-01-19 05:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Use find_tool instead of find_package. (821 bytes, patch)
2012-02-04 22:45 UTC, Anders Ladegaard Marchsteiner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Ladegaard Marchsteiner 2012-02-04 22:45:56 UTC
Created attachment 68503 [details]
Use find_tool instead of find_package.

Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

When Automoc4Config.cmake tries to locate the automoc4 binary it can fail when cross-compiling.
Cmake has/is-going-to introduce a new function which should solve this problem:
http://public.kitware.com/Bug/view.php?id=11583

The output when finding automoc4 would be:
  Found Automoc4: AUTOMOC4_EXECUTABLE-NOTFOUND
as noted in this related cmake bug:
http://public.kitware.com/Bug/view.php?id=8034

I have attached a patch for this, but it relies on a cmake with the find_tool function.

Reproducible: Always

Steps to Reproduce:
My case is quite different from that of the cmake bugs, but related.

When building anything using Automoc4Config.cmake on Exherbo the located bin becomes "AUTOMOC4_EXECUTABLE-NOTFOUND".

Actual Results:  
AUTOMOC4_EXECUTABLE-NOTFOUND

Expected Results:  
/usr/bin/automoc4
Comment 1 Raphael Kubo da Costa 2012-04-11 05:42:52 UTC
I find it unlikely that the current approach will be accepted, as we currently support 2.6.something and beyond, so using find_tool is not possible.

I suggest posting your cross-compilations problems to the kde-buildsystem mailing list in case people can think of other ideas.
Comment 2 Alexander Neundorf 2012-04-11 16:15:12 UTC
Adding something like find_tool() to cmake is currently not planned, it currently is "only" an entry in the bug tracker.
I would actually prefer if the cross compiling support in cmake would get some real work done, it can need some, the requirements have changed since summer 2007.
Comment 3 Andrew Crouthamel 2018-11-06 15:16:50 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-18 03:24:05 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Justin Zobel 2022-12-20 07:49:39 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Bug Janitor Service 2023-01-04 05:26:05 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-01-19 05:16:24 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!