FS#43117 - [samba] 4.1.14 conflicts with perl-parse-yapp

Attached to Project: Arch Linux
Opened by DJ Lucas (DJ_Lucas) - Monday, 15 December 2014, 08:19 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 29 August 2016, 07:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:

As per summary, samba installs it's own version of perl-parse-yapp.

Additional info:
* package version(s)

samba-4.1.14 and perl-parse-yapp-1.*

* config and/or log files etc.

resolving dependencies...
looking for inter-conflicts...

Packages (1): perl-parse-yapp-1.05-6

Total Installed Size: 0.17 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
perl-parse-yapp: /usr/share/perl5/vendor_perl/Parse/Yapp/Driver.pm exists in filesystem
Errors occurred, no packages were upgraded.


Steps to reproduce:

Install one and then attempt to install the other
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 29 August 2016, 07:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  on trunk
Comment by DJ Lucas (DJ_Lucas) - Monday, 15 December 2014, 08:20 GMT
Thinking that perl-parse-yapp should be a dep of samba, not sure, didn't test.
Comment by DJ Lucas (DJ_Lucas) - Friday, 06 March 2015, 23:15 GMT
Samba is currently broken as a result of this (though not many people will witness the breakage). This is currently affecting an AUR package that I maintain (openchange-server) because it is included in one release, then not the next, then it is in the next, and now it is omitted again. Please add perl-parse-yapp to both build deps, and to the samba packages deps for next release. A second release would be much appreciated but in the mean time, I'll add a note to the openchange page instructing users to install the perl-parse-yapp until this is fixed. Thanks in advance. --DJ
Comment by DJ Lucas (DJ_Lucas) - Saturday, 07 March 2015, 04:34 GMT
I'm sorry, I had that backwards. It is included. Samba owns files that should be owned by perl-parse-yapp (built in-tree).
Comment by DJ Lucas (DJ_Lucas) - Friday, 27 March 2015, 04:41 GMT
[dj@Arch1 ~]$ sudo pacman -S perl-parse-yapp
resolving dependencies...
looking for conflicting packages...

Packages (1) perl-parse-yapp-1.05-6

