Bug#1030434: rauc: FTBFS: tests failed writing: Error opening file ?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory

2023-02-13 Thread Bastian Germann

I am uploading a NMU to DELAYED/10 with the attached debdiff.diff -Nru opensc-0.23.0/debian/changelog opensc-0.23.0/debian/changelog
--- opensc-0.23.0/debian/changelog  2023-01-10 18:00:21.0 +0100
+++ opensc-0.23.0/debian/changelog  2023-02-13 17:13:20.0 +0100
@@ -1,3 +1,10 @@
+opensc (0.23.0-0.2) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Fix rauc build (Closes: #1030434)
+
+ -- Bastian Germann   Mon, 13 Feb 2023 17:13:20 +0100
+
 opensc (0.23.0-0.1) unstable; urgency=medium
 
   * Non-maintainer upload
diff -Nru opensc-0.23.0/debian/patches/0002-Fix-private-key-import.patch 
opensc-0.23.0/debian/patches/0002-Fix-private-key-import.patch
--- opensc-0.23.0/debian/patches/0002-Fix-private-key-import.patch  
1970-01-01 01:00:00.0 +0100
+++ opensc-0.23.0/debian/patches/0002-Fix-private-key-import.patch  
2023-02-13 16:52:41.0 +0100
@@ -0,0 +1,29 @@
+Origin: upstream, 9294183e07ff4944e3f5e590f343f5727636767e
+From: Jakub Jelen 
+Date: Thu, 1 Dec 2022 20:08:53 +0100
+Subject: pkcs11-tool: Fix private key import
+
+---
+ src/tools/pkcs11-tool.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
+index aae205fe2c..cfee8526d5 100644
+--- a/src/tools/pkcs11-tool.c
 b/src/tools/pkcs11-tool.c
+@@ -3669,13 +3669,13 @@ parse_rsa_pkey(EVP_PKEY *pkey, int private, struct 
rsakey_info *rsa)
+   RSA_get0_factors(r, _p, _q);
+   RSA_get0_crt_params(r, _dmp1, _dmq1, _iqmp);
+ #else
+-  if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_FACTOR1, 
_d) != 1 ||
++  if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_D, _d) != 
1 ||
+   EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_FACTOR1, _p) != 1 ||
+   EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_FACTOR2, _q) != 1 ||
+   EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_EXPONENT1, _dmp1) != 1 ||
+   EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_EXPONENT2, _dmq1) != 1 ||
+-  EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_EXPONENT3, _iqmp) != 1) {
+   util_fatal("OpenSSL error during RSA private key 
parsing");
++  EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_COEFFICIENT1, _iqmp) != 1) {
+   }
+ #endif
+   RSA_GET_BN(rsa, private_exponent, r_d);
diff -Nru opensc-0.23.0/debian/patches/0003-Log-OpenSSL-errors.patch 
opensc-0.23.0/debian/patches/0003-Log-OpenSSL-errors.patch
--- opensc-0.23.0/debian/patches/0003-Log-OpenSSL-errors.patch  1970-01-01 
01:00:00.0 +0100
+++ opensc-0.23.0/debian/patches/0003-Log-OpenSSL-errors.patch  2023-02-13 
16:51:41.0 +0100
@@ -0,0 +1,50 @@
+Origin: upstream, cff91cf6167743bdd59285150c4ef19802ed2644
+From: Jakub Jelen 
+Date: Thu, 1 Dec 2022 20:11:41 +0100
+Subject: pkcs11-tool: Log more information on OpenSSL errors
+
+---
+ src/tools/pkcs11-tool.c | 15 ++-
+ 1 file changed, 6 insertions(+), 9 deletions(-)
+
+diff --git a/src/tools/pkcs11-tool.c b/src/tools/pkcs11-tool.c
+index cfee8526d5..f2e6b1dd91 100644
+--- a/src/tools/pkcs11-tool.c
 b/src/tools/pkcs11-tool.c
