[Git][java-team/libpostgresql-jdbc-java][master] Declare scram dependency to be "optional"
Christoph Berg
gitlab at salsa.debian.org
Wed Jun 6 14:06:56 BST 2018
Christoph Berg pushed to branch master at Debian Java Maintainers / libpostgresql-jdbc-java
Commits:
2bb87167 by Christoph Berg at 2018-06-06T15:05:19+02:00
Declare scram dependency to be "optional"
pgjdbc/pom.xml: "provided" made the shade plugin also remove the bundled scram
dependency. Revert that change, and declare the dependency to be "optional"
instead. That way, we bundle scram, and do not require reverse-dependencies to
install libscram-java. Again thanks Emmanuel Bourg!
- - - - -
5 changed files:
- debian/changelog
- debian/control
- + debian/maven.rules
- debian/patches/02-scram-scope.patch → debian/patches/02-scram-optional.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+libpgjava (42.2.2-4) unstable; urgency=medium
+
+ * pgjdbc/pom.xml: "provided" made the shade plugin also remove the bundled
+ scram dependency. Revert that change, and declare the dependency to be
+ "optional" instead. That way, we bundle scram, and do not require
+ reverse-dependencies to install libscram-java. Again thanks Emmanuel Bourg!
+
+ -- Christoph Berg <christoph.berg at credativ.de> Wed, 06 Jun 2018 14:42:47 +0200
+
libpgjava (42.2.2-3) unstable; urgency=medium
* pgjdbc/pom.xml: Manually patch scram dependency scope to be "provided"
=====================================
debian/control
=====================================
--- a/debian/control
+++ b/debian/control
@@ -30,7 +30,8 @@ Package: libpostgresql-jdbc-java
Architecture: all
Multi-Arch: foreign
Depends: ${maven:Depends}, ${misc:Depends}
-Recommends: ${maven:OptionalDepends}
+# No "Recommends: ${maven:OptionalDepends}" here because that would point at
+# libscram-java which we bundle
Conflicts: libpgjava (<= 7.4.7-3), libpg-java (<= 9.1-901-1)
Provides: libpgjava, libpg-java
Replaces: libpgjava, libpg-java (<= 9.1-901-1)
=====================================
debian/maven.rules
=====================================
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+com.ongres.scram client * s/.*/debian/ * s/.*/provided/
=====================================
debian/patches/02-scram-scope.patch → debian/patches/02-scram-optional.patch
=====================================
--- a/debian/patches/02-scram-scope.patch
+++ b/debian/patches/02-scram-optional.patch
@@ -11,7 +11,7 @@ Bug: #900615
<artifactId>client</artifactId>
- <version>1.0.0-beta.2</version>
+ <version>debian</version>
-+ <scope>provided</scope>
++ <optional>true</optional>
</dependency>
</dependencies>
=====================================
debian/patches/series
=====================================
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,2 @@
01-missing-pom-configuration.patch
-02-scram-scope.patch
+02-scram-optional.patch
View it on GitLab: https://salsa.debian.org/java-team/libpostgresql-jdbc-java/commit/2bb87167b4545860d55d67e662a2d72406e901a6
--
View it on GitLab: https://salsa.debian.org/java-team/libpostgresql-jdbc-java/commit/2bb87167b4545860d55d67e662a2d72406e901a6
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/pkg-java-commits/attachments/20180606/aff2848d/attachment.html>
More information about the pkg-java-commits
mailing list