Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 525436

Summary: net-wireless/wpa_supplicant-2.3 - use upstream systemd service files
Product: Gentoo Linux Reporter: Markus Rathgeb <maggu2810>
Component: Current packagesAssignee: Bjarke Istrup Pedersen (RETIRED) <gurligebis>
Status: RESOLVED FIXED    
Severity: normal CC: Adrian.Bassett, zerochaos
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: wpa_supplicant_at.service.patch
0001-Use-upstream-systemd-service-files.patch

Description Markus Rathgeb 2014-10-14 20:03:31 UTC
The systemd service file (included in portage files directory) "wpa_supplicant@.service" contains a hardcoded interface name instead if the alias usage.
The ExecStart line already uses %I, but the install alias is using @wlan0.service instead of @%i.service

Reproducible: Always
Comment 1 Markus Rathgeb 2014-10-14 20:04:27 UTC
Created attachment 386688 [details, diff]
wpa_supplicant_at.service.patch

Fix interface name handling
Comment 2 Markus Rathgeb 2014-10-14 20:10:56 UTC
There are already correct systemd service files in the upstream package.

/var/tmp/portage/net-wireless/wpa_supplicant-2.3/work/
wpa_supplicant-2.3/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
/var/tmp/portage/net-wireless/wpa_supplicant-2.3/work/wpa_supplicant-2.3/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
/var/tmp/portage/net-wireless/wpa_supplicant-2.3/work/wpa_supplicant-2.3/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
/var/tmp/portage/net-wireless/wpa_supplicant-2.3/work/wpa_supplicant-2.3/wpa_supplicant/systemd/wpa_supplicant.service.in

We should use that one.
Comment 3 Markus Rathgeb 2014-10-14 22:06:50 UTC
Created attachment 386694 [details, diff]
0001-Use-upstream-systemd-service-files.patch

The attached patch enable usage of upstream systemd service files.
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2014-10-16 17:24:53 UTC
Fixed in the 2.3 ebuild :)