summaryrefslogtreecommitdiffstats
path: root/package/haserl
diff options
context:
space:
mode:
Diffstat (limited to 'package/haserl')
-rw-r--r--package/haserl/haserl-0.8.0-legacy.patch12
-rw-r--r--package/haserl/haserl.mk3
2 files changed, 15 insertions, 0 deletions
diff --git a/package/haserl/haserl-0.8.0-legacy.patch b/package/haserl/haserl-0.8.0-legacy.patch
new file mode 100644
index 000000000..bb6f3b0d4
--- /dev/null
+++ b/package/haserl/haserl-0.8.0-legacy.patch
@@ -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);
diff --git a/package/haserl/haserl.mk b/package/haserl/haserl.mk
index 5b11a801f..ccde75cc9 100644
--- a/package/haserl/haserl.mk
+++ b/package/haserl/haserl.mk
@@ -15,6 +15,7 @@ $(DL_DIR)/$(HASERL_SOURCE):
$(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: uclibc $(HASERL_DIR)/.installed
haserl-source: $(DL_DIR)/$(HASERL_SOURCE)
+haserl-unpacked: $(HASERL_DIR)/.unpacked
+
haserl-clean:
-$(MAKE) -C $(HASERL_DIR) clean