Bug 33404 - Most updated version of woeusb-ng
Summary: Most updated version of woeusb-ng
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://github.com/WoeUSB/WoeUSB-ng
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-07-17 01:08 CEST by Michael Martins
Modified: 2024-07-20 23:23 CEST (History)
3 users (show)

See Also:
Source RPM: woeusb-ng-0.2.10-4.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Michael Martins 2024-07-17 01:08:06 CEST
The repository version is from 2021, but the latest version is from 2023, with some bug fixes.
Comment 1 David GEIGER 2024-07-17 18:27:53 CEST
Assigning to QA,

Package in 9/Core/Updates_testing:
=====================
woeusb-ng-0.2.12-1.mga9.noarch.rpm

From SRPMS:
woeusb-ng-0.2.12-1.mga9.src.rpm

Assignee: bugsquad => qa-bugs
CC: (none) => geiger.david68210

katnatek 2024-07-17 23:56:10 CEST

Keywords: (none) => advisory

Comment 2 katnatek 2024-07-18 00:36:11 CEST
RH mageia 9 x86_64

LC_ALL=C urpmi woeusb-ng
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "QA Testing (64-bit)")
  woeusb-ng                      0.2.12       1.mga9        noarch  
(medium "Core Release (distrib1)")
  python3-termcolor              1.1.0        8.mga9        noarch  
555KB of additional disk space will be used.
199KB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y


    https://mirror.math.princeton.edu/pub/mageia/distrib/9/x86_64/media/core/release/python3-termcolor-1.1.0-8.mga9.noarch.rpm
installing /var/cache/urpmi/rpms/python3-termcolor-1.1.0-8.mga9.noarch.rpm                                                          
//home/katnatek/qa-testing/x86_64/woeusb-ng-0.2.12-1.mga9.noarch.rpm
Preparing...                     ##################################################################################################
      1/2: python3-termcolor     ##################################################################################################
      2/2: woeusb-ng             ##################################################################################################

Sorry, need to ask for root rights and fail to aks for them
this is due upstream hardcode /usr/local/bin as path, for fix this I add in the spec after the autosetup line

sed -e 's:/usr/local:/usr:' -i miscellaneous/com.github.woeusb.woeusb-ng.policy

Also you not require grub so you must 
1. add grub as require 
or 
2. patch the gui for use by omission the option "skip legacy boot loader"

Also as upstream recommends p7zip and parted must be added as require
Comment 3 katnatek 2024-07-18 01:47:21 CEST
(In reply to katnatek from comment #2)
> Also you not require grub so you must 
> 1. add grub as require 
> or 
> 2. patch the gui for use by omission the option "skip legacy boot loader"
>
Forget the above , I test with a windows image and works without grub even if not mark the option
Comment 4 katnatek 2024-07-18 20:16:46 CEST
David I see you fix the policy other way but something in the changes you did are breaking the ask for root , I can't detect what can be but in AUR have the same issue https://aur.archlinux.org/packages/woeusb-ng#comment-950328

I just know my current package works but is using the "old" way of build python stuff

Assignee: qa-bugs => geiger.david68210

Comment 5 katnatek 2024-07-19 04:04:57 CEST
David I find a curious workaround
If you change the Exec line in desktop file to Exec=pkexec woeusbgui

The application will ask for root password and works!

Not have any idea about why this is necessary but works
Comment 6 Michael Martins 2024-07-19 04:24:30 CEST
Perfect. Pkexec works like sudo, but is used in graphical applications.

I went to run the current woeusb from the repository and this is the command it executes: com.github.woeusb.woeusb.run-gui-using-pkexec

The Xubuntu manual explains why to use pkexec: https://docs.xubuntu.org/latest/user/C/command-line.html
Comment 7 katnatek 2024-07-19 04:38:00 CEST
(In reply to Michael Martins from comment #6)
> Perfect. Pkexec works like sudo, but is used in graphical applications.
> 
> I went to run the current woeusb from the repository and this is the command
> it executes: com.github.woeusb.woeusb.run-gui-using-pkexec
> 
> The Xubuntu manual explains why to use pkexec:
> https://docs.xubuntu.org/latest/user/C/command-line.html

Usually Is not needed to explicitly call to pkexec in a desktop file when you have defined a policy , I did package this version time ago with the old python build method and do the work without include that, something in the new python build workflow break the polkit work and makes necessary the addition of pkexec

Unless David find other way of course :D
Comment 8 David GEIGER 2024-07-19 07:18:48 CEST
Should be fixed in next woeusb-ng-0.2.12-1.1.mga9 update!
Comment 9 katnatek 2024-07-19 19:20:44 CEST
RH mageia x86_64

woeusb-ng-0.2.12-1.1.mga9 Installed without issues

Click on the icon in the menu now rise the ask for root password dialog
Enter root password
The application works

CC: (none) => andrewsfarm
Whiteboard: (none) => MGA9-64-OK

Comment 10 katnatek 2024-07-19 19:26:10 CEST
Advisory updated
katnatek 2024-07-19 19:28:07 CEST

Assignee: geiger.david68210 => qa-bugs

Comment 11 Thomas Andrews 2024-07-20 13:43:04 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 12 Mageia Robot 2024-07-20 23:23:16 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0165.html

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


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