Commit 56e5548
committed
macros: add %_cross_buildsrcdir
Twoliter mounts sources for the current workspace into the SDK build
environment at `/home/builder/rpmbuild/BUILD/sources`, which packages
can refer to via the %_builddir macro - e.g. "%{_builddir}/sources" -
to avoid hard-coding assumptions about the SDK environment, such as
the user account that executes the build.
In RPM 4.20, the %_builddir macro now points to a package-specific
directory rather than the top-level build directory, which breaks
this approach.
Define %_cross_buildsrcdir as a replacement for %_builddir which will
always point to the path in the SDK where Twoliter mounts the sources
from the current workspace.
Signed-off-by: Ben Cressey <[email protected]>1 parent 8c399bb commit 56e5548
File tree
1 file changed
+1
-0
lines changed- macros
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments