1 |
commit: 2738246bcb8fd2cce25028db99d2003e9d08a86f |
2 |
Author: stefson <herrtimson <AT> yahoo <DOT> de> |
3 |
AuthorDate: Sun Sep 3 15:52:06 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 3 20:54:09 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=2738246b |
7 |
|
8 |
net-misc/modemmanager: latest in tree version works and is stablized on all musl arches |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
net-misc/modemmanager/Manifest | 5 - |
13 |
.../files/01-org.freedesktop.ModemManager1.rules | 7 -- |
14 |
.../files/modemmanager-1.4.8-musl-XCASE.patch | 45 --------- |
15 |
net-misc/modemmanager/metadata.xml | 15 --- |
16 |
net-misc/modemmanager/modemmanager-1.4.14.ebuild | 109 --------------------- |
17 |
5 files changed, 181 deletions(-) |
18 |
|
19 |
diff --git a/net-misc/modemmanager/Manifest b/net-misc/modemmanager/Manifest |
20 |
deleted file mode 100644 |
21 |
index 4b767db..0000000 |
22 |
--- a/net-misc/modemmanager/Manifest |
23 |
+++ /dev/null |
24 |
@@ -1,5 +0,0 @@ |
25 |
-AUX 01-org.freedesktop.ModemManager1.rules 293 SHA256 f97f132097feefc39608acf10b6cdc4b161ec6beaba5a0582e54fc1f09721e6d SHA512 1839bd770dfaf4c85048a16e41389c7ef43fac1cd36b81cf9129877444db1e0bc00cdbd2344b577316858f13a103d6007be6467d19de075060cab78c40859460 WHIRLPOOL ac1abd043698ff194869926ae2fa33646fde755ad3c30e8a5642aa4a0117b6809152508ba8cc0dd247d18c4f61e021e80407a1bebb0202ade43647d3d7d80fd1 |
26 |
-AUX modemmanager-1.4.8-musl-XCASE.patch 1446 SHA256 af3953bf71067840592dfe4794db0ba44f83395c573749d89b221d8141394a8f SHA512 90ed71dbce38a21f813c2ba93647f5a754896907131885f94b89d58efbcff39b40e23ab53e8763c17d942f4d952172bf098ac95ddc32962acb49b646f3137329 WHIRLPOOL cd81fdd4978a7f81d88a4f9f9122a68680bc1814a036736f55c02661efc951772f90601aa3751d2309c6e5fc7c52beb65bb833efba78bc9dfa6a129e306bc4d2 |
27 |
-DIST ModemManager-1.4.14.tar.xz 1417092 SHA256 abe6cdd515a774bcba3afdcdb1e504569801e79282ccdf26099f33cbb8731ba2 SHA512 2fb5517cd3fbd98cf4048cec326fabf18fb26d88b75e56208d1ed64d70d72d6e826ef30391c86fbcfe4d69661194bcfbb55d545db10ebe8baf8ef16a3c580446 WHIRLPOOL 30c9e1e388c91f8aab73044634e3d122636f526cb9b437a597dc2f35cfd85e61917a568cfa572404f734eb19eb90c2e21bc85e16d6cc9b53518f590981f6efa4 |
28 |
-EBUILD modemmanager-1.4.14.ebuild 3055 SHA256 aacd17a0edf2c92bf5d550ff191f54de29d6ee7f1e3255efba25dee5851da50c SHA512 404802fb24da71464ec207da707d7a51325ea5f27cbd74299891172cd177ac406809572302d1bf3974513f0c27566a13c6a1d4776372772aea72da8a9c692cc8 WHIRLPOOL 946ede56c13468f946649993403ac53fac2f02162a97a8d79ae7fe6b7180363b7f1620a60f2b086b2385719f2fe2a07abb214b421eb3db8d6869e9140694b43b |
29 |
-MISC metadata.xml 553 SHA256 1adf832aa4cc1217e02c3d12a96ae2a7207e57f0e128b8e35f43eeb738702e4a SHA512 14c8333f81e15f63452b1eaba2c17ad469bbd00132dcdeb4aeb9dcf25f8ec69d543685a8cd4bca3b2cb4d2e8b2ff9dd0d94e0add4fe7413316d76b2443e231c5 WHIRLPOOL d8f711d81c5b4457271d18d8800c29f8240304e0e1b02a24c9f3e9155710136ca1374a0fae1df20ae21ca9749e19edf66ef3955fd88ab285ce5c93d5ac04a4ef |
30 |
|
31 |
diff --git a/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules b/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules |
32 |
deleted file mode 100644 |
33 |
index 7fca647..0000000 |
34 |
--- a/net-misc/modemmanager/files/01-org.freedesktop.ModemManager1.rules |
35 |
+++ /dev/null |
36 |
@@ -1,7 +0,0 @@ |
37 |
-// Let users in plugdev group modify ModemManager |
38 |
-polkit.addRule(function(action, subject) { |
39 |
- if (/^org\.freedesktop\.ModemManager1\.(Device\.Control|Contacts|Messaging|Location)$/.test(action.id) && |
40 |
- subject.isInGroup("plugdev") && subject.active) { |
41 |
- return "yes"; |
42 |
- } |
43 |
-}); |
44 |
|
45 |
diff --git a/net-misc/modemmanager/files/modemmanager-1.4.8-musl-XCASE.patch b/net-misc/modemmanager/files/modemmanager-1.4.8-musl-XCASE.patch |
46 |
deleted file mode 100644 |
47 |
index 7ed4aae..0000000 |
48 |
--- a/net-misc/modemmanager/files/modemmanager-1.4.8-musl-XCASE.patch |
49 |
+++ /dev/null |
50 |
@@ -1,45 +0,0 @@ |
51 |
-diff -Naur ModemManager-1.4.8.orig/libqcdm/src/com.c ModemManager-1.4.8/libqcdm/src/com.c |
52 |
---- ModemManager-1.4.8.orig/libqcdm/src/com.c 2015-01-20 21:54:08.000000000 +0000 |
53 |
-+++ ModemManager-1.4.8/libqcdm/src/com.c 2015-07-18 15:13:40.044214647 +0000 |
54 |
-@@ -23,6 +23,11 @@ |
55 |
- #include "com.h" |
56 |
- #include "errors.h" |
57 |
- |
58 |
-+/* Missing from musl */ |
59 |
-+#ifndef XCASE |
60 |
-+#define XCASE 0000004 |
61 |
-+#endif |
62 |
-+ |
63 |
- int |
64 |
- qcdm_port_setup (int fd) |
65 |
- { |
66 |
-diff -Naur ModemManager-1.4.8.orig/libwmc/src/com.c ModemManager-1.4.8/libwmc/src/com.c |
67 |
---- ModemManager-1.4.8.orig/libwmc/src/com.c 2015-01-20 21:54:08.000000000 +0000 |
68 |
-+++ ModemManager-1.4.8/libwmc/src/com.c 2015-07-18 15:13:00.584216132 +0000 |
69 |
-@@ -23,6 +23,11 @@ |
70 |
- #include "com.h" |
71 |
- #include "errors.h" |
72 |
- |
73 |
-+/* Missing from musl */ |
74 |
-+#ifndef XCASE |
75 |
-+#define XCASE 0000004 |
76 |
-+#endif |
77 |
-+ |
78 |
- int |
79 |
- wmc_port_setup (int fd) |
80 |
- { |
81 |
-diff -Naur ModemManager-1.4.8.orig/src/mm-port-serial.c ModemManager-1.4.8/src/mm-port-serial.c |
82 |
---- ModemManager-1.4.8.orig/src/mm-port-serial.c 2015-02-07 19:28:58.000000000 +0000 |
83 |
-+++ ModemManager-1.4.8/src/mm-port-serial.c 2015-07-18 15:13:22.992215289 +0000 |
84 |
-@@ -36,6 +36,11 @@ |
85 |
- #include "mm-port-serial.h" |
86 |
- #include "mm-log.h" |
87 |
- |
88 |
-+/* Missing from musl */ |
89 |
-+#ifndef XCASE |
90 |
-+#define XCASE 0000004 |
91 |
-+#endif |
92 |
-+ |
93 |
- static gboolean port_serial_queue_process (gpointer data); |
94 |
- static void port_serial_schedule_queue_process (MMPortSerial *self, |
95 |
- guint timeout_ms); |
96 |
|
97 |
diff --git a/net-misc/modemmanager/metadata.xml b/net-misc/modemmanager/metadata.xml |
98 |
deleted file mode 100644 |
99 |
index 2e8801c..0000000 |
100 |
--- a/net-misc/modemmanager/metadata.xml |
101 |
+++ /dev/null |
102 |
@@ -1,15 +0,0 @@ |
103 |
-<?xml version="1.0" encoding="UTF-8"?> |
104 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
105 |
-<pkgmetadata> |
106 |
-<maintainer type="project"> |
107 |
- <email>gnome@g.o</email> |
108 |
- <name>Gentoo GNOME Desktop</name> |
109 |
- </maintainer> |
110 |
- <use> |
111 |
- <flag name="mbim">Enable MBIM modem protocol</flag> |
112 |
- <flag name="qmi">Enable support for the QMI modem protocol used by |
113 |
- devices with Qualcomm chipsets</flag> |
114 |
- <flag name="qmi-newest">Avoid deprecated QMI commands. Warning: may |
115 |
- cause incompatibility with older devices.</flag> |
116 |
- </use> |
117 |
-</pkgmetadata> |
118 |
|
119 |
diff --git a/net-misc/modemmanager/modemmanager-1.4.14.ebuild b/net-misc/modemmanager/modemmanager-1.4.14.ebuild |
120 |
deleted file mode 100644 |
121 |
index 578effa..0000000 |
122 |
--- a/net-misc/modemmanager/modemmanager-1.4.14.ebuild |
123 |
+++ /dev/null |
124 |
@@ -1,109 +0,0 @@ |
125 |
-# Copyright 1999-2016 Gentoo Foundation |
126 |
-# Distributed under the terms of the GNU General Public License v2 |
127 |
- |
128 |
-EAPI=6 |
129 |
-GNOME2_LA_PUNT="yes" |
130 |
-VALA_USE_DEPEND="vapigen" |
131 |
- |
132 |
-inherit gnome2 user readme.gentoo-r1 udev vala |
133 |
- |
134 |
-DESCRIPTION="Modem and mobile broadband management libraries" |
135 |
-HOMEPAGE="https://cgit.freedesktop.org/ModemManager/ModemManager/" |
136 |
-SRC_URI="https://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz" |
137 |
- |
138 |
-LICENSE="GPL-2+" |
139 |
-SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N} |
140 |
-KEYWORDS="~alpha amd64 arm ~ia64 ~mips ppc ppc64 ~sparc x86" |
141 |
- |
142 |
-IUSE="+introspection mbim policykit +qmi qmi-newest vala" |
143 |
-REQUIRED_USE=" |
144 |
- qmi-newest? ( qmi ) |
145 |
- vala? ( introspection ) |
146 |
-" |
147 |
- |
148 |
-RDEPEND=" |
149 |
- >=dev-libs/glib-2.32:2 |
150 |
- virtual/libgudev:= |
151 |
- introspection? ( >=dev-libs/gobject-introspection-0.9.6:= ) |
152 |
- mbim? ( >=net-libs/libmbim-1.10 ) |
153 |
- policykit? ( >=sys-auth/polkit-0.106[introspection] ) |
154 |
- qmi? ( >=net-libs/libqmi-1.12.4:= ) |
155 |
-" |
156 |
-DEPEND="${RDEPEND} |
157 |
- dev-util/gdbus-codegen |
158 |
- >=dev-util/intltool-0.40 |
159 |
- sys-devel/gettext |
160 |
- virtual/pkgconfig |
161 |
- vala? ( $(vala_depend) ) |
162 |
-" |
163 |
- |
164 |
-S="${WORKDIR}/ModemManager-${PV}" |
165 |
- |
166 |
-src_prepare() { |
167 |
- eapply "${FILESDIR}"/${PN}-1.4.8-musl-XCASE.patch |
168 |
- |
169 |
- DOC_CONTENTS="If your USB modem shows up as a Flash drive when you plug it in, |
170 |
- You should install sys-apps/usb_modeswitch which will automatically |
171 |
- switch it over to USB modem mode whenever you plug it in.\n" |
172 |
- |
173 |
- if use policykit; then |
174 |
- DOC_CONTENTS+="\nTo control your modem without needing to enter the root password, |
175 |
- add your user account to the 'plugdev' group." |
176 |
- fi |
177 |
- |
178 |
- use vala && vala_src_prepare |
179 |
- gnome2_src_prepare |
180 |
-} |
181 |
- |
182 |
-src_configure() { |
183 |
- gnome2_src_configure \ |
184 |
- --disable-more-warnings \ |
185 |
- --with-udev-base-dir="$(get_udevdir)" \ |
186 |
- --disable-static \ |
187 |
- --with-dist-version=${PVR} \ |
188 |
- $(use_enable introspection) \ |
189 |
- $(use_with mbim) \ |
190 |
- $(use_with policykit polkit) \ |
191 |
- $(use_with qmi) \ |
192 |
- $(use_with qmi-newest newest-qmi-commands) \ |
193 |
- $(use_enable vala) |
194 |
-} |
195 |
- |
196 |
-src_install() { |
197 |
- gnome2_src_install |
198 |
- |
199 |
- # Allow users in plugdev group full control over their modem |
200 |
- if use policykit; then |
201 |
- insinto /usr/share/polkit-1/rules.d/ |
202 |
- doins "${FILESDIR}"/01-org.freedesktop.ModemManager1.rules |
203 |
- fi |
204 |
- |
205 |
- readme.gentoo_create_doc |
206 |
-} |
207 |
- |
208 |
-pkg_postinst() { |
209 |
- gnome2_pkg_postinst |
210 |
- |
211 |
- use policykit && enewgroup plugdev |
212 |
- |
213 |
- # The polkit rules file moved to /usr/share |
214 |
- old_rules="${EROOT}etc/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules" |
215 |
- if [[ -f "${old_rules}" ]]; then |
216 |
- case "$(md5sum ${old_rules})" in |
217 |
- c5ff02532cb1da2c7545c3069e5d0992* | 5c50f0dc603c0a56e2851a5ce9389335* ) |
218 |
- # Automatically delete the old rules.d file if the user did not change it |
219 |
- elog |
220 |
- elog "Removing old ${old_rules} ..." |
221 |
- rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually" |
222 |
- ;; |
223 |
- * ) |
224 |
- elog "The ${old_rules}" |
225 |
- elog "file moved to /usr/share/polkit-1/rules.d/ in >=modemmanager-0.5.2.0-r2" |
226 |
- elog "If you edited ${old_rules}" |
227 |
- elog "without changing its behavior, you may want to remove it." |
228 |
- ;; |
229 |
- esac |
230 |
- fi |
231 |
- |
232 |
- readme.gentoo_print_elog |
233 |
-} |