[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Porting gnupg2

Dear riscv64 porters,

I do not have much porting experience, but discovering that an open
source CPU might soon be actual and usable reality recently thrilled me
quite a lot!

I created a QEMU virtual machine as explained on the wiki to try it out.
Since gnupg2 does not appear to build correctly at the moment, I tried
to fix it, and discovered that the problem is actually easy: tests fail
because running it in parallel on not very powerful machines makes them
miss some timeout. The same already happens also for hppa, according to
the debian/rules file. The simple attached patch fixes the problem.

Now, with all probability you already knew about this, but maybe not, so
I thought I would be useful to write this email. I do not know much
about porting procedures, but if I can be of any help, for example by
filing this patch against the sid gnupg2 package, I can do it.

Thanks, Giovanni.
Giovanni Mascellani <g.mascellani@gmail.com>
Postdoc researcher - Université Libre de Bruxelles
diff -Nru gnupg2-2.2.8/debian/changelog gnupg2-2.2.8/debian/changelog
--- gnupg2-2.2.8/debian/changelog	2018-06-08 16:08:36.000000000 +0200
+++ gnupg2-2.2.8/debian/changelog	2018-06-15 07:44:54.000000000 +0200
@@ -1,3 +1,10 @@
+gnupg2 (2.2.8-1.1) UNRELEASED; urgency=medium
+  * Non-maintainer upload.
+  * Fix build on riscv64, by avoid running tests in parallel.
+ -- Giovanni Mascellani <gio@debian.org>  Fri, 15 Jun 2018 07:44:54 +0200
 gnupg2 (2.2.8-1) unstable; urgency=medium
   * New upstream release
diff -Nru gnupg2-2.2.8/debian/rules gnupg2-2.2.8/debian/rules
--- gnupg2-2.2.8/debian/rules	2018-06-08 16:06:39.000000000 +0200
+++ gnupg2-2.2.8/debian/rules	2018-06-15 07:26:40.000000000 +0200
@@ -22,10 +22,10 @@
-# Avoid parallel tests on hppa architecture.
+# Avoid parallel tests on hppa and riscv64 architecture.
 # Parallel tests generates high load on machine which causes timeouts and thus
 # triggers unexpected failures.
-ifeq (,$(filter $(DEB_HOST_ARCH), hppa))
+ifeq (,$(filter $(DEB_HOST_ARCH), hppa riscv64))
 AUTOTEST_FLAGS = "--parallel"
 AUTOTEST_FLAGS = "--no-parallel"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: