74bf6f2e1d
- Add patch getty-generator-with-serial-3270-tty.patch to avoid harmless error messages on not existing getty@3270 files - Replace systemd-big-endian-reply-matching.patch with upstream 0001-sd-bus-don-t-look-for-a-64bit-value-when-we-only-hav.patch to solve broken systemd communication with and over dbus (bnc#866732) - Readd patch 1008-add-msft-compability-rules.patch for older code base as 13.1 - Modify pre_checkin.sh to throw an error if a patch will be applied which modifies one of Makefile.am, Makefile.in, or configiure.ac as this breaks bootstrapping - Add second version of make-209-working-on-older-dist.patch to be able to apply for bootstrapping version - Don't require non-existing binutils-gold - Avoid file conflict between udev and systemd (bnc#868230) - Modify patch module-load-handle-SUSE-etc-sysconfig-kernel-module-list.patch to ignore if /etc/sysconfig/kernel does not exist (bnc#865834) - Add patch systemd-big-endian-reply-matching.patch make sure that systemd can talk with dbus-daemon even on big endian systems (bnc#866732) ----------------------------------------------------------------- - Due to previous reason, resurrect systemd-dbus-system-bus-address.patch - Removed pkgconfig(dbus-1) BuildRequires - with 209 and newer, itis only needed for quering default DBus directories, which we nowpass to configure. OBS-URL: https://build.opensuse.org/request/show/225960 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=178
29 lines
1.1 KiB
Bash
29 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
|
# create a -mini spec for systemd for bootstrapping
|
|
|
|
ORIG_SPEC=systemd
|
|
for patch in $(grep -lE 'Makefile.(am|in)|configure\.ac' *.patch)
|
|
do
|
|
sed -rn 's/^Patch([0-9]+):\s+'${patch}'/patch\1/p' $ORIG_SPEC.spec
|
|
done | while read patch
|
|
do
|
|
grep -1E '^%'${patch}'[^0-9]' $ORIG_SPEC.spec | grep -q bootstrap
|
|
if ((${PIPESTATUS[1]} != 0))
|
|
then
|
|
echo Patch ${patch} does trigger 'auto(re)configure' 1>&2
|
|
exit 1
|
|
fi
|
|
done
|
|
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
|
|
sed "s/^%define bootstrap.*$/${EDIT_WARNING}%define bootstrap 1/;
|
|
s/^%define udevpkgname.*$/${EDIT_WARNING}%define udevpkgname udev-mini/;
|
|
s/^\(Name:.*\)$/\1-mini/;
|
|
s/^BuildRoot.*/&\n\nProvides: %{real} = %{version}-%{release}\n/
|
|
" < ${ORIG_SPEC}.spec > ${ORIG_SPEC}-mini.spec
|
|
cp ${ORIG_SPEC}.changes ${ORIG_SPEC}-mini.changes
|
|
cp ${ORIG_SPEC}-rpmlintrc ${ORIG_SPEC}-mini-rpmlintrc
|
|
|
|
osc service localrun format_spec_file
|