[From nobody Fri Nov 13 12:01:11 2026
Received: (at submit) by bugs.debian.org; 15 Mar 2017 16:05:10 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
 FOURLA,HAS_PACKAGE,MURPHY_DRUGS_REL8,REMBOX,XMAILER_REPORTBUG autolearn=ham
 autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 150; neutral, 160; spammy,
 0. spammytokens: hammytokens:0.000-+--armhf,
 0.000-+--H*M:reportbug, 
 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug
Return-path: &lt;sven@timegate.de&gt;
Received: from buzzer.stormbind.net ([2a01:4f8:201:5373::85])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from &lt;sven@timegate.de&gt;) id 1coBQE-00077m-4y
 for submit@bugs.debian.org; Wed, 15 Mar 2017 16:05:10 +0000
Received: from digital0638.lan (unknown [217.111.107.174])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by buzzer.stormbind.net (Postfix) with ESMTPSA id A86806005AE;
 Wed, 15 Mar 2017 17:05:06 +0100 (CET)
Received: from sven by digital0638.lan with local (Exim 4.88)
 (envelope-from &lt;sven@timegate.de&gt;)
 id 1coBQA-00061d-4W; Wed, 15 Mar 2017 17:05:06 +0100
Content-Type: multipart/mixed; boundary=&quot;===============3937224188841699963==&quot;
MIME-Version: 1.0
From: sven &lt;sven@timegate.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: java-package: proposal to add a --no-deps flag to make-jpkg
Message-ID: &lt;148959390611.23035.17392305490908695150.reportbug@digital0638.lan&gt;
X-Mailer: reportbug 7.1.5
Date: Wed, 15 Mar 2017 17:05:06 +0100
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============3937224188841699963==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: java-package
Version: 0.62
Severity: wishlist

Hello Emmanuel et al,
I'm currently using an internal build of java-package which has
a --no-deps parameter that drops ${shlibs:Depends} from the
generated control file. I know it's ugly, prone to cause issues but
it makes a few things easier for me. It simply allows to build one
.deb for several different Debian releases we can just install to drop
the JDK on the system.

Is there a general willingness to adopt such a patch? My internal
diff is attached.

Sven

--===============3937224188841699963==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;no-deps.patch&quot;

diff --git a/lib/oracle-jdk.sh b/lib/oracle-jdk.sh
index 23ce971..02b53d3 100644
--- a/lib/oracle-jdk.sh
+++ b/lib/oracle-jdk.sh
@@ -184,7 +184,9 @@ oracle_j2sdk_control() {
     build_depends=&quot;libasound2, libgl1-mesa-glx, libgtk2.0-0, libxslt1.1, libxtst6, libxxf86vm1&quot;
     j2se_control
     java_browser_plugin=&quot;java-browser-plugin, &quot;
-    depends=&quot;\${shlibs:Depends}&quot;
+    if [ &quot;${no_deps:-false}&quot; != &quot;true&quot; ]; then
+	depends=&quot;\${shlibs:Depends}&quot;
+    fi
     if [ &quot;${DEB_BUILD_ARCH:0:3}&quot; = &quot;arm&quot; -a &quot;${j2se_arch}&quot; != &quot;arm-vfp-hflt&quot; ]; then
         # ARM is only softfloat ATM so if building on armhf
         # force the dependencies to pickup cross platform fu
diff --git a/lib/oracle-jre.sh b/lib/oracle-jre.sh
index 94e3d5d..818c54b 100644
--- a/lib/oracle-jre.sh
+++ b/lib/oracle-jre.sh
@@ -143,6 +143,9 @@ oracle_j2re_control() {
     if [ &quot;$create_cert_softlinks&quot; == &quot;true&quot; ]; then
         depends=&quot;ca-certificates-java&quot;
     fi
+    if [ &quot;${no_deps:-false}&quot; != &quot;true&quot; ]; then
+       depends=&quot;${depends}, \${shlibs:Depends}&quot;
+    fi
     for i in `seq 5 ${j2se_release}`;
     do
         provides_runtime=&quot;${provides_runtime} java${i}-runtime,&quot;
@@ -151,7 +154,7 @@ oracle_j2re_control() {
     cat &lt;&lt; EOF
 Package: $j2se_package
 Architecture: $j2se_debian_arch
-Depends: \${misc:Depends}, \${shlibs:Depends}, java-common, $depends
+Depends: \${misc:Depends}, java-common, $depends
 Recommends: netbase
 Provides: java-virtual-machine, java-runtime, java2-runtime, $provides_runtime java-runtime-headless, java2-runtime-headless, $provides_headless java-browser-plugin
 Description: $j2se_title
diff --git a/lib/oracle-server-jre.sh b/lib/oracle-server-jre.sh
index d901e31..08e9035 100644
--- a/lib/oracle-server-jre.sh
+++ b/lib/oracle-server-jre.sh
@@ -127,6 +127,9 @@ oracle_server_j2re_control() {
     if [ &quot;$create_cert_softlinks&quot; == &quot;true&quot; ]; then
         depends=&quot;ca-certificates-java&quot;
     fi
+    if [ &quot;${no_deps:-false}&quot; != &quot;true&quot; ]; then
+       depends=&quot;${depends}, \${shlibs:Depends}&quot;
+    fi
     for i in `seq 5 ${j2se_release}`;
     do
         provides_headless=&quot;${provides_headless} java${i}-runtime-headless,&quot;
@@ -134,7 +137,7 @@ oracle_server_j2re_control() {
     cat &lt;&lt; EOF
 Package: $j2se_package
 Architecture: $j2se_debian_arch
-Depends: \${misc:Depends}, \${shlibs:Depends}, java-common, $depends
+Depends: \${misc:Depends}, java-common, $depends
 Recommends: netbase
 Provides: java-runtime-headless, java2-runtime-headless, $provides_headless
 Description: $j2se_title
diff --git a/make-jpkg b/make-jpkg
index 3db992c..7ac4a12 100755
--- a/make-jpkg
+++ b/make-jpkg
@@ -89,6 +89,7 @@ The following options are recognized:
   --source             build a source package instead of a binary deb package
   --with-system-certs  integrate with the system's keystore
   --jce-policy FILE    Replace cryptography files with versions from FILE
+  --no-deps            Do not generate shlibs:Depends on the final package
 
   --help               display this help and exit
   --version            output version information and exit
@@ -146,6 +147,8 @@ while [[ $# -gt 0 &amp;&amp; &quot;x$1&quot; == x--* ]]; do
     revision=&quot;-${1}&quot;
     elif [[ &quot;x$1&quot; == x--changes ]]; then
     genchanges=&quot;true&quot;
+    elif [[ &quot;x$1&quot; == x--no-deps ]]; then
+    no_deps=&quot;true&quot;
     elif [[ &quot;x$1&quot; == x--source ]]; then
     build_source=&quot;true&quot;
     elif [[ &quot;x$1&quot; == x--with-system-certs ]]; then
diff --git a/make-jpkg.1 b/make-jpkg.1
index 34a5462..791a103 100644
--- a/make-jpkg.1
+++ b/make-jpkg.1
@@ -70,6 +70,9 @@ ca-certificates and ca-certificates-java packages.
 Replace cryptography files with versions
 from the specified JCE_POLICY_FILE.
 .TP
+.B --no-deps
+do not generate shlibs:Depends package dependency
+.TP
 .B --help
 display help text and exit
 .TP

--===============3937224188841699963==--
]