Your message dated Thu, 2 Dec 2021 10:30:00 +0530
with message-id <YahS0J/zY351xjZx@WINTERMUTE.localdomain>
and subject line Experimental package has been removed
has caused the Debian Bug report #999773,
regarding ksh93u+m: missing Breaks+Replaces: ksh (<< 20210511)
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 ow...@bugs.debian.org
immediately.)


-- 
999773: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999773
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ksh93u+m
Version: 1.0.0~beta.1-1
Severity: serious
Tags: patch
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'sid' to 'experimental'.
It installed fine in 'sid', then the upgrade to 'experimental' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.
This error may also be triggered by having a predecessor package from
'sid 'installed while installing the package from 'experimental'.

See policy 7.6 at
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces

>From the attached log (scroll to the bottom...):

  Preparing to unpack .../ksh_20210510-93u+m-1.0.0~beta.1-1_amd64.deb ...
  Unpacking ksh (20210510-93u+m-1.0.0~beta.1-1) ...
  dpkg: error processing archive 
/var/cache/apt/archives/ksh_20210510-93u+m-1.0.0~beta.1-1_amd64.deb (--unpack):
   trying to overwrite '/bin/ksh93', which is also in package ksh93u+m 
1.0.0~beta.1-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/ksh_20210510-93u+m-1.0.0~beta.1-1_amd64.deb

The overwrite error is actually the other way around since ksh93u+m
in sid is newer than ksh in experimental.
Therefore please add 
  Breaks+Replaces: ksh (<< 20210511)
to ksh93u+m to ensure clean upgrades from whatever ksh version
was installed.

You also need to use an increasing version for
'dh_gencontrol -- -v...', otherwise subsequent (binary) uploads that
have a binary package with same version as already in the archive will
be rejected.
See the attached patch for my suggested solution.

You will have to file RM bugs against ftp.debian.org to get the obsolete
src:ksh package removed from sid and experimental.


cheers,

Andreas
diff -Nru ksh93u+m-1.0.0~beta.1/debian/control 
ksh93u+m-1.0.0~beta.1/debian/control
--- ksh93u+m-1.0.0~beta.1/debian/control        2021-09-05 15:14:36.000000000 
+0200
+++ ksh93u+m-1.0.0~beta.1/debian/control        2021-11-16 14:00:52.000000000 
+0100
@@ -11,8 +11,8 @@
 
 Package: ksh93u+m
 Architecture: any
-Replaces: ksh (<= 2020.0.0+really93u+20120801-10)
-Breaks: ksh (<= 2020.0.0+really93u+20120801-10)
+Replaces: ksh (<< 20210511)
+Breaks: ksh (<< 20210511)
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: binfmt-support
 Description: AT&T KornShell
diff -Nru ksh93u+m-1.0.0~beta.1/debian/rules ksh93u+m-1.0.0~beta.1/debian/rules
--- ksh93u+m-1.0.0~beta.1/debian/rules  2021-09-05 15:14:36.000000000 +0200
+++ ksh93u+m-1.0.0~beta.1/debian/rules  2021-11-16 14:00:52.000000000 +0100
@@ -7,6 +7,7 @@
 export TZ=GMT
 
 include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/pkg-info.mk
 
 export CCFLAGS+=$(shell dpkg-buildflags --get CFLAGS)
 export CCFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS)
@@ -34,8 +35,8 @@
        dh_installchangelogs NEWS
 
 override_dh_gencontrol:
-       dh_gencontrol --package=ksh93u+m
-       dh_gencontrol --package=ksh -- -v20210511
+       dh_gencontrol --package=ksh -- 
-v20210511+$(DEB_VERSION_UPSTREAM_REVISION)
+       dh_gencontrol --remaining-packages
 
 clean:
        dh_testdir

Attachment: ksh93u+m=1.0.0~beta.1-1_ksh=20210510-93u+m-1.0.0~beta.1-1.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
ksh/experimental package has been removed from the archive [1] to address
this issue.

Anuradha

[1] - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999814

--- End Message ---

Reply via email to