[med-svn] [Git][med-team/policy][master] upstream-repro-docker
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Fri Apr 5 08:28:52 BST 2024
Michael R. Crusoe pushed to branch master at Debian Med / policy
Commits:
d18ce208 by Michael R. Crusoe at 2024-04-05T09:28:39+02:00
upstream-repro-docker
- - - - -
1 changed file:
- policy.rst
Changes:
=====================================
policy.rst
=====================================
@@ -375,8 +375,8 @@ To tag a release
.. _git-debian-version-from-commit:
-If upstream manages his sources with Git.
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+If upstream manages their sources with Git.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following makefile script can help producing a version number when
no Git tag is available:
@@ -1174,6 +1174,7 @@ Simply fetch the data(from external source) and make the tarball: ``tar cJf pkgn
``Step - 3:``
+
Delete the corresponding upstream tag pertaining to the current version (if already present): ``git tag -d upstream/version``
Import the orig tarball with: ``gbp import-orig --pristine-tar ../pkgname_version.orig.tar.xz``
@@ -1193,6 +1194,35 @@ FAQ
.. _autobuilder:
+How to easily help upstream exactly reproduce build/test errors that may be specific to Debian?
+-----------------------------------------------------------------------------------------------
+
+For packages already uploaded, you can adapt the Dockerfile below to `share with
+upstream <https://github.com/sunpy/sunpy/issues/7550#issue-2225805770>`_ so
+they can see the error and be able to inspect and troubleshoot with the exact
+same versions and patches applied:
+
+::
+
+ FROM docker.io/debian:sid-slim
+
+ WORKDIR /build
+
+ RUN apt-get update && apt-get install -y --no-install-recommends devscripts curl debian-keyring
+ RUN dget https://deb.debian.org/debian/pool/main/s/sunpy/sunpy_5.1.1-4.dsc
+ WORKDIR /build/sunpy-5.1.1
+ RUN apt-get -y build-dep .
+ RUN dpkg-buildpackage -uc -us -b
+
+Be sure to change the ``RUN dget`` line and the second ``WORKDIR /build/`` line
+to match the package.
+
+The Dockerfile even works for testing non-amd64 systems with the ``--platform``
+option to ``docker build`` (or ``podman build``). The platform name is
+``linux/arm/v5`` for the armel architecture, ``linux/arm/v6`` for the armhf
+architecture, and ``linux/mips64le`` for mips64**el**.
+
+
What to do if a large package does not build on a specific autobuilder architecture?
------------------------------------------------------------------------------------
View it on GitLab: https://salsa.debian.org/med-team/policy/-/commit/d18ce208b3daa6217beef5e3fe57fc512c8f816c
--
View it on GitLab: https://salsa.debian.org/med-team/policy/-/commit/d18ce208b3daa6217beef5e3fe57fc512c8f816c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240405/b99ffa42/attachment-0001.htm>
More information about the debian-med-commit
mailing list