Bug 21386 - gwakeonlan lacks requires on python-pyxdg
Summary: gwakeonlan lacks requires on python-pyxdg
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory has_procedure MGA6-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2017-07-28 17:17 CEST by François Andriot
Modified: 2019-04-04 14:49 CEST (History)
2 users (show)

See Also:
Source RPM: gwakeonlan-0.6.3-2.mga6.src.rpm
CVE:
Status comment:


Attachments

Description François Andriot 2017-07-28 17:17:20 CEST
Description of problem:
The "gwakeonlan" utility fails to start because the "xdg" python module is not installed by default.

Error message below:
/usr/lib/python2.7/site-packages/gwakeonlan/functions.py:24: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Traceback (most recent call last):
  File "/bin/gwakeonlan", line 24, in <module>
    from gwakeonlan.settings import Settings
  File "/usr/lib/python2.7/site-packages/gwakeonlan/settings.py", line 26, in <module>
    from gwakeonlan.functions import *
  File "/usr/lib/python2.7/site-packages/gwakeonlan/functions.py", line 25, in <module>
    from gwakeonlan.constants import *
  File "/usr/lib/python2.7/site-packages/gwakeonlan/constants.py", line 23, in <module>
    from xdg import BaseDirectory
ImportError: No module named xdg


Version-Release number of selected component (if applicable):
gwakeonlan-0.6.3-2.mga6.src.rpm

How reproducible:
Run gwakeonlan without having 'python-pyxdg' installed.

Steps to Reproduce:
1. urpme python-pyxdg
2. urpmi gwakeonlan
3. gwakeonlan

Proposed solution: add package dependency on"gwakeonlan" package. It must require "python-pyxdg" package.
Rémi Verschelde 2017-07-28 17:26:16 CEST

Severity: minor => major
Assignee: bugsquad => geiger.david68210
Summary: gwakeonlan-0.6.3-2.mga6.src.rpm => gwakeonlan lacks requires on python-pyxdg

Comment 1 David GEIGER 2017-07-28 18:02:36 CEST
Assigning to QA,


Advisory:
========================

It's missing a require on the gwakeonlan package of Mageia 6.
If no other package pulling 'python-pyxdg' are installed on the computer, gwakeonlan can't start and run. This update adds this missing require.

========================

Packages in 6/core/updates_testing:
========================
gwakeonlan-0.6.3-2.1.mga6.noarch.rpm

Source RPM: 
========================
gwakeonlan-0.6.3-2.1.mga6.src.rpm


How to test this update request:
========================
- Install a system and and make sure you don't have 'python-pyxdg' installed.
- Install 'gwakeonlan' from core/release and see if it starts and runs
normally you must have the message: 
ImportError: No module named xdg
- Install 'gwakeonlan' from core/updates_testing and check if it will install 'python-pyxdg' and if it will start and run now

Assignee: geiger.david68210 => qa-bugs
Whiteboard: (none) => has_procedure
Source RPM: (none) => gwakeonlan-0.6.3-2.mga6.src.rpm

Comment 2 Rémi Verschelde 2017-07-30 10:43:03 CEST
Tested on Mageia 6 x86_64, I could reproduce the bug (installing gwakeonlan from Cauldron did not pull python-pyxdg, and failed to start), and the update candidate fixes it.

Whiteboard: has_procedure => has_procedure MGA6-64-OK

Comment 3 Rémi Verschelde 2017-07-30 10:45:34 CEST
Advisory uploaded, validating.

Whiteboard: has_procedure MGA6-64-OK => advisory has_procedure MGA6-64-OK
Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 4 Mageia Robot 2017-07-30 11:30:07 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2017-0046.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED

conor mcgregor 2019-03-29 06:48:15 CET

CC: (none) => akkaran046


Note You need to log in before you can comment on or make changes to this bug.