# For Tumbleweed, add --nodevelproject, otherwise osc branches Base:System/systemd
osc branch --nodevelproject openSUSE:Factory systemd home:eroca:branches:openSUSE:Factory systemd-v245-testsuite
cd SUSE/OBS
osc co home:eroca:branches:openSUSE:Factory systemd-v245-testsuite
cd home:eroca:branches:openSUSE:Factory/systemd-v245-testsuite
To quote osc detachbranch --help
, "If a package is a link it is replaced with its expanded sources. The link does not exist anymore".
We need exactly that.
osc detachbranch
Quoting osc linkpac --help
, "A linked package is a clone of another package, but plus local modifications".
Those "local modifications" are in this case the modifications taken from the original systemd package that was previously branched, plus any modifications made afterwards by you.
osc linkpac devel:openSUSE:QA:Tumbleweed systemd-v245-testsuite home:eroca:branches:openSUSE:Factory systemd-v245-testsuite
osc update
# run diff to get a view of what's changed
diff systemd.spec systemd-v245-testsuite.spec
# then add those changes to the spec file using your favorite editor
vim systemd-v245-testsuite.spec
osc addremove
M systemd-v245-testsuite.spec
# remove patches which got merged into systemd
rm 0001-test-functions-fix-configfile-path.patch
rm 0001-Revert-job-Don-t-mark-as-redundant-if-deps-are-relev.patch
# remove old source archive
rm systemd-v245.6+suse.48.gb12cd8b89b.tar.xz
osc addremove
M 0001-test-functions-adapt-for-systemd-v245-testsuite-pack.patch
D 0001-test-functions-fix-configfile-path.patch
D 0001-Revert-job-Don-t-mark-as-redundant-if-deps-are-relev.patch
D systemd-v245.6+suse.48.gb12cd8b89b.tar.xz
osc commit
osc submitrequest devel:openSUSE:QA:Tumbleweed systemd-v245-testsuite