Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525436 - net-wireless/wpa_supplicant-2.3 - use upstream systemd service files
Summary: net-wireless/wpa_supplicant-2.3 - use upstream systemd service files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-10-14 20:03 UTC by Markus Rathgeb
Modified: 2014-10-16 17:24 UTC (History)
2 users (show)

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


Attachments
wpa_supplicant_at.service.patch (wpa_supplicant_at.service.patch,568 bytes, patch)
2014-10-14 20:04 UTC, Markus Rathgeb
Details | Diff
0001-Use-upstream-systemd-service-files.patch (0001-Use-upstream-systemd-service-files.patch,5.42 KB, patch)
2014-10-14 22:06 UTC, Markus Rathgeb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :)