Your message dated Mon, 16 May 2022 18:00:25 +0000
with message-id <[email protected]>
and subject line Bug#1010618: fixed in qr-code-generator 1.8.0-1
has caused the Debian Bug report #1010618,
regarding Package java library
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1010618: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010618
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: qr-code-generator
Version: 1.7.0-2
Severity: wishlist
Tags: patch
Hi,
the new version of src:jameica depends on the java-fast implementation
of qr-code-generator which is part of version 1.8. I have imported the
new version locally and added the attached patch on top to build the
java package. Note that it needs some patching to compile with maven
which I send upstream here:
https://github.com/nayuki/QR-Code-generator/pull/143
Could you update the version in Salsa and apply the attached patch?
I could also push my version if you give me write access to the repo.
Also I would be happy to sponsor the new package to get through new.
Cheers Jochen
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
>From 11fda9ed89d3196c27822db7679f10df322fb2ef Mon Sep 17 00:00:00 2001
From: Jochen Sprickerhof <[email protected]>
Date: Thu, 5 May 2022 10:06:58 +0200
Subject: [PATCH] Add libfastqrcodegen-java package
---
debian/control | 28 ++++
debian/libfastqrcodegen-java.poms | 1 +
debian/maven.ignoreRules | 4 +
debian/maven.rules | 1 +
.../patches/0003-Add-java-fast-pom.xml.patch | 151 ++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 19 +++
7 files changed, 205 insertions(+)
create mode 100644 debian/libfastqrcodegen-java.poms
create mode 100644 debian/maven.ignoreRules
create mode 100644 debian/maven.rules
create mode 100644 debian/patches/0003-Add-java-fast-pom.xml.patch
diff --git a/debian/control b/debian/control
index c2c180f..1650984 100644
--- a/debian/control
+++ b/debian/control
@@ -4,9 +4,12 @@ Priority: optional
Maintainer: Yangfl <[email protected]>
Build-Depends:
debhelper-compat (= 13),
+ default-jdk,
+ maven-debian-helper,
Build-Depends-Indep:
dh-python,
python3,
+ libmaven-compiler-plugin-java,
python3-setuptools,
Rules-Requires-Root: no
Standards-Version: 4.6.0
@@ -138,3 +141,28 @@ Description: QR Code generator library in multiple
languages - Python3 version
* Open source code under the permissive MIT License
.
This package contains the module in Python3.
+
+Package: libfastqrcodegen-java
+Section: java
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${maven:Depends}, ${maven:CompileDepends}
+Description: QR Code generator library in multiple languages - fast Java
version
+ This project aims to be the best, clearest QR Code generator library in
+ multiple languages. The primary goals are flexible options and absolute
+ correctness. Secondary goals are compact implementation size and good
+ documentation comments. Core features:
+ * Available in 7 programming languages, all with nearly equal functionality:
+ Java, JavaScript, TypeScript, Python, C++, C, Rust
+ * Significantly shorter code but more documentation comments compared to
+ competing libraries
+ * Supports encoding all 40 versions (sizes) and all 4 error correction
levels,
+ as per the QR Code Model 2 standard
+ * Output formats: Raw modules/pixels of the QR symbol (all languages), SVG
XML
+ string (all languages except C), BufferedImage raster bitmap (Java only),
+ HTML5 canvas (JavaScript and TypeScript only)
+ * Encodes numeric and special-alphanumeric text in less space than general
+ text
+ * Open source code under the permissive MIT License
+ .
+ This package contains the fast libarary for Java.
diff --git a/debian/libfastqrcodegen-java.poms
b/debian/libfastqrcodegen-java.poms
new file mode 100644
index 0000000..e613562
--- /dev/null
+++ b/debian/libfastqrcodegen-java.poms
@@ -0,0 +1 @@
+java-fast/pom.xml --has-package-version
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..a7175a8
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,4 @@
+org.apache.maven.plugins maven-gpg-plugin * * * *
+org.apache.maven.plugins maven-javadoc-plugin * * * *
+org.apache.maven.plugins maven-release-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..038c2cd
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+io.nayuki fastqrcodegen jar s/.*/debian/ * *
diff --git a/debian/patches/0003-Add-java-fast-pom.xml.patch
b/debian/patches/0003-Add-java-fast-pom.xml.patch
new file mode 100644
index 0000000..534056c
--- /dev/null
+++ b/debian/patches/0003-Add-java-fast-pom.xml.patch
@@ -0,0 +1,151 @@
+From: Jochen Sprickerhof <[email protected]>
+Date: Thu, 5 May 2022 16:33:09 +0200
+Subject: Add java-fast/pom.xml
+
+https://github.com/nayuki/QR-Code-generator/pull/143
+---
+ java-fast/pom.xml | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 135 insertions(+)
+ create mode 100644 java-fast/pom.xml
+
+diff --git a/java-fast/pom.xml b/java-fast/pom.xml
+new file mode 100644
+index 0000000..19bcd3a
+--- /dev/null
++++ b/java-fast/pom.xml
+@@ -0,0 +1,135 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
++ <modelVersion>4.0.0</modelVersion>
++
++ <groupId>io.nayuki</groupId>
++ <artifactId>fastqrcodegen</artifactId>
++ <version>1.8.0</version>
++ <packaging>jar</packaging>
++ <properties>
++
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
++ </properties>
++
++
++ <build>
++ <plugins>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-compiler-plugin</artifactId>
++ <version>3.8.1</version>
++ <executions>
++ <execution>
++ <id>default-compile</id>
++ <configuration>
++ <release>9</release>
++ </configuration>
++ </execution>
++ <execution>
++ <id>java8-compile</id>
++ <goals>
++ <goal>compile</goal>
++ </goals>
++ <configuration>
++ <source>1.8</source>
++ <target>1.8</target>
++ <excludes>
++
<exclude>module-info.java</exclude>
++ </excludes>
++ </configuration>
++ </execution>
++ </executions>
++ </plugin>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-release-plugin</artifactId>
++ <configuration>
++ <checkModificationExcludes>
++
<checkModificationExclude>java-fast/pom.xml</checkModificationExclude>
++ </checkModificationExcludes>
++ </configuration>
++ </plugin>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-source-plugin</artifactId>
++ <version>2.2.1</version>
++ <executions>
++ <execution>
++ <id>attach-sources</id>
++ <goals>
++ <goal>jar-no-fork</goal>
++ </goals>
++ </execution>
++ </executions>
++ </plugin>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-javadoc-plugin</artifactId>
++ <version>3.1.1</version>
++ <executions>
++ <execution>
++ <id>attach-javadocs</id>
++ <goals>
++ <goal>jar</goal>
++ </goals>
++ </execution>
++ </executions>
++ </plugin>
++
++ <plugin>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-gpg-plugin</artifactId>
++ <version>1.5</version>
++ <executions>
++ <execution>
++ <id>sign-artifacts</id>
++ <phase>verify</phase>
++ <goals>
++ <goal>sign</goal>
++ </goals>
++ </execution>
++ </executions>
++ </plugin>
++
++ </plugins>
++ </build>
++
++
++ <name>Fast QR Code generator library</name>
++ <description>High quality fast QR Code generator library</description>
++ <url>https://www.nayuki.io/page/qr-code-generator-library</url>
++ <inceptionYear>2016</inceptionYear>
++ <licenses>
++ <license>
++ <name>The MIT License</name>
++ <url>https://opensource.org/licenses/MIT</url>
++ <distribution>repo</distribution>
++ </license>
++ </licenses>
++ <developers>
++ <developer>
++ <name>Project Nayuki</name>
++ <email>[email protected]</email>
++ <url>https://www.nayuki.io/</url>
++ </developer>
++ </developers>
++
++ <scm>
++
<connection>scm:git:git://github.com/nayuki/QR-Code-generator.git</connection>
++
<developerConnection>scm:git:ssh://github.com:nayuki/QR-Code-generator.git</developerConnection>
++
<url>https://github.com/nayuki/QR-Code-generator/tree/master/java-fast</url>
++ </scm>
++ <distributionManagement>
++ <snapshotRepository>
++ <id>ossrh</id>
++
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
++ </snapshotRepository>
++ <repository>
++ <id>ossrh</id>
++
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
++ </repository>
++ </distributionManagement>
++</project>
diff --git a/debian/patches/series b/debian/patches/series
index 494c965..c21b53b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Make-C-shared-lib.patch
0002-Make-C-shared-lib.patch
+0003-Add-java-fast-pom.xml.patch
diff --git a/debian/rules b/debian/rules
index 9bff7c0..a5652b8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,12 +28,31 @@ clean:
override_dh_auto_clean-indep:
-dh_auto_clean --buildsystem=pybuild --sourcedirectory=python/
+ # mh_(un)patchpoms does not obeye --sourcedirectory
+ mh_patchpoms -plibfastqrcodegen-java
+ dh_auto_clean --buildsystem=maven --sourcedirectory=java-fast/
-plibfastqrcodegen-java
+ mh_unpatchpoms -plibfastqrcodegen-java
+ rm -rf java-fast/src
rm -rf python/qrcodegen.egg-info
+execute_before_dh_auto_configure-indep:
+ # mddir, ln: workaround till upstream has a build system
+ mkdir -p java-fast/src/main/java/
+ ln -s -t java-fast/src/main/java/ ../../../io/
+ dh_auto_configure --buildsystem=maven -plibfastqrcodegen-java
+
override_dh_auto_build-indep:
dh_auto_build --buildsystem=pybuild --sourcedirectory=python/
+ dh_auto_build --buildsystem=maven --sourcedirectory=java-fast/
override_dh_auto_install-indep:
+ # mv, sed, rm: work around buildsystem=maven calling
mh_resolve_dependencies in java-fast/
+ mv java-fast/pom.xml.save java-fast/pom.xml.backup
+ dh_auto_install -plibfastqrcodegen-java --buildsystem=maven
--sourcedirectory=java-fast/
+ mv java-fast/pom.xml.backup java-fast/pom.xml.save
+ mh_unpatchpoms -plibfastqrcodegen-java
+ sed -i 's/maven\./maven:/' debian/libfastqrcodegen-java.substvars
+ rm -r java-fast/.debianVersion java-fast/debian/
dh_auto_install --buildsystem=pybuild --sourcedirectory=python/
override_dh_auto_clean-arch:
--
2.36.0
--- End Message ---
--- Begin Message ---
Source: qr-code-generator
Source-Version: 1.8.0-1
Done: Yangfl <[email protected]>
We believe that the bug you reported is fixed in the latest version of
qr-code-generator, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Yangfl <[email protected]> (supplier of updated qr-code-generator package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 16 May 2022 23:34:58 +0800
Source: qr-code-generator
Binary: libqrcodegen-dev libqrcodegen-java libqrcodegen1 libqrcodegen1-dbgsym
libqrcodegencpp-dev libqrcodegencpp1 libqrcodegencpp1-dbgsym python3-qrcodegen
Architecture: source amd64 all
Version: 1.8.0-1
Distribution: unstable
Urgency: medium
Maintainer: Yangfl <[email protected]>
Changed-By: Yangfl <[email protected]>
Description:
libqrcodegen-dev - QR Code generator library in multiple languages - C
development h
libqrcodegen-java - QR Code generator library in multiple languages - Java
version
libqrcodegen1 - QR Code generator library in multiple languages - C version
libqrcodegencpp-dev - QR Code generator library in multiple languages - C++
development
libqrcodegencpp1 - QR Code generator library in multiple languages - C++
version
python3-qrcodegen - QR Code generator library in multiple languages - Python3
version
Closes: 1010618
Changes:
qr-code-generator (1.8.0-1) unstable; urgency=medium
.
* New upstream release
* Package java library (Closes: #1010618)
* Bump Standards-Version to 4.6.1
Checksums-Sha1:
ba2f5df0e1950accecb752df18efb61118d9c735 2446 qr-code-generator_1.8.0-1.dsc
3d8b6255c8b2d9baaffea4dde68f559fa6b4914d 193288
qr-code-generator_1.8.0.orig.tar.gz
fc389ab59f58c4d039f84873786b5b0365e735bd 8012
qr-code-generator_1.8.0-1.debian.tar.xz
dbef8031c31a6d58ea146c877b48ea3407b8b221 16212
libqrcodegen-dev_1.8.0-1_amd64.deb
f3aaf140e30d83fdd951d6de2dbce112c2273e36 40028
libqrcodegen-java_1.8.0-1_all.deb
93ecfb91f346efba792dd1bc5b965048d2470bde 23628
libqrcodegen1-dbgsym_1.8.0-1_amd64.deb
f2a69b81f2e280e2782a3056f8fd415a6965488f 12336 libqrcodegen1_1.8.0-1_amd64.deb
265b477b10bb83bf1cdb81698116e10ed3b832ec 29088
libqrcodegencpp-dev_1.8.0-1_amd64.deb
ac2e307837e0e8bf3e7e69e21340f3f58cc95e06 233068
libqrcodegencpp1-dbgsym_1.8.0-1_amd64.deb
a1ed1473ea8199701213b97d2868a1e4160d5aca 25304
libqrcodegencpp1_1.8.0-1_amd64.deb
b87c1f97c774837f2a447038c0ac1388cda885e5 15404
python3-qrcodegen_1.8.0-1_all.deb
f0eeaed48caeb2bca4ba4c17bb43a465c6409d2d 15028
qr-code-generator_1.8.0-1_amd64.buildinfo
Checksums-Sha256:
daece62abfcef6ac962a36ca5408c9b1f197aa7a27845a55e7e7c257f86d6adb 2446
qr-code-generator_1.8.0-1.dsc
2ec0a4d33d6f521c942eeaf473d42d5fe139abcfa57d2beffe10c5cf7d34ae60 193288
qr-code-generator_1.8.0.orig.tar.gz
b1c55613780780f66c25e802ab9103fdc93022522e4196f3d55c3901ec479b31 8012
qr-code-generator_1.8.0-1.debian.tar.xz
247d50958d22652df0adfe55378cfa6c675ac15ed5b57bfb76b7eb5b1974776e 16212
libqrcodegen-dev_1.8.0-1_amd64.deb
5d1bf38251662aae1192c152bf218d156505b42ce7a8888c4180cedcfdfa5e6a 40028
libqrcodegen-java_1.8.0-1_all.deb
6b6fc713b2a89d6176d1f182c4adbe687e697a6700b81758e8fb4b561a32fdf7 23628
libqrcodegen1-dbgsym_1.8.0-1_amd64.deb
cb5ec57034d2df8ee7b28ea337e1efea1eff529f646507e53fd6ca02dfdbbcfd 12336
libqrcodegen1_1.8.0-1_amd64.deb
540e00af7f42c0b539a45d3727e67e77ef1b1643321fdd6b4315639466595eb4 29088
libqrcodegencpp-dev_1.8.0-1_amd64.deb
506252e63634bbf8af38f4f1bd6549ef8fe928782344568d27cdd1cc277c13f5 233068
libqrcodegencpp1-dbgsym_1.8.0-1_amd64.deb
4cece43b8ceb268543b057efc1ff6f4b1b03076500bbe7f8e289a1a6834d2716 25304
libqrcodegencpp1_1.8.0-1_amd64.deb
0cee295474897f77cad4962cddabed0dd0ca18537fd813aafede4477eb14f2a3 15404
python3-qrcodegen_1.8.0-1_all.deb
d737a5b02d8a751f41ea5ad6fd3bd9ee5bfd72344fa9cccc76fb1a99bb7176c5 15028
qr-code-generator_1.8.0-1_amd64.buildinfo
Files:
0a860dfaaaad51793925c9be0a03a004 2446 libs optional
qr-code-generator_1.8.0-1.dsc
9fb957a2d5dd01a6f5c0176ec1d92cd0 193288 libs optional
qr-code-generator_1.8.0.orig.tar.gz
50d5726977c23a89bd886317b1395934 8012 libs optional
qr-code-generator_1.8.0-1.debian.tar.xz
6d94f36b6e8046415a10f5a843273c6e 16212 libdevel optional
libqrcodegen-dev_1.8.0-1_amd64.deb
538539cbaf57d4b3038a126b51f3e440 40028 java optional
libqrcodegen-java_1.8.0-1_all.deb
9e816b9fcc67e85eb08a5a7a563cdac8 23628 debug optional
libqrcodegen1-dbgsym_1.8.0-1_amd64.deb
33fe6ca986ff0d9d9ea6694b09b77950 12336 libs optional
libqrcodegen1_1.8.0-1_amd64.deb
24fe6b051bf8b2c97e7106c6c3f8e8c4 29088 libdevel optional
libqrcodegencpp-dev_1.8.0-1_amd64.deb
4aaf70a04e6e15cae6a23b0b5cb5e072 233068 debug optional
libqrcodegencpp1-dbgsym_1.8.0-1_amd64.deb
c4cec1c589947d575ff46025bda7182c 25304 libs optional
libqrcodegencpp1_1.8.0-1_amd64.deb
d12ed519abc381c5578f94da37571c49 15404 python optional
python3-qrcodegen_1.8.0-1_all.deb
8306d601368e322c649893cd7510fade 15028 libs optional
qr-code-generator_1.8.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmKCfqYACgkQwpPntGGC
Ws7zKRAAuMBsKU8vlljChg1pwxcSvWyCISD20TWIxDKse4c1gQBMTYXFKQdbR+Eo
Fsnuaej/Sis3xurNuuiYlNUzPpoajHF4C74EYPNf2+477rVbozGZbiVP9hkLkGHe
umSJt8lHEJ9A2Ek8+Vgk/oHe42LMFP8Yn0H8C95c29v5h30JZmtpgpInR7P9YM8j
x/dYKSm4SCokgcZJj3djPFbRh/taV2IhfXHVJVommoJBOC4UWYtUipXr/wk+j8TS
VOy+LOjalBwaesJgpVxAy7VceQ7+juou9s9HgbjKmc+eJQipCnsy9usxvmURp8wT
hSyz+FVrUl0ORu69gMzIOrP8XU6wd5DZXvTclI+rZUBIFiqgAwCQZVqwLP6Eweuv
xJC5nY6VHPRBNO12dXlvkHcXoaq/onpJ+KJEh0URTJ2oHtj3xV0nsnhU6L7tk1Fu
uJSMZpibOCewtYM2vk+DySSRdlZrUHzQDjgCMmxgfUCNxMDElM842Uha2JJJYJkT
9DpxiUsrI6tJvzAsJpF57Cggncbmf8b/QhTptqpqLqFAYTmgywgqf53RMe4dYEFj
120lodP37bWwEn+NzpDxqdWuxR3sR+yFabVPDGD5LIfzOz1uuQbG9ZVoG6Q3FObm
afbZsjuCkxe15gDV2GXGnkvs1wJu13+1d44WS7xnHFlIb0Wxc1A=
=6ih0
-----END PGP SIGNATURE-----
--- End Message ---