Bruce Dubbs via blfs-support wrote:
On 8/20/19 11:23 AM, Pierre Labastie via blfs-support wrote:
Pierre Labastie via blfs-support wrote:
(clean, but tricky sed, tentative below), or rerun get_filename_component(...) after the macro has been called.

sed -e '/PACKAGE_INIT/i set(SAVE_PACKAGE_PREFIX_DIR "${PACKAGE_PREFIX_DIR}")' \     -e '/^include/a set(PACKAGE_PREFIX_DIR "${SAVE_PACKAGE_PREFIX_DIR}")'
    -i ECMConfig.cmake.in

(before starting building ECM)
So I've removed ECM from /opt/kf5, and rebuilt it in /usr, after applying the sed above.
And plasma-workspace can be compiled...

I thought about doing that but didn't work out the actual command.  I am a bit uncomfortable with the change to extra-cmake-modules as it affects every package that use it.

The only package that we have right now that is troublesome is plasma-framework in kf5.   How about, in kf5 only for plasma-framework:

sed -e
  '/CMakeFind/i set(SAVE_PACKAGE_PREFIX_DIR "${PACKAGE_PREFIX_DIR}")' \
sed -e
  '/find_dep/a set(PACKAGE_PREFIX_DIR "${SAVE_PACKAGE_PREFIX_DIR}")' \
    -i src/plasmaquick/KF5PlasmaQuickConfig.cmake.in


This is a possibility, but any other package using @PACKAGE_INIT@ may be affected. That we see the error only once is just chance: it occurs if ECM is the last package checked. Otherwise, PACKAGE_PREFIX_DIR is set back to /opt/kf5. If for some reason the order of the checks is changed, you'll see the error more often, or not at all...

Clearly, KF5/plasma developers have not considered the possibility of having modules in different install dirs. Since we innovate by putting ECM at a different location, ECM has to be changed. Otherwise, all the other KF5 modules may potentially need to be changed. I'm almost sure nothing will be affected by the change I propose (and this error will be gone). I agree it has to be tested, so I will do the following:

I'm almost done building a full (Sysv) BLFS using jhalfs. Since I started a few days ago, several packages have newer versions now in the book. In the course of updating, I'll rebuild all what depends on ECM. If all goes well, I think the change can be put into the book.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to