[Rpm-maint] [rpm-software-management/rpm] fix install rpmrc, platform and macros files with off-source-tree build (PR #2651)
Michal Domonkos
notifications at github.com
Fri Sep 8 10:53:17 UTC 2023
Strange. One would expect that specifying a build directory with `-B` would instruct cmake to change the CWD to that. And indeed, that's what seems to be happening for me since I'm getting the `rpmrc`, `platform` and `macros` files in correct (build) directory:
```sh
$ cmake -B build -S rpm
[...]
$ ls build/{rpmrc,platform,macros}
build/macros build/platform build/rpmrc
```
This seems more like some kind of misconfiguration related to the `%cmake` macro shipped in Fedora. Looking at the definition, it seems like `%_vpath_builddir` value could be wrong for you, or something like that:
```
%__cmake_builddir %{!?__cmake_in_source_build:%{_vpath_builddir}}%{?__cmake_in_source_build:.}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2651#issuecomment-1711473916
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2651/c1711473916 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230908/41b86258/attachment.html>
More information about the Rpm-maint
mailing list