Accepting request 825860 from Virtualization:Staging
Update to v5.1.0 qemu OBS-URL: https://build.opensuse.org/request/show/825860 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=557
This commit is contained in:
committed by
Git OBS Bridge
parent
44644229e6
commit
139cdd2a16
@@ -1,11 +1,17 @@
|
||||
The qemu package, and derived packages have a special maintenance workflow in
|
||||
order to support git based patching. Please use it in order to have changes
|
||||
you make be acceptable to the package maintainers.
|
||||
The qemu package includes a special maintenance workflow in order to support git
|
||||
based patching. Please use it in order to have changes you make be acceptable to
|
||||
the package maintainers.
|
||||
|
||||
Currently a local clone of the upstream repo(s) is required for the packaging
|
||||
workflow. It is anticipated that the need for any extra setup will be reduced or
|
||||
even eliminated entirely in the future, but for now, you will need do so some
|
||||
setup. See config.sh for details.
|
||||
|
||||
The qemu.spec file is generated from a qemu.spec.in template, so to make changes
|
||||
to the spec file (besides the script generated patch references), you'll need to
|
||||
edit the template, not the spec file. The spec file patch references are inserted
|
||||
by a script as described below.
|
||||
to the spec file beyond the patch name generation, patch reference and automated
|
||||
versioning done by the scripts, you need to edit the template. Do not directly
|
||||
edit the spec file. The spec file's version and patch references are added when
|
||||
the update_git.sh script is passed certain commands, as described below.
|
||||
|
||||
If you are not modifying any patches or their order, but just need to update the
|
||||
spec file from a changed template, run 'bash ./update_git.sh refresh'.
|
||||
@@ -22,16 +28,13 @@ upstream patches from there). Once you have the patch queue ready to go run
|
||||
'bash ./update_git.sh git2pkg' which updates the bundles.tar.xz file, as well as
|
||||
the spec and patch files.
|
||||
|
||||
The default action for update_git.sh is git2pkg, which helps simplify repeated
|
||||
package updates as you modify the patch queue from the local git repo.
|
||||
|
||||
The maintainer and automation use another workflow mode dealing with packaging
|
||||
the latest upstream qemu. See 'LATEST' references in the scripts for details.
|
||||
|
||||
** SPECIAL NOTE ABOUT CURRENT STATUS ***
|
||||
The current status as of 31 Oct 2019 is that for this incarnation of qemu
|
||||
packaging, the previous workflow which relied on the patches being in a shared
|
||||
git repo on github or gitlab is no longer supported. This new bundle based
|
||||
workflow is still a work in progress.
|
||||
If it isn't working right, please contact Bruce Rogers <brogers@suse.com>.
|
||||
*** END SPECIAL NOTE ***
|
||||
* * * * * * * * *
|
||||
|
||||
Additional Notes:
|
||||
|
||||
@@ -60,11 +63,12 @@ This will cause the patch application in the spec file to be done as follows:
|
||||
%endif
|
||||
|
||||
A trick worth noting is, if a given git tracked patch is to be applied in a way
|
||||
that can't be done in the normal patching section of the spec file, you can still
|
||||
include the patch, and use it by name with the patch program elsewhere in the
|
||||
spec file by doing something such as:
|
||||
that can't be done in the normal patching section of the spec file, you can
|
||||
still include the patch, and use it by name with the patch program elsewhere in
|
||||
the spec file by doing something such as:
|
||||
Include-If: %if 0%{?patch-possibly-applied-elsewhere}
|
||||
(this variable will remain undefined in the spec file) And then elsewhere in spec
|
||||
file, the actual patch (eg specially-handled-change.patch) is referenced as, eg:
|
||||
(this variable will remain undefined in the spec file) And then elsewhere in the
|
||||
spec file, the actual patch (eg specially-handled-change.patch) is referenced as
|
||||
eg:
|
||||
|
||||
patch -p1 < %_sourcedir/specially-handled-change.patch
|
||||
|
Reference in New Issue
Block a user