Bug#298566: marked as done (java-package: command-line parameter for make-jpkg to set priority)
Debian Bug Tracking System
owner@bugs.debian.org
Sun Mar 13 18:40:08 2005
Your message dated Mon, 14 Mar 2005 02:25:30 +0100
with message-id <20050314012530.GA30016@wolffelaar.nl>
and subject line java-package: command-line parameter for make-jpkg to set priority
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Mar 2005 14:54:47 +0000
>From fire@paranetic.de Tue Mar 08 06:54:47 2005
Return-path: <fire@paranetic.de>
Received: from paratech.paranetic.de [83.133.89.2] (postfix)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1D8g6h-0002Xj-00; Tue, 08 Mar 2005 06:54:47 -0800
Received: from localhost (paratech [127.0.0.1])
by paratech.paranetic.de (paratech.paranetic.de) with ESMTP id 81AEEDB6C0
for <submit@bugs.debian.org>; Tue, 8 Mar 2005 15:54:49 +0100 (CET)
Received: from paratech.paranetic.de ([127.0.0.1])
by localhost (paratech [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 10014-07 for <submit@bugs.debian.org>;
Tue, 8 Mar 2005 15:54:48 +0100 (CET)
Received: from deimos (p5488FEC2.dip.t-dialin.net [84.136.254.194])
by paratech.paranetic.de (paratech.paranetic.de) with ESMTP id AC05ADB6C8
for <submit@bugs.debian.org>; Tue, 8 Mar 2005 15:54:47 +0100 (CET)
Received: by deimos (Postfix, from userid 1000)
id B310DD6C31; Tue, 8 Mar 2005 15:54:02 +0100 (CET)
Content-Type: multipart/mixed; boundary="===============1958841663=="
MIME-Version: 1.0
From: Rico Schiekel <fire@paranetic.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: java-package: command-line parameter for make-jpkg to set priority
X-Editor: Vim-603 http://www.vim.org
X-Mailer: reportbug 3.8
Date: Tue, 08 Mar 2005 15:54:02 +0100
Message-Id: <20050308145402.B310DD6C31@deimos>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at paratech.paranetic.de
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
This is a multi-part MIME message sent by reportbug.
--===============1958841663==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: java-package
Version: 0.20
Severity: wishlist
Tags: patch
this patch add an command-line parameter to set an alternative priority for
update-alternatives.
...
--email EMAIL email address used in the maintainer field of the package
--changes create a .changes file
--priority PRIO set the update alternatives priority level
...
I primarily use this, cause I have installed sun's jdk 1.5, but want
ibm's jdk 1.4 as default sdk.
the patch 'priority.diff' add the functionality to the unpatched
java-package-2.0.
the patch 'priority_ibm.diff' add additional support for ibm
jre's/jdk's and need the patch from #264137.
(http://bugs.debian.org/cgi-bin/bugreport.cgi/ibm_jdk_jre.diff?bug=264137&msg=16&att=1)
regards,
rico
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10-as3-fire
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
--===============1958841663==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="priority.diff"
diff -rNu java-package-0.20.old/blackdown-j2re1.3/install java-package-0.20/blackdown-j2re1.3/install
--- java-package-0.20.old/blackdown-j2re1.3/install 2005-02-08 15:27:58.000000000 +0100
+++ java-package-0.20/blackdown-j2re1.3/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2re1.3-blackdown"
-priority=313
+test -z $priority && priority=313
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/blackdown-j2re1.4/install java-package-0.20/blackdown-j2re1.4/install
--- java-package-0.20.old/blackdown-j2re1.4/install 2005-02-08 15:27:58.000000000 +0100
+++ java-package-0.20/blackdown-j2re1.4/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,7 +1,7 @@
j2se_base="/usr/lib/j2re1.4-blackdown"
# due to prior brokenness
-priority=314
+test -z $priority && priority=314
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/blackdown-j2sdk1.3/install java-package-0.20/blackdown-j2sdk1.3/install
--- java-package-0.20.old/blackdown-j2sdk1.3/install 2005-02-08 15:28:00.000000000 +0100
+++ java-package-0.20/blackdown-j2sdk1.3/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2sdk1.3-blackdown"
-priority=313
+test -z $priority && priority=313
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/blackdown-j2sdk1.4/install java-package-0.20/blackdown-j2sdk1.4/install
--- java-package-0.20.old/blackdown-j2sdk1.4/install 2005-02-08 15:28:01.000000000 +0100
+++ java-package-0.20/blackdown-j2sdk1.4/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2sdk1.4-blackdown"
-priority=314
+test -z $priority && priority=314
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/lib/j2se.sh java-package-0.20/lib/j2se.sh
--- java-package-0.20.old/lib/j2se.sh 2005-02-08 17:40:54.000000000 +0100
+++ java-package-0.20/lib/j2se.sh 2005-03-07 18:49:00.000000000 +0100
@@ -72,6 +72,7 @@
set -e
if [ "\$1" = configure ]; then
+ priority=$priority
EOF
cat "$lib_dir/$j2se_package/install" >> "$debian_dir/postinst"
diff -rNu java-package-0.20.old/make-jpkg java-package-0.20/make-jpkg
--- java-package-0.20.old/make-jpkg 2005-01-25 00:07:35.000000000 +0100
+++ java-package-0.20/make-jpkg 2005-03-07 19:48:53.000000000 +0100
@@ -30,6 +30,7 @@
--full-name NAME full name used in the maintainer field of the package
--email EMAIL email address used in the maintainer field of the package
--changes create a .changes file
+ --priority PRIO set the update alternatives priority level
--help display this help and exit
--version output version information and exit
@@ -71,6 +72,10 @@
maintainer_email="$1"
elif [[ "x$1" == x--changes ]]; then
genchanges="true"
+ elif [[ "x$1" == x--priority ]]; then
+ [ $# -le 1 ] && missing_argument "$1"
+ shift
+ priority="$1"
else
unrecognized_option "$1"
fi
diff -rNu java-package-0.20.old/make-jpkg.1 java-package-0.20/make-jpkg.1
--- java-package-0.20.old/make-jpkg.1 2004-10-12 01:10:23.000000000 +0200
+++ java-package-0.20/make-jpkg.1 2005-03-07 19:49:08.000000000 +0100
@@ -41,6 +41,9 @@
.B --changes
create a .changes file
.TP
+.B --priority \fIPRIO\fR
+set the update alternatives priority level
+.TP
.B --help
display help text and exit
.TP
diff -rNu java-package-0.20.old/sun-j2re1.3/install java-package-0.20/sun-j2re1.3/install
--- java-package-0.20.old/sun-j2re1.3/install 2005-02-08 15:28:03.000000000 +0100
+++ java-package-0.20/sun-j2re1.3/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2re1.3-sun"
-priority=313
+test -z $priority && priority=313
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/sun-j2re1.4/install java-package-0.20/sun-j2re1.4/install
--- java-package-0.20.old/sun-j2re1.4/install 2005-02-08 15:28:04.000000000 +0100
+++ java-package-0.20/sun-j2re1.4/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2re1.4-sun"
-priority=314
+test -z $priority && priority=314
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/sun-j2re1.5/install java-package-0.20/sun-j2re1.5/install
--- java-package-0.20.old/sun-j2re1.5/install 2005-02-08 15:28:05.000000000 +0100
+++ java-package-0.20/sun-j2re1.5/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2re1.5-sun"
-priority=315
+test -z $priority && priority=315
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/sun-j2sdk1.4/install java-package-0.20/sun-j2sdk1.4/install
--- java-package-0.20.old/sun-j2sdk1.4/install 2005-02-08 15:28:07.000000000 +0100
+++ java-package-0.20/sun-j2sdk1.4/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2sdk1.4-sun"
-priority=314
+test -z $priority && priority=314
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/sun-j2sdk1.5/install java-package-0.20/sun-j2sdk1.5/install
--- java-package-0.20.old/sun-j2sdk1.5/install 2005-02-08 15:28:08.000000000 +0100
+++ java-package-0.20/sun-j2sdk1.5/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,5 +1,5 @@
j2se_base="/usr/lib/j2sdk1.5-sun"
-priority=315
+test -z $priority && priority=315
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
--===============1958841663==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="priority_ibm.diff"
diff -rNu java-package-0.20.old/ibm-j2re1.3/install java-package-0.20/ibm-j2re1.3/install
--- java-package-0.20.old/ibm-j2re1.3/install 2005-03-07 19:18:22.000000000 +0100
+++ java-package-0.20/ibm-j2re1.3/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,6 +1,6 @@
suffix=j2re1.3-ibm
j2se_base="/usr/lib/$suffix"
-priority=313
+test -z $priority && priority=313
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/ibm-j2re1.4/install java-package-0.20/ibm-j2re1.4/install
--- java-package-0.20.old/ibm-j2re1.4/install 2005-03-07 19:18:22.000000000 +0100
+++ java-package-0.20/ibm-j2re1.4/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,6 +1,6 @@
suffix=j2re1.4-ibm
j2se_base="/usr/lib/$suffix"
-priority=314
+test -z $priority && priority=314
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/ibm-j2sdk1.3/install java-package-0.20/ibm-j2sdk1.3/install
--- java-package-0.20.old/ibm-j2sdk1.3/install 2005-03-07 19:18:22.000000000 +0100
+++ java-package-0.20/ibm-j2sdk1.3/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,6 +1,6 @@
suffix=j2sdk1.3-ibm
j2se_base="/usr/lib/$suffix"
-priority=313
+test -z $priority && priority=313
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
diff -rNu java-package-0.20.old/ibm-j2sdk1.4/install java-package-0.20/ibm-j2sdk1.4/install
--- java-package-0.20.old/ibm-j2sdk1.4/install 2005-03-07 19:18:22.000000000 +0100
+++ java-package-0.20/ibm-j2sdk1.4/install 2005-03-07 19:12:05.000000000 +0100
@@ -1,6 +1,6 @@
suffix=j2sdk1.4-ibm
j2se_base="/usr/lib/$suffix"
-priority=314
+test -z $priority && priority=314
if [ ! -e "$j2se_base/debian/info" ]; then
exit 0
--===============1958841663==--
---------------------------------------
Received: (at 298566-done) by bugs.debian.org; 14 Mar 2005 01:25:34 +0000
>From jeroen@wolffelaar.nl Sun Mar 13 17:25:34 2005
Return-path: <jeroen@wolffelaar.nl>
Received: from 220pc220.sshunet.nl (mordor.wolffelaar.nl) [145.97.220.220] (Debian-exim)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DAeKr-0007yn-00; Sun, 13 Mar 2005 17:25:34 -0800
Received: from jeroen by mordor.wolffelaar.nl with local (Exim 4.44)
id 1DAeKo-0007rU-KI; Mon, 14 Mar 2005 02:25:30 +0100
Date: Mon, 14 Mar 2005 02:25:30 +0100
To: Rico Schiekel <fire@paranetic.de>, 298566-done@bugs.debian.org
Cc: control@wolffelaar.nl
Subject: Re: java-package: command-line parameter for make-jpkg to set priority
Message-ID: <20050314012530.GA30016@wolffelaar.nl>
References: <20050308145402.B310DD6C31@deimos>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050308145402.B310DD6C31@deimos>
User-Agent: Mutt/1.5.6+20040907i
From: Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
Delivered-To: 298566-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,VALID_BTS_CONTROL
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
X-CrossAssassin-Score: 2
tags 298566 wontfix
thanks
On Tue, Mar 08, 2005 at 03:54:02PM +0100, Rico Schiekel wrote:
> this patch add an command-line parameter to set an alternative priority for
> update-alternatives.
>
> ...
> --email EMAIL email address used in the maintainer field of the package
> --changes create a .changes file
> --priority PRIO set the update alternatives priority level
> ...
>
> I primarily use this, cause I have installed sun's jdk 1.5, but want
> ibm's jdk 1.4 as default sdk.
Priorities are not meant to be changed by the user, only by package
maintainers. You can (should) use update-alternatives --set or --config
to set alternatives as system administrator, rather than changing the
packages so that the packages of your preference have the highest
priority.
--Jeroen
--
Jeroen van Wolffelaar
jeroen@wolffelaar.nl
http://jeroen.A-Eskwadraat.nl