On 28-10-2024 15:59, Geert Stappers wrote:
The "problem":
stappers@messer:~/src/debian/python-acme
$ dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying disable-tls-alpn-test.patch
dpkg-source: info: applying fix-csr-version.patch
The debian/patches/series are applied.
dpkg-source: warning: upstream signing key but no upstream tarball
signature
dpkg-source: info: building python-acme using existing
./python-acme_1.12.0.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Description: Disable failing TLS-ALPN-01 test
| Note, no certbot client currently uses the functionality being tested
| here. Additionally, the tests are related to extremely small key
| sizes that a real user is unlikely to use.
|Author: Harlan Lieberman-Berg <[email protected]>
|Forwarded: not-needed
|Index: python-acme/tests/standalone_test.py
|===================================================================
|--- python-acme.orig/tests/standalone_test.py
|+++ python-acme/tests/standalone_test.py
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
The reverting fails for yet unknown reason.
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch 'disable-tls-alpn-test.patch' is correctly
applied by quilt, use 'quilt refresh' to update it
dpkg-source: info: if the file is present in the unpacked source, make
sure it is also present in the orig tarball
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B
.pc/disable-tls-alpn-test.patch/ --reject-file=- <
python-acme.orig.2x9zf5/debian/patches/disable-tls-alpn-test.patch
subprocess returned exit status 1
stappers@messer:~/src/debian/python-acme
$
Reproducer commands, copy and paste ready:
wget -O python-acme_1.12.0.orig.tar.gz \
https://pypi.debian.net/acme/acme-1.12.0.tar.gz
debcheckout python-acme
cd python-acme/
git switch bullseye
dpkg-source -b .
Some proof that "apply" did work:
stappers@messer:~/src/python-acme
$ git status
On branch bullseye
Your branch is up to date with 'origin/bullseye'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: acme/crypto_util.py
modified: tests/crypto_util_test.py
modified: tests/standalone_test.py
Untracked files:
(use "git add <file>..." to include in what will be committed)
.pc/
no changes added to commit (use "git add" and/or "git commit -a")
stappers@messer:~/src/python-acme
$ quilt pop -a
Removing patch debian/patches/fix-csr-version.patch
Restoring acme/crypto_util.py
Restoring tests/crypto_util_test.py
Removing patch debian/patches/disable-tls-alpn-test.patch
Restoring tests/standalone_test.py
No patches applied
stappers@messer:~/src/python-acme
$ quilt pop -a
No patch removed
stappers@messer:~/src/python-acme
$
Regards Geert Stappers
--
Silence is hard to parse