Total Installed Size: 0.17 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [########################] 100%
(1/1) checking package integrity [########################] 100%
(1/1) loading package files [########################] 100%
(1/1) checking for file conflicts [########################] 100%
error: failed to commit transaction (conflicting files)
perl-parse-yapp: /usr/share/perl5/vendor_perl/Parse/Yapp/Driver.pm exists in filesystem
Errors occurred, no packages were upgraded.
[dj@Arch1 ~]$ pacman -Q -o /usr/share/perl5/vendor_perl/Parse/Yapp/Driver.pm
/usr/share/perl5/vendor_perl/Parse/Yapp/Driver.pm is owned by samba 4.2.0-1

Additionally, if the Samba package is rebuilt and upgraded, then it is broken because the package is found on the system, and thus not built a second time resulting in a broken samba package (once installed).
See here:

[dj@Arch1 ~]$ cp -Rv /var/abs/extra/samba/ .
‘/var/abs/extra/samba/’ -> ‘./samba’
‘/var/abs/extra/samba/smbd.service’ -> ‘./samba/smbd.service’
‘/var/abs/extra/samba/smbd@.service’ -> ‘./samba/smbd@.service’
‘/var/abs/extra/samba/samba-4.0.3-fix_pidl_with_gcc48.patch’ -> ‘./samba/samba-4.0.3-fix_pidl_with_gcc48.patch’
‘/var/abs/extra/samba/samba.conf’ -> ‘./samba/samba.conf’
‘/var/abs/extra/samba/nmbd.service’ -> ‘./samba/nmbd.service’
‘/var/abs/extra/samba/samba.conf.d’ -> ‘./samba/samba.conf.d’
‘/var/abs/extra/samba/samba.service’ -> ‘./samba/samba.service’
‘/var/abs/extra/samba/samba.pam’ -> ‘./samba/samba.pam’
‘/var/abs/extra/samba/samba.install’ -> ‘./samba/samba.install’
‘/var/abs/extra/samba/winbindd.service’ -> ‘./samba/winbindd.service’
‘/var/abs/extra/samba/samba.logrotate’ -> ‘./samba/samba.logrotate’
‘/var/abs/extra/samba/smbd.socket’ -> ‘./samba/smbd.socket’
‘/var/abs/extra/samba/PKGBUILD’ -> ‘./samba/PKGBUILD’
[dj@Arch1 ~]$ cd samba
[dj@Arch1 samba]$ sed 's@pkgrel=1@pkgrel=2@' -i PKGBUILD
[dj@Arch1 samba]$ makepkg
==> Making package: samba 4.2.0-2 (Thu Mar 26 19:07:15 CDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading samba-4.2.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 308 100 308 0 0 1941 0 --:--:-- --:--:-- --:--:-- 1949
100 332 100 332 0 0 675 0 --:--:-- --:--:-- --:--:-- 2305
100 334 100 334 0 0 416 0 --:--:-- --:--:-- --:--:-- 416
100 19.7M 100 19.7M 0 0 3260k 0 0:00:06 0:00:06 --:--:-- 4139k
-> Downloading samba-4.2.0.tar.asc...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 309 100 309 0 0 3680 0 --:--:-- --:--:-- --:--:-- 3722
100 333 100 333 0 0 793 0 --:--:-- --:--:-- --:--:-- 1034
100 335 100 335 0 0 449 0 --:--:-- --:--:-- --:--:-- 449
100 181 100 181 0 0 169 0 0:00:01 0:00:01 --:--:-- 169
-> Found samba.logrotate
-> Found samba.pam
-> Found samba.service
-> Found samba.conf.d
-> Found smbd.service
-> Found smbd.socket
-> Found nmbd.service
-> Found smbd@.service
-> Found winbindd.service
-> Found samba.conf
==> Validating source files with md5sums...
samba-4.2.0.tar.gz ... Passed
samba-4.2.0.tar.asc ... Skipped
samba.logrotate ... Passed
samba.pam ... Passed
samba.service ... Passed
samba.conf.d ... Passed
smbd.service ... Passed
smbd.socket ... Passed
nmbd.service ... Passed
smbd@.service ... Passed
winbindd.service ... Passed
samba.conf ... Passed
==> Verifying source file signatures with gpg...
samba-4.2.0.tar ... FAILED (unknown public key 6F33915B6568B7EA)
==> ERROR: One or more PGP signatures could not be verified!
...
So, okay, it can't be verified right now but md5 is good enough
...
[dj@Arch1 samba]$ gpg --recv-key 6F33915B6568B7EA
gpg: key 6568B7EA: public key "Samba Distribution Verification Key <samba-bugs@samba.org>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1
[dj@Arch1 samba]$ rm -rf src pkg
[dj@Arch1 samba]$ makepkg
==> Making package: samba 4.2.0-2 (Thu Mar 26 19:39:14 CDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found samba-4.2.0.tar.gz
-> Found samba.logrotate
-> Found samba.pam
-> Found samba.service
-> Found samba.conf.d
-> Found smbd.service
-> Found smbd.socket
-> Found nmbd.service
-> Found smbd@.service
-> Found winbindd.service
-> Found samba.conf
==> Validating source files with md5sums...
samba-4.2.0.tar.gz ... Passed
samba.logrotate ... Passed
samba.pam ... Passed
samba.service ... Passed
samba.conf.d ... Passed
smbd.service ... Passed
smbd.socket ... Passed
nmbd.service ... Passed
smbd@.service ... Passed
winbindd.service ... Passed
samba.conf ... Passed
==> Verifying source file signatures with gpg...
samba-4.2.0.tar ... Passed
==> Extracting sources...
-> Extracting samba-4.2.0.tar.gz with bsdtar
==> Starting build()...
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for program git : /usr/bin/git
Check for -MD : yes
Checking for program gdb : /usr/bin/gdb
Checking build system : Linux Arch1 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015 x86_64 GNU/Linux
Checking for header sys/utsname.h : yes
Checking uname sysname type : Linux
Checking uname machine type : x86_64
Checking uname release type : 3.18.6-1-ARCH
Checking uname version type : #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015
...
Checking for perl module Parse::Yapp::Driver 1.05 : ok
...
Checking for program yapp : not found
...
'install' finished successfully (5m47.132s)
==> Entering fakeroot environment...
==> Starting package_libwbclient()...
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
-> Removing static library files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "libwbclient"...
-> Generating .PKGINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Starting package_smbclient()...
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
-> Removing static library files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "smbclient"...
-> Generating .PKGINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Starting package_samba()...
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
-> Removing static library files...
==> WARNING: backup entry file not in package : etc/samba/smb.conf
==> WARNING: backup entry file not in package : etc/xinetd.d/swat
==> WARNING: Package contains reference to $srcdir
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "samba"...
-> Generating .PKGINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: samba 4.2.0-2 (Thu Mar 26 20:20:01 CDT 2015)
[dj@Arch1 samba]$ ls -l pkg/samba/usr/share/perl5/vendor_perl/Parse/
total 8
drwxr-xr-x 5 dj dj 4096 Mar 26 20:13 Pidl
-rw-r--r-- 1 dj dj 727 Oct 1 04:16 Pidl.pm
[dj@Arch1 samba]$

Not much we can do about Pidl, you can build standalone, but it does no good, samba will still conflict. Anything more I can do to assist?
Comment by DJ Lucas (DJ_Lucas) - Saturday, 30 May 2015, 18:01 GMT
Still need to build (and install) 4.2.2 twice on a system with samba installed to get around this. On the plus side, 4.2.2 seems to be working well with simply a version bump and sums (short of having to build a second time to keep perl-parse-yapp out of the dep tree).

Loading...