From: Alexander Dahl <[email protected]>

The memcached ./configure option for lighttpd changed, see the changeset
for upgrading lighttpd package from 1.4.39 to 1.4.45. For making the
configure option consistent with the menu entry, the menu variable is
renamed here. It seems lighttpd has switched from libmemcache to
libmemcached for memcached support.

Took this from a not applied patch from 2016, and added the necessary
migration helper suggested by Michael Olbrich, plus the dependency
changes in lighttpd.in.

However libmemcache and libmemcached are outdated and build against the
old libmemcached fails now, so mark it as broken.

Suggested-by: Andreas Geisenhainer <[email protected]>
Suggested-by: Michael Olbrich <[email protected]>
Signed-off-by: Alexander Dahl <[email protected]>
---
v2 -> v3:
  * added dependency to BROKEN
  * changed dependency from libmemcache to libmemcached
---
 rules/lighttpd.in           | 7 ++++---
 rules/lighttpd.make         | 2 +-
 scripts/migrate/migrate_ptx | 8 ++++++++
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/rules/lighttpd.in b/rules/lighttpd.in
index d53539408..c43039f9f 100644
--- a/rules/lighttpd.in
+++ b/rules/lighttpd.in
@@ -16,7 +16,7 @@ menuconfig LIGHTTPD
        select SQLITE                   if LIGHTTPD_WEBDAV_PROPS
        select LIBUUID                  if LIGHTTPD_WEBDAV_LOCKS
        select OPENSSL                  if LIGHTTPD_OPENSSL
-       select LIBMEMCACHE              if LIGHTTPD_MEMCACHE
+       select LIBMEMCACHED             if LIGHTTPD_MEMCACHED
        select LUA                      if LIGHTTPD_LUA
        select LUA_INSTALL_LIBLUA       if LIGHTTPD_LUA
        select PHP5                     if LIGHTTPD_MOD_FASTCGI_PHP && RUNTIME
@@ -60,9 +60,10 @@ config LIGHTTPD_LUA
        help
          lua engine for mod_cml and mod_magnet
 
-config LIGHTTPD_MEMCACHE
+config LIGHTTPD_MEMCACHED
        bool
        prompt "memcached storage"
+       depends on BROKEN
        help
          memcached storage for mod_trigger_b4_dl and mod_cml
 
@@ -171,7 +172,7 @@ config LIGHTTPD_MOD_REWRITE
 
 config LIGHTTPD_MOD_TRIGGER_B4_DL
        bool
-       select LIGHTTPD_MEMCACHE
+       select LIGHTTPD_MEMCACHED
        select LIGHTTPD_PCRE
        prompt "mod_trigger_b4_dl"
        help
diff --git a/rules/lighttpd.make b/rules/lighttpd.make
index fd6e1cf84..8b522670a 100644
--- a/rules/lighttpd.make
+++ b/rules/lighttpd.make
@@ -60,7 +60,7 @@ LIGHTTPD_CONF_OPT     := \
        --$(call ptx/wwo, PTXCONF_LIGHTTPD_WEBDAV_LOCKS)-uuid \
        --without-gdbm \
        --without-geoip \
-       --$(call ptx/wwo, PTXCONF_LIGHTTPD_MEMCACHE)-memcached \
+       --$(call ptx/wwo, PTXCONF_LIGHTTPD_MEMCACHED)-memcached \
        --$(call ptx/wwo, PTXCONF_LIGHTTPD_LUA)-lua
 
 # ----------------------------------------------------------------------------
diff --git a/scripts/migrate/migrate_ptx b/scripts/migrate/migrate_ptx
index d684137aa..d92beb54e 100755
--- a/scripts/migrate/migrate_ptx
+++ b/scripts/migrate/migrate_ptx
@@ -290,3 +290,11 @@ s/^\(\(# 
\)\?PTXCONF_\)DOSFSTOOLS_DOSFSCK_MSDOS/\1DOSFSTOOLS_FSCK_FAT_MSDOS/
 s/^\(\(# \)\?PTXCONF_\)DOSFSTOOLS_DOSFSCK_VFAT/\1DOSFSTOOLS_FSCK_FAT_VFAT/
 s/^\(\(# \)\?PTXCONF_\)DOSFSTOOLS_DOSFSCK/\1DOSFSTOOLS_FSCK_FAT/
 s/^\(\(# \)\?PTXCONF_\)DOSFSTOOLS_DOSFSLABEL/\1DOSFSTOOLS_FATLABEL/
+
+#
+# from   : ptxdist-2017.07.0
+# to     : ptxdist-2017.08.0
+# symbol : LIGHTTPD_MEMCACHE -> LIGHTTPD_MEMCACHED
+# reason : option renamed
+#
+s/^\(\(# \)\?PTXCONF_\)LIGHTTPD_MEMCACHE/\1LIGHTTPD_MEMCACHED/
-- 
2.11.0


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to