mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
mkosi: Always specify _sourcedir as an absolute path
A relative path is not supported by rpm so let's make sure we specify it as an absolute path.
This commit is contained in:
parent
00a2a67d81
commit
71acb00c28
@ -78,7 +78,7 @@ CXX_LD="$( ((LLVM)) && echo lld)" \
|
||||
$( ((WITH_TESTS)) || echo "--nocheck") \
|
||||
$( ((WITH_DOCS)) || echo "--without=docs") \
|
||||
--define "_topdir /var/tmp" \
|
||||
--define "_sourcedir pkg/$PKG_SUBDIR" \
|
||||
--define "_sourcedir $PWD/pkg/$PKG_SUBDIR" \
|
||||
--define "_rpmdir $OUTPUTDIR" \
|
||||
${BUILDDIR:+"--define=_vpath_builddir $BUILDDIR"} \
|
||||
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
||||
|
@ -17,7 +17,7 @@ mkosi-chroot \
|
||||
--query \
|
||||
--buildrequires \
|
||||
--define "_topdir /var/tmp" \
|
||||
--define "_sourcedir pkg/$PKG_SUBDIR" \
|
||||
--define "_sourcedir $PWD/pkg/$PKG_SUBDIR" \
|
||||
"pkg/$PKG_SUBDIR/systemd.spec" |
|
||||
grep --invert-match --regexp systemd --regexp /bin/sh --regexp "rpmlib(" --regexp udev --regexp grubby --regexp sdubby |
|
||||
sort --unique |
|
||||
@ -36,7 +36,7 @@ until mkosi-chroot \
|
||||
--build-in-place \
|
||||
--with upstream \
|
||||
--define "_topdir /var/tmp" \
|
||||
--define "_sourcedir pkg/$PKG_SUBDIR" \
|
||||
--define "_sourcedir $PWD/pkg/$PKG_SUBDIR" \
|
||||
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
||||
"pkg/$PKG_SUBDIR/systemd.spec"
|
||||
do
|
||||
|
@ -74,7 +74,7 @@ build() {
|
||||
--with upstream \
|
||||
$( ((WITH_TESTS)) || echo "--nocheck") \
|
||||
--define "_topdir /var/tmp" \
|
||||
--define "_sourcedir pkg/$PKG_SUBDIR" \
|
||||
--define "_sourcedir $PWD/pkg/$PKG_SUBDIR" \
|
||||
--define "_rpmdir $OUTPUTDIR" \
|
||||
${BUILDDIR:+"--define=_vpath_builddir $BUILDDIR"} \
|
||||
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
||||
|
@ -20,7 +20,7 @@ mkosi-chroot \
|
||||
--query \
|
||||
--buildrequires \
|
||||
--define "_topdir /var/tmp" \
|
||||
--define "_sourcedir pkg/$PKG_SUBDIR" \
|
||||
--define "_sourcedir $PWD/pkg/$PKG_SUBDIR" \
|
||||
"pkg/$PKG_SUBDIR/systemd.spec" |
|
||||
grep --invert-match --regexp systemd --regexp /bin/sh --regexp "rpmlib(" --regexp udev |
|
||||
sort --unique |
|
||||
@ -34,7 +34,7 @@ until mkosi-chroot \
|
||||
--build-in-place \
|
||||
--with upstream \
|
||||
--define "_topdir /var/tmp" \
|
||||
--define "_sourcedir pkg/$PKG_SUBDIR" \
|
||||
--define "_sourcedir $PWD/pkg/$PKG_SUBDIR" \
|
||||
--define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
||||
"pkg/$PKG_SUBDIR/systemd.spec"
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user