Bug 39186 - winexe dependencies
winexe dependencies
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.4-4-errata
Assigned To: Philipp Hahn
Arvid Requate
:
Depends on: 36019
Blocks: 45373
  Show dependency treegraph
 
Reported: 2015-08-15 13:27 CEST by Stefan Gohmann
Modified: 2021-03-19 11:00 CET (History)
5 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 Stefan Gohmann univentionstaff 2015-08-15 13:27:50 CEST
This happens again. I had to rebuild winexe for the errata4.0-3 scope.

+++ This bug was initially created as a clone of Bug #36019 +++

+++ This bug was initially created as a clone of Bug #35999 +++

winexe should not depend on the exact samba package versions otherwise we must rebuild winexe with every new samba build:

The following packages have unmet dependencies:
 winexe : Depends: libdcerpc0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
          Depends: libndr-standard0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
          Depends: libndr0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
          Depends: libsamba-credentials0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
          Depends: libsamba-hostconfig0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
          Depends: libsamba-util0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
          Depends: libsmbclient-raw0 (= 2:4.1.0-1.653.201408041143) but 2:4.1.0-1.681.201409041406 is to be installed
E: Broken packages

The winexe build on UCS 4.0 fails at the moment. Seems that some samba dev packages have been reorganized and the winexe build script does not support this
Comment 1 Philipp Hahn univentionstaff 2015-09-18 11:53:10 CEST
(In reply to Stefan Gohmann from comment #0)
> This happens again. I had to rebuild winexe for the errata4.0-3 scope.

winexe was *not* pushed to unmaintained, and as thus it's not installable during ucs-test!

> winexe should not depend on the exact samba package versions otherwise we
> must rebuild winexe with every new samba build:

winexe uses internal Samba libraries, which have no stable ABI (See /var/lib/dpkg/info/samba-libs\:amd64.shlibs). As such it currently *must* be rebuilt for each new Samba release; weakening that = dependency to >= would still break the package, as then the bug would only manifest when the executable is started, as the dynamic linker is then not able to resolve the symbols of the Samba internal lib.
See Bug #38673 comment 6


# apt-cache policy winexe ucs-windows-tools samba-libs
winexe:
  Installiert:           (keine)
  Installationskandidat: 1.1.0-12.21.201508091140
  Versionstabelle:
     1.1.0-12.21.201508091140 0
        500 http://updates.software-univention.de/4.0/unmaintained/ 4.0-3/amd64/ Packages
     1.1.0-11.16.201411251924 0
        500 http://updates.software-univention.de/4.0/unmaintained/ 4.0-1/amd64/ Packages
ucs-windows-tools:
  Installiert:           (keine)
  Installationskandidat: 2.0.9-2.26.201505081215
  Versionstabelle:
     2.0.9-2.26.201505081215 0
        500 http://updates.software-univention.de/4.0/unmaintained/ 4.0-2/all/ Packages
     2.0.1-6.16.201410071146 0
        500 http://updates.software-univention.de/4.0/unmaintained/ 4.0-0/all/ Packages
samba-libs:
  Installiert:           2:4.2.3-1.788.201508261727
  Installationskandidat: 2:4.2.3-1.788.201508261727
  Versionstabelle:
 *** 2:4.2.3-1.788.201508261727 0
        500 http://updates.software-univention.de/4.0/maintained/component/ 4.0-3-errata/amd64/ Packages
        100 /var/lib/dpkg/status
     2:4.2.3-1.758.201507271307 0
        500 http://updates.software-univention.de/4.0/maintained/ 4.0-3/amd64/ Packages
     2:4.2.0~rc2-1.729.201503191909 0
        500 http://updates.software-univention.de/4.0/maintained/ 4.0-2/amd64/ Packages
     2:4.2.0~rc2-1.717.201501091014 0
        500 http://updates.software-univention.de/4.0/maintained/ 4.0-1/amd64/ Packages
     2:4.2.0~rc2-1.708.201411171637 0
        500 http://updates.software-univention.de/4.0/maintained/ 4.0-0/amd64/ Packages


As this happens again and again, perhaps someone sees the wisdom in fixing this issue once and for all properly.
At least announce winexe in parallel to unmaintained each time samba is announced.
Comment 2 Arvid Requate univentionstaff 2015-09-18 12:11:33 CEST
I agree, this sucks. Currently I only see these options:

1. I adjust my workflow (a new script which checks a local dependency list)
2. Later on we could integrate sth like that mechanism into repo-ng
3. We integrate winexe as Univention-patch into the samba source package
4. We use pywinrm - Python library for Windows Remote Management (WinRM)

Point 4 would be nice, but the Windows-VM already needs to have the firewall adjusted allow WinRM connections. winexe doesn't require this AFAIK.
Comment 3 Philipp Hahn univentionstaff 2015-09-25 10:29:21 CEST
Again 4.1:
>  . utils.sh; join_windows_memberserver 10.210.141.90 autotest095.local 10.210.93.245
>fail: return code 1
>  . utils.sh; set_windows_gateway 10.210.141.90 autotest095.local 10.210.93.245
>fail: return code 1
>  . utils.sh; install_gpmc_windows 10.210.141.90 autotest095.local
>fail: return code 1
...
>  . utils.sh; shutdown_windows_host 10.210.141.90 'True'
>fail: return code 1

# repo_admin.py
$cp sr
> 75 # 4.0
> 62 # errata4.0-3
> 76 # 4.1
> 0
> 74767 # winexe 
$quit
# b41 winexe

Package: winexe
Version: 1.1.0-12.27.201509251024
Branch: ucs_4.1-0
Comment 4 Philipp Hahn univentionstaff 2020-05-06 15:11:07 CEST
winexe was last build for UCS-4.3-0 and remains unbuildable since then. It was decided to remove winexe as it is no longer used.

[4.4-4] 7b3fff4bfc Bug #39186: Remove winexe tests
 test/scenarios/autotest-095-slave-s4.cfg           |   3 -
 .../tests/51_samba4/56evaluate_windows_gpo         | 582 ---------------------
 test/utils/utils.sh                                |  95 ----
 3 files changed, 680 deletions(-)

[4.4-4] 98b124afbf Bug #39186: Remove ucs-windows-tools
 test/ucs-windows-tools/bin/ucs-windows-domain-join |  58 ----
 .../bin/ucs-windows-list-ad-users                  |  49 ----
 test/ucs-windows-tools/bin/ucs-windows-populate-ad |  71 -----
 test/ucs-windows-tools/bin/ucs-windows-promote-ad  |  57 ----
 test/ucs-windows-tools/bin/ucs-windows-run-command |  56 ----
 test/ucs-windows-tools/debian/changelog            | 303 ---------------------
 test/ucs-windows-tools/debian/compat               |   1 -
 test/ucs-windows-tools/debian/control              |  26 --
 test/ucs-windows-tools/debian/copyright            |  29 --
 test/ucs-windows-tools/debian/rules                |  37 ---
 ...
 47 files changed, 3256 deletions(-)

[4.4-4] a16249f213 Bug #39186: Remove winexe
 test/winexe/README.txt              |  4 --
 test/winexe/debian/changelog        | 95 -------------------------------------
 test/winexe/debian/compat           |  1 -
 test/winexe/debian/control          | 33 -------------
 test/winexe/debian/copyright        | 49 -------------------
 test/winexe/debian/rules            | 61 ------------------------
 test/winexe/debian/winexe.install   |  1 -
 test/winexe/debian/winexe.manpages  |  1 -
 test/winexe/patches/samba_4.5.patch | 31 ------------
 test/winexe/patches/series          |  1 -
 ...
 11 files changed, 277 deletions(-)

ucs-test was not re-build as the test was marked as SKIP anyway.
Comment 5 Arvid Requate univentionstaff 2020-05-06 16:33:35 CEST
7b3fff4bfc:
  * IMHO test/ucs-test/tests/51_samba4/56evaluate_windows_gpo should
    not be deleted just because winexe gets removed. Please restore.

98b124afbf: Ok
  * test/ucs-windows-tools is obsolete, has been superseded
    by test/ucs-ec2-tools/shared-utils/ucs-winrm-plugins
a16249f213: Ok
Comment 6 Philipp Hahn univentionstaff 2020-05-06 16:56:05 CEST
(In reply to Arvid Requate from comment #5)
> 7b3fff4bfc:
>   * IMHO test/ucs-test/tests/51_samba4/56evaluate_windows_gpo should
>     not be deleted just because winexe gets removed. Please restore.

Done:
[4.4-4] dd99355507 Revert "Bug #39186: Remove winexe tests"
 .../tests/51_samba4/56evaluate_windows_gpo         | 582 +++++++++++++++++++++
 1 file changed, 582 insertions(+)
Comment 7 Arvid Requate univentionstaff 2020-05-06 16:59:29 CEST
Ok.
Comment 8 Philipp Hahn univentionstaff 2021-03-19 11:00:24 CET
Nothing more to release.