Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/haserl

Buildroot ulf at uclibc.org 2 participants 2 messages Oct 12, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-10-12 07:28:56 -0700 (Fri, 12 Oct 2007) New Revision: 20229

Log:
Remove LEGACY functions from haserl

Added:
trunk/buildroot/package/haserl/haserl-0.8.0-legacy.patch

Modified:
trunk/buildroot/package/haserl/haserl.mk

Changeset:
Added: trunk/buildroot/package/haserl/haserl-0.8.0-legacy.patch
===================================================================

buildroot/package/haserl/haserl-0.8.0-legacy.patch +12 -0
@@ -0,0 +1,12 @@
+diff -urN haserl-0.8.0-0rig/src/haserl.c haserl-0.8.0/src/haserl.c
+--- haserl-0.8.0-0rig/src/haserl.c	2004-11-10 18:59:35.000000000 +0100
++++ haserl-0.8.0/src/haserl.c	2007-10-12 14:36:28.000000000 +0200
+@@ -131,7 +131,7 @@
+ 	if (strlen(prefix)) { memcpy (entry, prefix, strlen(prefix)); }
+ 	memcpy ((char *) (entry + strlen(prefix)), newbuf, strlen(newbuf));
+ 
+-	keylen = (size_t) (index (entry, '=') - entry);
++	keylen = (size_t) (strchr (entry, '=') - entry);
+ 	
+ 	if ( keylen <= 0 ) {
+ 			free (entry);

Modified: trunk/buildroot/package/haserl/haserl.mk
===================================================================

buildroot/package/haserl/haserl.mk +3 -0
@@ -15,6 +15,7 @@
 
 $(HASERL_DIR)/.unpacked: $(DL_DIR)/$(HASERL_SOURCE)
 	$(HASERL_CAT) $(DL_DIR)/$(HASERL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	toolchain/patch-kernel.sh $(HASERL_DIR) package/haserl/ haserl-$(HASERL_VERSION)\*.patch
 	touch $@
 
 $(HASERL_DIR)/.configured: $(HASERL_DIR)/.unpacked
@@ -41,6 +42,8 @@
 
 haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
 
+haserl-unpacked: $(HASERL_DIR)/.unpacked
+
 haserl-clean:
 	-$(MAKE) -C $(HASERL_DIR) clean
 
#1 lore raw

Why not upgrade to Haserl 0.9.20? I know it is called a developer version, but the improvements compared to 0.8.0 are so substantial that it would be a good idea to upgrade. We have been using 0.9.x for a long time here in our embedded firmware project.
--
Alexander Kriegisch