Repository : ssh://git@open-mesh.org/openwrt-feed-alfred
On branch : master
commit 91b8c70026bb93ce1c99e99d86ea021c52d17aac Author: Simon Wunderlich sw@simonwunderlich.de Date: Wed Oct 23 01:46:02 2013 +0200
alfred: bump version to 2013.4.0
bump alfred to version 2013.4.0. From the CHANGELOG:
* add new json output format for vis * add gps location information service for alfred * allow network interface to vanish and return without restart * allow to switch between master and slave operation without * restart * renamed vis to batadv-vis to avoid collisions with other vis * binaries * add manpages * various code cleanups * bugs squashed:
* handle failing write() in unix sockets * Fix crash when vis opened empty file
alfred-gpsd is optional and requires libgps from the gpsd package to compile. It needed its own -lm for libgps which does not link to libm by itself, a patch for upstream alfred has been posted.
Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
91b8c70026bb93ce1c99e99d86ea021c52d17aac alfred/Config.in | 8 ++++- alfred/Makefile | 15 +++++---- ...ed-gpsd-add-lm-to-linker-flags-for-libgps.patch | 33 ++++++++++++++++++++ 3 files changed, 49 insertions(+), 7 deletions(-)
diff --git a/alfred/Config.in b/alfred/Config.in index fd664ca..1791949 100644 --- a/alfred/Config.in +++ b/alfred/Config.in @@ -1,7 +1,13 @@ +config ALFRED_NEEDS_libgps + bool
config PACKAGE_ALFRED_VIS bool "enable vis server for alfred" depends on PACKAGE_alfred default y
- +config PACKAGE_ALFRED_GPSD + bool "enable gpsd service for alfred" + depends on PACKAGE_alfred + select ALFRED_NEEDS_libgps + default n diff --git a/alfred/Makefile b/alfred/Makefile index 83046d7..2dfaa66 100644 --- a/alfred/Makefile +++ b/alfred/Makefile @@ -11,9 +11,9 @@ include $(TOPDIR)/rules.mk # The latest alfred git hash in PKG_REV can be obtained from http://git.open-mesh.org/alfred.git # PKG_NAME:=alfred -PKG_VERSION:=2013.3.0 -PKG_RELEASE:=1 -PKG_REV:=06ce1ccfd08c200f65cddac45e83b3d357c0b4ac +PKG_VERSION:=2013.4.0 +PKG_RELEASE:=0 +PKG_REV:=67e0d7e9cad9f1e2143925183da64a14ab28eb0f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.gz PKG_SOURCE_URL:=git://git.open-mesh.org/alfred.git @@ -30,7 +30,8 @@ define Package/alfred SECTION:=net CATEGORY:=Network TITLE:=Almighty Lightweight Fact Remote Exchange Daemon - DEPENDS:= +libc +IPV6:kmod-ipv6 +librt + DEPENDS:= +libc +IPV6:kmod-ipv6 +librt \ + +ALFRED_NEEDS_libgps:libgps endef
define Package/alfred/conffiles @@ -42,7 +43,8 @@ define Package/alfred/config endef
MAKE_ALFRED_FLAGS=\ - CONFIG_ALFRED_VIS=$(if $(CONFIG_PACKAGE_ALFRED_VIS),y,n) + CONFIG_ALFRED_VIS=$(if $(CONFIG_PACKAGE_ALFRED_VIS),y,n) \ + CONFIG_ALFRED_GPSD=$(if $(CONFIG_PACKAGE_ALFRED_GPSD),y,n)
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto TARGET_LDFLAGS += -Wl,--gc-sections -fuse-linker-plugin @@ -56,7 +58,8 @@ endef define Package/alfred/install $(INSTALL_DIR) $(1)/usr/sbin cp -fpR $(PKG_BUILD_DIR)/alfred $(1)/usr/sbin/ - [ "x$(CONFIG_PACKAGE_ALFRED_VIS)" == "xy" ] && cp -fpR $(PKG_BUILD_DIR)/vis/vis $(1)/usr/sbin/ ; true + [ "x$(CONFIG_PACKAGE_ALFRED_VIS)" == "xy" ] && cp -fpR $(PKG_BUILD_DIR)/vis/batadv-vis $(1)/usr/sbin/ ; true + [ "x$(CONFIG_PACKAGE_ALFRED_GPSD)" == "xy" ] && cp -fpR $(PKG_BUILD_DIR)/gpsd/alfred-gpsd $(1)/usr/sbin/ ; true $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/alfred.init $(1)/etc/init.d/alfred $(INSTALL_DIR) $(1)/etc/config diff --git a/alfred/patches/0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch b/alfred/patches/0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch new file mode 100644 index 0000000..3be7169 --- /dev/null +++ b/alfred/patches/0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch @@ -0,0 +1,33 @@ +From dbaaf2b294af120e42a0e95644640b128044a568 Mon Sep 17 00:00:00 2001 +From: Simon Wunderlich sw@simonwunderlich.de +Date: Wed, 23 Oct 2013 01:17:36 +0200 +Subject: [PATCH] alfred-gpsd: add -lm to linker flags for libgps + +Appearently applications using libgps must link -lm themselves. A patch +was submitted [1] to change this unusual behaviour upstream, but was +never applied. Therefore link to -lm to alfred-gpsd too as this should +not hurt anyway. + +[1] https://lists.berlios.de/pipermail/gpsd-dev/2011-August/009451.html + +Signed-off-by: Simon Wunderlich sw@simonwunderlich.de +--- + gpsd/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gpsd/Makefile b/gpsd/Makefile +index 9b21652..92e690f 100644 +--- a/gpsd/Makefile ++++ b/gpsd/Makefile +@@ -49,7 +49,7 @@ ifeq ($(origin LIBGPS_CFLAGS) $(origin LIBGPS_LDLIBS), undefined undefined) + $(error No $(LIBGPS_NAME) development libraries found!) + endif + LIBGPS_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBGPS_NAME)) +- LIBGPS_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME)) ++ LIBGPS_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME)) -lm + endif + CFLAGS += $(LIBGPS_CFLAGS) + LDLIBS += $(LIBGPS_LDLIBS) +-- +1.7.10.4 +