Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549576 - [gnome-overlay] gnome-base/gnome-control-center and gvfs ebuild issues with paludis
Summary: [gnome-overlay] gnome-base/gnome-control-center and gvfs ebuild issues with p...
Status: RESOLVED DUPLICATE of bug 543918
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 15:29 UTC by Harris Landgarten
Modified: 2016-08-17 09:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2015-05-15 15:29:07 UTC
The ebuilds for gnome-control-center and gvfs both cause problems for paludis users who also use samba with client/smbclient use flags

The issues seem to stem from the change in use flag name between the 3.4 and 4.0 branches.

Both ebuilds try to deal with samba in the same way with:

samba? ( || ( >=net-fs/samba-3.4.6[smbclient] >=net-fs/samba-4[client] ) )

unfortunately when cave see this it tries to downgrade samba:

harrisl@harrisl-desktop ~ $ sudo cave resolve gvfs -1z
Done: 3601 steps               

These are the actions I will take, in order:

-d  net-fs/samba:0::gentoo (not the best version) 3.6.25 to ::installed replacing 4.1.18
    acl -addns -ads aio* -avahi -caps+ client -cluster cups -debug+ -dmapi -doc+ -examples+ fam ldap -ldb+ netapi+ pam+ -quota readline+ (-selinux) server+ smbclient+ -smbsharemodes+ -swat+ -syslog winbind ABI_MIPS: (-n32)+ (-n64)+ (-o32)+ ABI_PPC: (-32)+ (-64)+ ABI_S390: (-32)+ (-64)+ ABI_X86: 32+ (64) (-x32)+ build_options: symbols=split -dwarf_compress (-optional_tests) -trace work=tidyup
    Reasons: gnome-base/gvfs-1.24.1:0::gnome

r   gnome-base/gvfs:0::gnome 1.24.1 to ::installed replacing 1.24.1
    -afp -archive -bluray cdda fuse gnome-online-accounts -gphoto2 gtk http -ios libsecret -mtp -nfs samba systemd udev udisks -zeroconf (-test) build_options: symbols=split -dwarf_compress (-optional_tests) -trace work=tidyup
    Reasons: target

Total: 1 downgrades, 1 reinstalls

I did not take the following:

(<) dev-python/subunit 1.0.0:0::installed
    Reasons: was used by net-fs/samba-4.1.18:0::installed
    Take using: --purge

(<) sys-libs/ldb 1.1.20:0::installed
    Reasons: was used by net-fs/samba-4.1.18:0::installed
    Take using: --purge

(<) sys-libs/ntdb 1.0-r1:0::installed
    Reasons: was used by net-fs/samba-4.1.18:0::installed
    Take using: --purge

USE:
    aio:                           Enable asynchronous IO support
    caps:                          Use Linux capabilities library to control privilege
    debug:                         Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
    doc:                           Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
    examples:                      Install examples, usually source code
    ldb:                           Enable the ldb tools
    netapi:                        Enable building of netapi bits
    pam:                           Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
    readline:                      Enable support for libreadline, a GNU line-editing library that almost everyone wants
    server:                        Enables the server part
    smbclient:                     Enable smbclient tool
    smbsharemodes:                 Enable special smb share modes (?)
    swat:                          Enables support for swat configuration gui

abi_mips:
    n32:                           64-bit (32-bit pointer) libraries
    n64:                           64-bit libraries
    o32:                           32-bit libraries

abi_ppc:
    32:                            32-bit (ppc) libraries
    64:                            64-bit (ppc64) libraries

abi_s390:
    32:                            32-bit (s390) libraries
    64:                            64-bit (s390x) libraries

abi_x86:
    32:                            32-bit (x86) libraries
    x32:                           x32 ABI libraries

I encountered the following errors:

!   net-fs/cifs-utils
    Reasons: dependent upon net-fs/samba-4.1.18:0::installed (PDEPEND), net-fs/samba-3.6.25:0::gentoo
    Unsuitable candidates:
      * net-fs/cifs-utils-5.9-r1:0::gentoo
        Did not meet !?net-fs/cifs-utils:0, use existing if possible, installing to / (nothing is fine too) from dependent upon net-fs/samba-4.1.18:0::installed (PDEPEND)
      * net-fs/cifs-utils-6.1-r1:0::gentoo
        Did not meet !?net-fs/cifs-utils:0, use existing if possible, installing to / (nothing is fine too) from dependent upon net-fs/samba-4.1.18:0::installed (PDEPEND)
      * net-fs/cifs-utils-6.3:0::gentoo
        Did not meet !?net-fs/cifs-utils:0, use existing if possible, installing to / (nothing is fine too) from dependent upon net-fs/samba-4.1.18:0::installed (PDEPEND)
      * net-fs/cifs-utils-6.3-r1:0::layman (in ::gmt)
        Masked by unavailable (In a repository which is unavailable)
        Did not meet !?net-fs/cifs-utils:0, use existing if possible, installing to / (nothing is fine too) from dependent upon net-fs/samba-4.1.18:0::installed (PDEPEND)
      * net-fs/cifs-utils-6.4:0::gentoo
        Did not meet !?net-fs/cifs-utils:0, use existing if possible, installing to / (nothing is fine too) from dependent upon net-fs/samba-4.1.18:0::installed (PDEPEND)

I cannot proceed without being permitted to do the following:

X   gnome-base/gnome-control-center 3.16.2:2::installed
    Will be broken by uninstalls:
    Reasons: dependent upon net-fs/samba-4.1.18:0::installed (DEPEND), dependent upon net-fs/samba-4.1.18:0::installed (RDEPEND)
    Cannot proceed without: --uninstalls-may-break or --remove-if-dependent

-d  net-fs/samba:0::gentoo (not the best version) 3.6.25 to ::installed replacing 4.1.18
    acl -addns -ads aio* -avahi -caps+ client -cluster cups -debug+ -dmapi -doc+ -examples+ fam ldap -ldb+ netapi+ pam+ -quota readline+ (-selinux) server+ smbclient+ -smbsharemodes+ -swat+ -syslog winbind ABI_MIPS: (-n32)+ (-n64)+ (-o32)+ ABI_PPC: (-32)+ (-64)+ ABI_S390: (-32)+ (-64)+ ABI_X86: 32+ (64) (-x32)+ build_options: symbols=split -dwarf_compress (-optional_tests) -trace work=tidyup
    Reasons: gnome-base/gvfs-1.24.1:0::gnome
    Cannot proceed without: --permit-old-version, --permit-downgrade


If I which the order of the ||() construct to

samba? ( || ( >=net-fs/samba-4[client] >=net-fs/samba-3.4.6[smbclient] ) )

Then paludis is happy. It seems like its a problem that could be fixed.
Comment 1 Pacho Ramos gentoo-dev 2015-05-16 09:30:36 UTC
CCing paludis maintainers :/
Comment 2 Pacho Ramos gentoo-dev 2016-06-25 14:07:14 UTC
Are you still hitting this issue?
Comment 3 Harris Landgarten 2016-06-26 14:25:20 UTC
still the same issues:

net-fs/samba-4.2.11:0::gentoo
        Did not meet >=net-fs/samba-3.4.6[smbclient], use existing if same metadata, installing to / from gnome-base/gvfs-1.28.2:0::gentoo
            Flag 'smbclient' enabled
        Did not meet >=net-fs/samba-3.6.14-r1[smbclient], use existing if same metadata, installing to / from gnome-base/gnome-control-center-3.20.1:2::gentoo
            Flag 'smbclient' enabled


the problem is the change in useflag from smbclient to client. 

Because of this paludis wants to downgrade samba
Comment 4 Pacho Ramos gentoo-dev 2016-07-09 12:47:25 UTC
@pms, how should we write that dep then?
Comment 5 Harris Landgarten 2016-07-09 13:14:21 UTC
I work around by switching the order but that is not a solution. I don't really know ebuild writing but is there a way to rewrite as an if then else or a more formal switch?
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-09 14:12:11 UTC
For a start, you should have (-) in USE deps. It is enough to use USE deps that are not satisfied by all ebuilds without explicit defaults.
Comment 7 Harris Landgarten 2016-07-09 18:06:39 UTC
samba? ( || ( >=net-fs/samba-3.4.6[smbclient-] >=net-fs/samba-4[client] ) )

fixes the issue for me but:

samba? ( || ( >=net-fs/samba-3.4.6[smbclient-] >=net-fs/samba-4[client-] ) )

does not.

I don't have a way to easily test the effect of samba? ( || ( >=net-fs/samba-3.4.6[smbclient-] >=net-fs/samba-4[client] ) )
on machine with samba:3
Comment 8 Zac Medico gentoo-dev 2016-07-09 18:47:19 UTC
(In reply to Harris Landgarten from comment #7)
> >=net-fs/samba-3.4.6[smbclient-]

You need parenthesis in there, like this: >=net-fs/samba-3.4.6[smbclient(-)].

Maybe >=net-fs/samba-4[client(-)] should go on the left side, since the smbclient flag has been replaced with the client flag in the latest stable version of samba.
Comment 9 Pacho Ramos gentoo-dev 2016-07-09 18:54:01 UTC
Oh, since samba-4 is being stabilized we can probably force samba-4 alone instead of relying on each resolver behaving different when resolving the || () dependencies :S
Comment 10 Ulrich Müller gentoo-dev 2016-07-09 21:28:48 UTC
Not a PMS problem, therefore removing pms-bugs from CC.
Comment 11 Harris Landgarten 2016-07-09 21:43:26 UTC
samba? ( || ( >=net-fs/samba-3.4.6[smbclient(-)] >=net-fs/samba-4[client(-)] ) )

still causing paludis to try to downgrade samba. Would be good if we are eliminate the differing ways that the any of construct is resolved by differing PMs which could involve a stricter definition in PMS docs. This is an end case but could be a good test case.
Comment 12 Pacho Ramos gentoo-dev 2016-08-15 08:44:36 UTC

*** This bug has been marked as a duplicate of bug 543918 ***
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-08-16 11:25:51 UTC
Please restore the || behavior. At least, it is not consistent with gnome-control-center, and I do not want samba 4 on my systems yet.
Comment 14 Pacho Ramos gentoo-dev 2016-08-17 09:11:01 UTC
[master 634de47] gnome-base/gvfs: Restore the old samba behavior allowing from samba-3 (#549576#c13)
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename gnome-base/gvfs/{gvfs-1.28.3.ebuild => gvfs-1.28.3-r1.ebuild} (92%)

Anyway this is still a dupe since the dependency is still allowed and either paludis changes its behavior or the behavior of || () deps is clarified for next eapi

*** This bug has been marked as a duplicate of bug 543918 ***