+@@ -3641,10 +3641,8 @@ parse_rsa_pkey(EVP_PKEY *pkey, int private, struct 
rsakey_info *rsa)
+   const BIGNUM *r_dmp1, *r_dmq1, *r_iqmp;
+   r = EVP_PKEY_get1_RSA(pkey);
+   if (!r) {
+-  if (private)
+-  util_fatal("OpenSSL error during RSA private key 
parsing");
+-  else
+-  util_fatal("OpenSSL error during RSA public key 
parsing");
++  util_fatal("OpenSSL error during RSA %s key parsing: %s", 
private ? "private" : "public",
++  ERR_error_string(ERR_peek_last_error(), NULL));
+   }
+ 
+   RSA_get0_key(r, _n, _e, NULL);
+@@ -3654,10 +3652,8 @@ parse_rsa_pkey(EVP_PKEY *pkey, int private, struct 
rsakey_info *rsa)
+   BIGNUM *r_dmp1 = NULL, *r_dmq1 = NULL, *r_iqmp = NULL;
+   if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_N, _n) != 1 ||
+   EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_E, _e) != 1) {
+-  if (private)
+-  util_fatal("OpenSSL error during RSA private key 
parsing");
+-  else
+-  util_fatal("OpenSSL error during RSA public key 
parsing");
++  util_fatal("OpenSSL error during RSA %s key parsing: %s", 
private ? "private" : "public",
++  ERR_error_string(ERR_peek_last_error(), NULL));
+}
+ #endif
+   RSA_GET_BN(rsa, modulus, r_n);
+@@ -3674,8 +3670,9 @@ parse_rsa_pkey(EVP_PKEY *pkey, int private, struct 
rsakey_info *rsa)
+   EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_FACTOR2, _q) != 1 ||
+   EVP_PKEY_get_bn_param(pkey, 
OSSL_PKEY_PARAM_RSA_EXPONENT1, _dmp1) != 1 ||
+  

Processed: Re: Bug#1030434: rauc: FTBFS: tests failed writing: Error opening file ?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory

2023-02-13 Thread Debian Bug Tracking System
Processing control commands:

> reassign 1030434 src:opensc 0.23.0-0.1
Bug #1030434 [src:rauc] rauc: FTBFS: tests failed writing: Error opening file 
?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory
Bug reassigned from package 'src:rauc' to 'src:opensc'.
No longer marked as found in versions rauc/1.8-2.
Ignoring request to alter fixed versions of bug #1030434 to the same values 
previously set
Bug #1030434 [src:opensc] rauc: FTBFS: tests failed writing: Error opening file 
?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory
Marked as found in versions opensc/0.23.0-0.1.
> tag 1030434 + fixed-upstream
Bug #1030434 [src:opensc] rauc: FTBFS: tests failed writing: Error opening file 
?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory
Added tag(s) fixed-upstream.
> affects 1030434 + rauc
Bug #1030434 [src:opensc] rauc: FTBFS: tests failed writing: Error opening file 
?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory
Added indication that 1030434 affects rauc

-- 
1030434: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030434
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1030434: rauc: FTBFS: tests failed writing: Error opening file ?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory

2023-02-13 Thread Uwe Kleine-König
Control: reassign 1030434 src:opensc 0.23.0-0.1
Control: tag 1030434 + fixed-upstream
Control: affects 1030434 + rauc

Hello,

On Sat, Feb 04, 2023 at 08:39:04AM +0100, Lucas Nussbaum wrote:
> Source: rauc
> Version: 1.8-2
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20230203 ftbfs-bookworm
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> The full build log is available from:
> http://qa-logs.debian.net/2023/02/03/rauc_1.8-2_unstable.log
> 
> All bugs filed during this archive rebuild are listed at:
> https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230203;users=lu...@debian.org
> or:
> https://udd.debian.org/bugs/?release=na=ign=7=7=only=ftbfs-20230203=lu...@debian.org=1=1=1=1#results

This is a regression in opensc with openssl3 support. This is
fixed upstream by the following commits:

9294183e07ff pkcs11-tool: Fix private key import
cff91cf61677 pkcs11-tool: Log more information on OpenSSL errors

With these two fixes applied, rauc should build fine again as is.

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | https://www.pengutronix.de/ |


signature.asc
Description: PGP signature


Bug#1030434: rauc: FTBFS: tests failed writing: Error opening file ?/tmp/tmp.I4dlWcaK4g/notexisting/out.raucb?: No such file or directory

2023-02-03 Thread Lucas Nussbaum
Source: rauc
Version: 1.8-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230203 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

The full build log is available from:
http://qa-logs.debian.net/2023/02/03/rauc_1.8-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230203;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na=ign=7=7=only=ftbfs-20230203=lu...@debian.org=1=1=1=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.