post-upstream-clone:
# Use the Fedora Rawhide specfile
- git clone https://src.fedoraproject.org/rpms/systemd .packit_rpm
- - bash -c 'git -C .packit_rpm checkout "$(grep GIT_COMMIT= mkosi.conf.d/centos-fedora/mkosi.conf | cut -d= -f2)"'
+ - bash -c 'git -C .packit_rpm checkout "$(grep GIT_COMMIT= mkosi.conf.d/centos-fedora/mkosi.conf.d/pkgenv.conf | cut -d= -f2)"'
- bash -c 'echo "%bcond upstream 1" > .packit_rpm/systemd.spec.new'
- bash -c 'echo "%define meson_extra_configure_options --werror" >> .packit_rpm/systemd.spec.new'
- bash -c 'cat .packit_rpm/systemd.spec >> .packit_rpm/systemd.spec.new'
ASAN_OPTIONS
COVERAGE
VCS_TAG
- GIT_URL
- GIT_SUBDIR
- GIT_BRANCH
- GIT_COMMIT
- PKG_SUBDIR
[Output]
RepartDirectories=mkosi.repart
[Match]
Distribution=arch
-[Build]
-Environment=
- GIT_URL=https://gitlab.archlinux.org/archlinux/packaging/packages/systemd.git
- GIT_BRANCH=main
- GIT_COMMIT=1b4994657df1c7495607f0c2f20db73550b94f34
- PKG_SUBDIR=arch
-
[Content]
VolatilePackages=
systemd
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=arch
+
+[Build]
+Environment=
+ GIT_URL=https://gitlab.archlinux.org/archlinux/packaging/packages/systemd.git
+ GIT_BRANCH=main
+ GIT_COMMIT=1b4994657df1c7495607f0c2f20db73550b94f34
+ PKG_SUBDIR=arch
Distribution=|centos
Distribution=|fedora
-[Build]
-Environment=
- GIT_URL=https://src.fedoraproject.org/rpms/systemd.git
- GIT_BRANCH=rawhide
- GIT_COMMIT=617952132de4ed882b9b00ceeed077f843130f91
- PKG_SUBDIR=fedora
-
[Content]
VolatilePackages=
systemd
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=|centos
+Distribution=|fedora
+
+[Build]
+Environment=
+ GIT_URL=https://src.fedoraproject.org/rpms/systemd.git
+ GIT_BRANCH=rawhide
+ GIT_COMMIT=617952132de4ed882b9b00ceeed077f843130f91
+ PKG_SUBDIR=fedora
Distribution=|debian
Distribution=|ubuntu
-[Build]
-Environment=
- GIT_URL=https://salsa.debian.org/systemd-team/systemd.git
- GIT_SUBDIR=debian
- GIT_BRANCH=debian/master
- GIT_COMMIT=d8c7f8f7f461b1edc3bf5040509e697ea574c990
- PKG_SUBDIR=debian
-
[Content]
VolatilePackages=
libnss-myhostname
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=|debian
+Distribution=|ubuntu
+
+[Build]
+Environment=
+ GIT_URL=https://salsa.debian.org/systemd-team/systemd.git
+ GIT_SUBDIR=debian
+ GIT_BRANCH=debian/master
+ GIT_COMMIT=d8c7f8f7f461b1edc3bf5040509e697ea574c990
+ PKG_SUBDIR=debian
[Build]
SandboxTrees=macros.db_backend:/etc/rpm/macros.db_backend
-Environment=
- GIT_URL=https://github.com/bmwiedemann/openSUSE
- GIT_SUBDIR=packages/s/systemd
- GIT_BRANCH=master
- GIT_COMMIT=9002a773f0ab185908dc8fb6c831c1cd9fdf11f0
- PKG_SUBDIR=opensuse
[Content]
VolatilePackages=
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=opensuse
+
+[Build]
+Environment=
+ GIT_URL=https://github.com/bmwiedemann/openSUSE
+ GIT_SUBDIR=packages/s/systemd
+ GIT_BRANCH=master
+ GIT_COMMIT=9002a773f0ab185908dc8fb6c831c1cd9fdf11f0
+ PKG_SUBDIR=opensuse
[Match]
Distribution=arch
+[Include]
+Include=%D/mkosi.conf.d/arch/mkosi.conf.d/pkgenv.conf
+
[Content]
Packages=
base
Distribution=|centos
Distribution=|fedora
+[Include]
+Include=%D/mkosi.conf.d/centos-fedora/mkosi.conf.d/pkgenv.conf
+
[Content]
Packages=
clang-devel
Distribution=|debian
Distribution=|ubuntu
+[Include]
+Include=%D/mkosi.conf.d/debian-ubuntu/mkosi.conf.d/pkgenv.conf
+
[Content]
Packages=
apt
[Match]
Distribution=opensuse
+[Include]
+Include=%D/mkosi.conf.d/opensuse/mkosi.conf.d/pkgenv.conf
+
[Content]
Packages=
clang
[Match]
Distribution=arch
+[Include]
+Include=%D/mkosi.conf.d/arch/mkosi.conf.d/pkgenv.conf
+
[Content]
PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/arch/mkosi.prepare
Packages=
Distribution=|fedora
Distribution=|centos
+[Include]
+Include=%D/mkosi.conf.d/centos-fedora/mkosi.conf.d/pkgenv.conf
+
[Content]
PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/centos-fedora/mkosi.prepare
Packages=
Distribution=|debian
Distribution=|ubuntu
+[Include]
+Include=%D/mkosi.conf.d/debian-ubuntu/mkosi.conf.d/pkgenv.conf
+
[Content]
PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/debian-ubuntu/mkosi.prepare
Packages=
[Match]
Distribution=opensuse
+[Include]
+Include=%D/mkosi.conf.d/opensuse/mkosi.conf.d/pkgenv.conf
+
[Content]
PrepareScripts=%D/mkosi.images/build/mkosi.conf.d/opensuse/mkosi.prepare
Packages=
changes = subprocess.check_output(cmd, text=True).strip()
conf_dir = Path('mkosi.conf.d')
- files = conf_dir.glob('*/*.conf')
+ files = conf_dir.glob('**/pkgenv.conf')
for file in files:
s = file.read_text()
if old_commit in s: