mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
20
package/matchbox-panel/0001-index-is-legacy.patch
Normal file
20
package/matchbox-panel/0001-index-is-legacy.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Replace the legacy index() with strchr()
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
applets/mb-applet-menu-launcher.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
|
||||
===================================================================
|
||||
--- matchbox-panel-0.9.3.orig/applets/mb-applet-menu-launcher.c
|
||||
+++ matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
|
||||
@@ -280,7 +280,7 @@
|
||||
DBG("\tkey %s ", key);
|
||||
if (*(++p) == '"') { p++; tc = sc; } /* skip "'s */
|
||||
val = p;
|
||||
- while(index(tc,*p) == NULL)
|
||||
+ while(strchr(tc,*p) == NULL)
|
||||
{
|
||||
if (*p == '\\' && *(p+1) == '"') p++; /* skip \" */
|
||||
p++;
|
||||
34
package/matchbox-panel/0002-mb-applet-wireless.patch
Normal file
34
package/matchbox-panel/0002-mb-applet-wireless.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
mb-applet-wireless: fix undefined reference to `log' and `lrint'
|
||||
|
||||
mb-applet-wireless.o: In function `update_wireless':
|
||||
.. matchbox-panel-0.9.3/applets/mb-applet-wireless.c:143: undefined reference to `log'
|
||||
.. matchbox-panel-0.9.3/applets/mb-applet-wireless.c:143: undefined reference to `lrint'
|
||||
|
||||
Signed-off-by: Jean-Paul Etienne <fractalclone@gmail.com>
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
[arnout: add description and Signed-off-by]
|
||||
---
|
||||
diff -rup matchbox-panel-0.9.3.orig/applets/Makefile.in matchbox-panel-0.9.3/applets/Makefile.in
|
||||
--- matchbox-panel-0.9.3.orig/applets/Makefile.in 2015-01-23 00:16:47.594850985 +0100
|
||||
+++ matchbox-panel-0.9.3/applets/Makefile.in 2015-01-23 00:15:18.458694947 +0100
|
||||
@@ -198,7 +198,7 @@ WANT_SMALL_ICONS_FALSE = @WANT_SMALL_ICO
|
||||
WANT_SMALL_ICONS_TRUE = @WANT_SMALL_ICONS_TRUE@
|
||||
WANT_WIFI_FALSE = @WANT_WIFI_FALSE@
|
||||
WANT_WIFI_TRUE = @WANT_WIFI_TRUE@
|
||||
-WIRELESS_LIBS = @WIRELESS_LIBS@
|
||||
+WIRELESS_LIBS = @WIRELESS_LIBS@ -lm
|
||||
XGETTEXT = @XGETTEXT@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_STRIP = @ac_ct_STRIP@
|
||||
diff -rup matchbox-panel-0.9.3.orig/applets/mb-applet-wireless.c matchbox-panel-0.9.3/applets/mb-applet-wireless.c
|
||||
--- matchbox-panel-0.9.3.orig/applets/mb-applet-wireless.c 2015-01-23 00:16:31.531822865 +0100
|
||||
+++ matchbox-panel-0.9.3/applets/mb-applet-wireless.c 2015-01-23 00:03:43.067563827 +0100
|
||||
@@ -50,6 +50,8 @@
|
||||
|
||||
#endif
|
||||
|
||||
+#include <math.h>
|
||||
+
|
||||
#ifdef MB_HAVE_PNG
|
||||
#define IMG_EXT "png"
|
||||
#else
|
||||
21
package/matchbox-panel/0003-mb-applet-battery.patch
Normal file
21
package/matchbox-panel/0003-mb-applet-battery.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
mb-applet-battery: don't declare line_parse as static
|
||||
|
||||
Fix this build failure:
|
||||
mb-applet-battery.c: In function 'read_apm':
|
||||
mb-applet-battery.c:181:2: error: invalid storage class for function 'line_parse'
|
||||
|
||||
Reported-by: Arnout Vandecappelle <arnout@mind.be>
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
diff -durN matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c matchbox-panel-0.9.3/applets/mb-applet-battery.c
|
||||
--- matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c 2006-02-07 23:27:24.000000000 +0100
|
||||
+++ matchbox-panel-0.9.3/applets/mb-applet-battery.c 2015-05-02 17:13:00.843578796 +0200
|
||||
@@ -177,7 +177,7 @@
|
||||
unsigned long present_rate;
|
||||
};
|
||||
|
||||
- static int
|
||||
+ int
|
||||
line_parse(char *line, struct entry *e)
|
||||
{
|
||||
char *ptr;
|
||||
6
package/matchbox-panel/Config.in
Normal file
6
package/matchbox-panel/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_MATCHBOX_PANEL
|
||||
bool "matchbox-panel"
|
||||
select BR2_PACKAGE_MATCHBOX_LIB
|
||||
help
|
||||
A flexible always present 'window bar' for holding
|
||||
application launchers.
|
||||
2
package/matchbox-panel/matchbox-panel.hash
Normal file
2
package/matchbox-panel/matchbox-panel.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://downloads.yoctoproject.org/releases/matchbox/matchbox-panel/0.9/matchbox-panel-0.9.3.tar.bz2.md5
|
||||
md5 56d1807636f3919e22e51896ab7ccd2e matchbox-panel-0.9.3.tar.bz2
|
||||
35
package/matchbox-panel/matchbox-panel.mk
Normal file
35
package/matchbox-panel/matchbox-panel.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# matchbox-panel
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MATCHBOX_PANEL_VERSION_MAJOR = 0.9
|
||||
MATCHBOX_PANEL_VERSION = $(MATCHBOX_PANEL_VERSION_MAJOR).3
|
||||
MATCHBOX_PANEL_SOURCE = matchbox-panel-$(MATCHBOX_PANEL_VERSION).tar.bz2
|
||||
MATCHBOX_PANEL_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-panel/$(MATCHBOX_PANEL_VERSION_MAJOR)
|
||||
MATCHBOX_PANEL_LICENSE = GPL-2.0+
|
||||
MATCHBOX_PANEL_LICENSE_FILES = COPYING
|
||||
MATCHBOX_PANEL_DEPENDENCIES = matchbox-lib $(TARGET_NLS_DEPENDENCIES)
|
||||
MATCHBOX_PANEL_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
||||
MATCHBOX_PANEL_CONF_OPTS = --enable-expat --enable-dnotify
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MATCHBOX_STARTUP_MONITOR),y)
|
||||
MATCHBOX_PANEL_CONF_OPTS += --enable-startup-notification
|
||||
MATCHBOX_PANEL_DEPENDENCIES += matchbox-startup-monitor
|
||||
else
|
||||
MATCHBOX_PANEL_CONF_OPTS += --disable-startup-notification
|
||||
endif
|
||||
|
||||
# Using ACPI is only possible on x86 (32- or 64-bit) or AArch64
|
||||
ifeq ($(BR2_aarch64)$(BR2_i386)$(BR2_x86_64),y)
|
||||
MATCHBOX_PANEL_CONF_OPTS += --enable-acpi-linux
|
||||
else
|
||||
MATCHBOX_PANEL_CONF_OPTS += --disable-acpi-linux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y)
|
||||
MATCHBOX_PANEL_DEPENDENCIES += wireless_tools
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user