19bd392adSmrgThe release criteria for libdrm is essentially "if you need a release,
29bd392adSmrgmake one".  There is no designated release engineer or maintainer.
39bd392adSmrgAnybody is free to make a release if there's a certain feature or bug
49bd392adSmrgfix they need in a released version of libdrm.
59bd392adSmrg
69bd392adSmrgWhen new ioctl definitions are merged into drm-next, we will add
79bd392adSmrgsupport to libdrm, at which point we typically create a new release.
89bd392adSmrgHowever, this is up to whoever is driving the feature in question.
99bd392adSmrg
109bd392adSmrgFollow these steps to release a new version of libdrm:
119bd392adSmrg
129bd392adSmrg  1) Bump the version number in meson.build. We seem to have settled for
139bd392adSmrg     2.4.x as the versioning scheme for libdrm, so just bump the micro
149bd392adSmrg     version.
159bd392adSmrg
169bd392adSmrg  2) Run `ninja -C builddir/ dist` to generate the tarballs.
179bd392adSmrg     Make sure that the version number of the tarball name in
189bd392adSmrg     builddir/meson-dist/ matches the number you bumped to. Move that
199bd392adSmrg     tarball to the libdrm repo root for the release script to pick up.
209bd392adSmrg
210ed5401bSmrg  3) Push the updated main branch with the bumped version number:
229bd392adSmrg
230ed5401bSmrg	git push origin main
249bd392adSmrg
259bd392adSmrg     assuming the remote for the upstream libdrm repo is called origin.
269bd392adSmrg
279bd392adSmrg  4) Use the release.sh script from the xorg/util/modular repo to
289bd392adSmrg     upload the tarballs to the freedesktop.org download area and
299bd392adSmrg     create an announce email template.  The script takes one argument:
309bd392adSmrg     the path to the libdrm checkout. So, if a checkout of modular is
319bd392adSmrg     at the same level than the libdrm repo:
329bd392adSmrg
339bd392adSmrg	./modular/release.sh libdrm
349bd392adSmrg
359bd392adSmrg     This copies the two tarballs to freedesktop.org and creates
369bd392adSmrg     libdrm-2.4.16.announce which has a detailed summary of the
379bd392adSmrg     changes, links to the tarballs, MD5 and SHA1 sums and pre-filled
389bd392adSmrg     out email headers.  Fill out the blank between the email headers
399bd392adSmrg     and the list of changes with a brief message of what changed or
409bd392adSmrg     what prompted this release.  Send out the email and you're done!
41