Bug 51503 - Upgrade UCS-5: dckeytab.so moved samba → python-samba
Upgrade UCS-5: dckeytab.so moved samba → python-samba
Status: NEW
Product: UCS
Classification: Unclassified
Component: Samba
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on: 49720
Blocks:
  Show dependency treegraph
 
Reported: 2020-06-16 16:08 CEST by Philipp Hahn
Modified: 2020-07-30 23:22 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2020-06-16 16:08:55 CEST
During an upgrade from UCS-4.4-4 to UCS-5.0-0 ~ 2020-06-16 on DC Master with S4C:

Entpacken von python-samba (2:4.10.1-1A~5.0.0.202005282054) über (2:4.10.1-1A~4.4.0.202004212102) ...
dpkg: Fehler beim Bearbeiten des Archivs /tmp/root/apt-dpkg-install-KWLhn9/05-python-samba_2%3a4.10.1-1A~5.0.0.202005282054_amd64.deb (--unpack):
 Versuch, »/usr/lib/python2.7/dist-packages/samba/dckeytab.x86_64-linux-gnu.so« zu überschreiben, welches auch in Paket samba 2:4.10.1-1A~4.4.0.202004212102 ist
dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet
Comment 1 Philipp Hahn univentionstaff 2020-07-30 23:22:17 CEST
UCS-5.0:

# dpkg -L python-samba | grep dckey
/usr/lib/python2.7/dist-packages/samba/dckeytab.x86_64-linux-gnu.so
/usr/lib/python2.7/dist-packages/samba/tests/dckeytab.py

# dpkg -L samba | grep dckey
/usr/lib/python3/dist-packages/samba/dckeytab.cpython-37m-x86_64-linux-gnu.so

# dpkg -L python3-samba | grep dckey
/usr/lib/python3/dist-packages/samba/tests/dckeytab.py



samba/5.0-0-0-ucs/2:4.10.1-1/99_python3-samba-1.patch
126 +»··# This moves the dckeytab module to the samba package in order to avoid                                                                                                                                                                                                
127 +»··# a circular dependency between python3-samba, samba and samba-common-bin
128  »··mkdir -p debian/samba/usr/lib/$(PYSHORT)/dist-packages/samba
129 -»··mv $(DESTDIR)/usr/lib/$(PYSHORT)/dist-packages/samba/dckeytab.so \
130 -»··   debian/samba/usr/lib/$(PYSHORT)/dist-packages/samba/dckeytab.so
131 +»··mv $(DESTDIR)/usr/lib/$(PYSHORT)/dist-packages/samba/dckeytab*.so \
132 +»··   debian/samba/usr/lib/$(PYSHORT)/dist-packages/samba/


$ bzless /var/univention/buildsystem2/logs/ucs_5.0-0-0/samba_2\:4.10.1-1A~5.0.0.202007150956.log.bz2
# This moves the dckeytab module to the samba package in order to avoid
# a circular dependency between python3-samba, samba and samba-common-bin
mkdir -p debian/samba/usr/lib/python3/dist-packages/samba
mv /var/build/temp/tmp.zbLgoa5zh0/samba-4.10.1/debian/tmp/usr/lib/python3/dist-packages/samba/dckeytab*.so \
   debian/samba/usr/lib/python3/dist-packages/samba/



UCS-4.4:

$ dpkg -L python-samba | grep dckey
/usr/lib/python2.7/dist-packages/samba/tests/dckeytab.py

$ dpkg -L samba | grep dckey
/usr/lib/python2.7/dist-packages/samba/dckeytab.x86_64-linux-gnu.so



See <https://wiki.debian.org/PackageTransition> #9 or #10
  A=samba → B=python-samba
  samba: Depends: python-samba
  python-samba: Depends: samba (= 2:4.10.1-1A~5.0.0.202007150956)

Circular dependency!