'Install samba' option missing in sharing tab of Dolphin's folder properties

Bug #1795398 reported by Rik Mills
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdenetwork-filesharing
Fix Released
Medium
kdenetwork-filesharing (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Cosmic
Fix Released
Undecided
Unassigned

Bug Description

Cosmic, version 4:18.04.3-0ubuntu1
Bionic, version 4:17.12.3-0ubuntu1

Expected behaviour: If samba is not installed, an 'Install Samba' button should be present to enable automatic installation of Samba via packagekit.

Actual behaviour: A message just states that samba is not installed.

This is a regression from Bionic onwards.

The reason is that the feature has not been built, due to the cmake requirement of:

PackageKitQt5 (required version >= 0.9.5)

erroneously resulting in the output that the requirement is not satisfied by packagekit-qt 1.0.1

https://bugs.kde.org/show_bug.cgi?id=390599

While this is an error in packagekit-qt's cmake logic (I imagine) other KDE projects just use 'find_package(PackageKitQt5)' without any versioning, where < 0.9.5 is long depreciated so not an issue (if it ever was).

Revision history for this message
In , Rik Mills (rikmills) wrote :

With PackageKit 1.0.x, this is not an acceptable version during configure, so features are disabled and lost.

** log extract **

Could not find a configuration file for package "PackageKitQt5" that is
compatible with requested version "0.9.5".

The following configuration files were considered but not accepted:

/usr/lib/x86_64-linux-gnu/cmake/packagekitqt5/packagekitqt5-config.cmake, version: 1.0.1

<snip>

-- The following features have been disabled:

 * Samba Installation, Automatic installation of '"samba"' using PackageKit.

-- The following OPTIONAL packages have not been found:

 * PackageKitQt5 (required version >= 0.9.5), Software Manager integration
   Needed to automatically install the samba package.

Revision history for this message
In , Cfeck (cfeck) wrote :

Would you be able to propose a fix? openSUSE Tumbleweed still uses PackageKit-Qt 0.9.6, so I cannot investigate locally.

Rik Mills (rikmills)
description: updated
Revision history for this message
In , Rik Mills (rikmills) wrote :

(In reply to Christoph Feck from comment #1)
> Would you be able to propose a fix? openSUSE Tumbleweed still uses
> PackageKit-Qt 0.9.6, so I cannot investigate locally.

https://phabricator.kde.org/D15874

Rik Mills (rikmills)
Changed in kdenetwork-filesharing (Ubuntu Cosmic):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdenetwork-filesharing - 4:18.04.3-0ubuntu2

---------------
kdenetwork-filesharing (4:18.04.3-0ubuntu2) cosmic; urgency=medium

  * Add patch to fix building with packagekit-qt (v1.0.1). Restores
    missing option to install samba from the 'Share' tab in Dolphin's
    folder properties dialog. (LP: #1795398)
    - debian/patches: kubuntu_fix-cmake-PackageKitQt5-version.patch

 -- Rik Mills <email address hidden> Mon, 01 Oct 2018 15:01:54 +0100

Changed in kdenetwork-filesharing (Ubuntu Cosmic):
status: Fix Committed → Fix Released
Revision history for this message
In , Rik Mills (rikmills) wrote :

Git commit 1895a88670e6bef79fa07fe13335373956eedf9c by Rik Mills.
Committed on 04/10/2018 at 11:54.
Pushed by rikmills into branch 'master'.

allow building with packagekit-qt >= 1.0.0

Summary:
Currently fails to recognise packagekit-qt >= 1.0.0 with the message:
Could not find a configuration file for package "PackageKitQt5" that is compatible with requested version "0.9.5"
This results in the 'share' tab of Dolphin's folder properties simply
stating that samba is not installed, with the button which offers to
install this via packagekit not being present.
Currently known to affect at lease Kubuntu 18.04, 18.10, and Neon 18.04
packagekit-qt 0.9.5 dates from 2014, so regardless of more complicated
solutions, the version requirement can be dropped here.

Test Plan:
- Apply patch to Kubuntu CI builds of 18.08 branch.
- Apply patch to eariler releases for potential bugfix in Kubuntu
- Confirm that the button to install samba appears, installs samba,
  and that the samba sharing config options for the folder then appear.

Reviewers: cfeck, ngraham

Reviewed By: ngraham

Differential Revision: https://phabricator.kde.org/D15874

M +1 -1 CMakeLists.txt

https://commits.kde.org/kdenetwork-filesharing/1895a88670e6bef79fa07fe13335373956eedf9c

Revision history for this message
In , Rik Mills (rikmills) wrote :

Git commit 3394a564ec62a40ed99c185324993205f9a72641 by Rik Mills.
Committed on 04/10/2018 at 11:56.
Pushed by rikmills into branch 'Applications/18.08'.

allow building with packagekit-qt >= 1.0.0

Summary:
Currently fails to recognise packagekit-qt >= 1.0.0 with the message:
Could not find a configuration file for package "PackageKitQt5" that is compatible with requested version "0.9.5"
This results in the 'share' tab of Dolphin's folder properties simply
stating that samba is not installed, with the button which offers to
install this via packagekit not being present.
Currently known to affect at lease Kubuntu 18.04, 18.10, and Neon 18.04
packagekit-qt 0.9.5 dates from 2014, so regardless of more complicated
solutions, the version requirement can be dropped here.

Test Plan:
- Apply patch to Kubuntu CI builds of 18.08 branch.
- Apply patch to eariler releases for potential bugfix in Kubuntu
- Confirm that the button to install samba appears, installs samba,
  and that the samba sharing config options for the folder then appear.

Reviewers: cfeck, ngraham

Reviewed By: ngraham

Differential Revision: https://phabricator.kde.org/D15874

M +1 -1 CMakeLists.txt

https://commits.kde.org/kdenetwork-filesharing/3394a564ec62a40ed99c185324993205f9a72641

Changed in kdenetwork-filesharing:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.