package/libmemcached: bump to version 1.1.4
PATCH v2 1/1 package/libmemcached: bump to version 1.1.4
- Switch to an active fork
- Switch to cmake-package
- Drop all patches (not needed anymore)
- Use LICENSE file instead of COPYING as COPYING is now a symlink to LICENSE
- Handle libevent and openssl dependencies
https://awesomized.github.io/libmemcached/ChangeLog-1.1.html#v-1-1-4
---
Changes v1 -> v2:
- Drop unneeded LIBMEMCACHED_CPE_ID_PRODUCT
package/libmemcached/0001-disable-tests.patch | 42 ------------------- .../libmemcached/0002-disable-sanitizer.patch | 25 ----------- .../0003-move-ac_config_aux_dir.patch | 25 ----------- .../0004-disable-doc-and-man.patch | 37 ---------------- .../0005-fix-pointer-comparaison.patch | 30 ------------- package/libmemcached/Config.in | 2 +- package/libmemcached/libmemcached.hash | 6 +-- package/libmemcached/libmemcached.mk | 38 +++++++++-------- 8 files changed, 24 insertions(+), 181 deletions(-) delete mode 100644 package/libmemcached/0001-disable-tests.patch delete mode 100644 package/libmemcached/0002-disable-sanitizer.patch delete mode 100644 package/libmemcached/0003-move-ac_config_aux_dir.patch delete mode 100644 package/libmemcached/0004-disable-doc-and-man.patch delete mode 100644 package/libmemcached/0005-fix-pointer-comparaison.patch
package/libmemcached/0001-disable-tests.patch deleted +0 -42
@@ -1,42 +0,0 @@ -Disable the tests, cuts build time by half and avoids build issues -with extra dependencies. - -Signed-off-by: Gustavo Zacarias <[email protected]> - -diff -Nura libmemcached-1.0.18.orig/Makefile.am libmemcached-1.0.18/Makefile.am ---- libmemcached-1.0.18.orig/Makefile.am 2014-07-19 09:24:45.246418899 -0300 -+++ libmemcached-1.0.18/Makefile.am 2014-07-19 09:25:12.701349345 -0300 -@@ -1,6 +1,6 @@ - # vim:ft=automake - --ACLOCAL_AMFLAGS= -I m4 -I libtest/m4 -+ACLOCAL_AMFLAGS= -I m4 - AM_YFLAGS= -d - - # includes append to these: -@@ -45,8 +45,6 @@ - include libmemcached-1.0/include.am - else - --include libtest/include.am -- - include libhashkit-1.0/include.am - include libmemcached-1.0/include.am - -@@ -76,7 +74,6 @@ - include libmemcachedinternal/util/include.am - include rpm/include.mk - include support/include.am --include tests/include.am - include util/include.am - include win32/include.am - -@@ -103,7 +100,7 @@ - @echo "Files that need to be either removed or checked in:" - @bzr unknowns - --clean-local: clean-libtest-check clean-docs-check clean-rpm -+clean-local: clean-docs-check clean-rpm - - - lcov: lcov-clean check
package/libmemcached/0002-disable-sanitizer.patch deleted +0 -25
@@ -1,25 +0,0 @@ -Disable sanitizer checks, they're busted. - -Signed-off-by: Gustavo Zacarias <[email protected]> - -diff -Nura libmemcached-1.0.18.orig/m4/ax_harden_compiler_flags.m4 libmemcached-1.0.18/m4/ax_harden_compiler_flags.m4 ---- libmemcached-1.0.18.orig/m4/ax_harden_compiler_flags.m4 2014-11-13 08:07:09.011614311 -0300 -+++ libmemcached-1.0.18/m4/ax_harden_compiler_flags.m4 2014-11-13 08:07:52.406092440 -0300 -@@ -222,8 +222,6 @@ - # GCC 4.5 removed this. - # _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code]) - -- _SET_SANITIZE_FLAGS -- - AS_IF([test "x$ax_enable_debug" = xno], - [AS_IF([test "x$ac_cv_vcs_checkout" = xyes], - [AS_IF([test "x${host_os}" != "xmingw"], -@@ -337,8 +335,6 @@ - _APPEND_COMPILE_FLAGS_ERROR([-fstack-protector-all]) - ])])])]) - -- _SET_SANITIZE_FLAGS -- - AS_IF([test "x$ac_cv_warnings_as_errors" = xyes], - [AX_APPEND_FLAG([-Werror])]) - AC_LANG_POP([C++])
package/libmemcached/0003-move-ac_config_aux_dir.patch deleted +0 -25
@@ -1,25 +0,0 @@ -Move AC_CONFIG_AUX_DIR up a few lines so the autotools can find it - -This patch is based on the same solution adopted by Debian: - - https://lists.debian.org/debian-release/2014/11/msg01231.html - -Signed-off-by: Vicente Olivert Riera <[email protected]> - -diff -rup a/configure.ac b/configure.ac ---- a/configure.ac 2014-02-09 11:52:42.000000000 +0000 -+++ b/configure.ac 2015-01-06 15:07:10.003074775 +0000 -@@ -13,11 +13,12 @@ m4_include([version.m4]) - AC_PREREQ([2.61]) - AC_INIT([libmemcached],VERSION_NUMBER,[http://libmemcached.org/]) - -+AC_CONFIG_AUX_DIR([build-aux]) -+ - # Setup the compilers early on - AC_PROG_CC([cc gcc clang]) - AC_PROG_CXX([c++ g++ clang++]) - --AC_CONFIG_AUX_DIR([build-aux]) - AC_CONFIG_MACRO_DIR([m4]) - - AC_CANONICAL_HOST
package/libmemcached/0004-disable-doc-and-man.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 6c01bd3562cc18fbafdf950bbeb73a399c1adcdd Mon Sep 17 00:00:00 2001 -From: Romain Naour <[email protected]> -Date: Tue, 12 May 2015 00:00:02 +0200 -Subject: [PATCH] disable doc and man - -WARNING: master file /home/naourr/git/buildroot/test/libmemcached-bfin/build/libmemcached-1.0.18/docs/index.rst not found - -Exception occurred: - File "/usr/lib/python2.7/site-packages/sphinx/environment.py", line 1213, in get_doctree - f = open(doctree_filename, 'rb') -IOError: [Errno 2] No such file or directory: '/home/naourr/buildroot-test/test/libmemcached-bfin/build/libmemcached-1.0.18/man/.doctrees/hashkit_create.doctree' -The full traceback has been saved in /tmp/sphinx-err-JCIsnB.log, if you want to report the issue to the developers. -Please also report this if it was a user error, so that a better error message can be provided next time. -Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>, -or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks! - -Signed-off-by: Romain Naour <[email protected]> ---- - Makefile.am | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/Makefile.am b/Makefile.am -index 7f44102..cb7d058 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -55,8 +55,6 @@ endif - include libmemcachedutil-1.0/include.am - - include clients/include.am --include docs/include.am --include man/include.am - - if BUILD_LIBMEMCACHED_PROTOCOL - include example/include.am --- -1.9.3 -
package/libmemcached/0005-fix-pointer-comparaison.patch deleted +0 -30
@@ -1,30 +0,0 @@ -Fix pointer comparaison - -opt_servers is a pointer, not a boolean, so testing against false to -know if the pointer is NULL no longer works with the more strict gcc -7.x checks. - -[Taken from http://pkgs.fedoraproject.org/cgit/rpms/libmemcached.git/plain/libmemcached-build.patch.] -Signed-off-by: Thomas Petazzoni <[email protected]> - -diff -up ./clients/memflush.cc.old ./clients/memflush.cc ---- ./clients/memflush.cc.old 2017-02-12 10:12:59.615209225 +0100 -+++ ./clients/memflush.cc 2017-02-12 10:13:39.998382783 +0100 -@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) - { - options_parse(argc, argv); - -- if (opt_servers == false) -+ if (!opt_servers) - { - char *temp; - -@@ -48,7 +48,7 @@ int main(int argc, char *argv[]) - opt_servers= strdup(temp); - } - -- if (opt_servers == false) -+ if (!opt_servers) - { - std::cerr << "No Servers provided" << std::endl; - exit(EXIT_FAILURE);
package/libmemcached/Config.in +1 -1
@@ -8,7 +8,7 @@ config BR2_PACKAGE_LIBMEMCACHED It has been designed to be light on memory usage, thread safe, and provide full access to server side methods. - http://libmemcached.org/libMemcached.html + https://awesomized.github.io/libmemcached comment "libmemcached needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
package/libmemcached/libmemcached.hash +3 -3
@@ -1,5 +1,5 @@ -# From https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz/+md5 -md5 b3958716b4e53ddc5992e6c49d97e819 libmemcached-1.0.18.tar.gz +# Locally computed +sha256 c477e1f6510e1dc698e84f3717ce690a8f65b94c616ecaa62306cce0f5e3116a libmemcached-1.1.4.tar.gz # Hash for license file: -sha256 4e9032d0f539276db05519ee3d09ca6167d2134ec91c556e8c80ef3efe633fd2 COPYING +sha256 65013ec8b416f28ae838ed3f23ea3ae47e5dbc70fe8492f39338e389a7970fd9 LICENSE
package/libmemcached/libmemcached.mk +20 -18
@@ -4,26 +4,28 @@ # ################################################################################ -LIBMEMCACHED_VERSION_MAJOR = 1.0 -LIBMEMCACHED_VERSION = $(LIBMEMCACHED_VERSION_MAJOR).18 -LIBMEMCACHED_SITE = http://launchpad.net/libmemcached/$(LIBMEMCACHED_VERSION_MAJOR)/$(LIBMEMCACHED_VERSION)/+download -LIBMEMCACHED_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' \ - ax_cv_check_cflags__Werror__fmudflapth=no \ - ax_cv_check_cxxflags__Werror__fmudflapth=no -LIBMEMCACHED_CONF_OPTS = --disable-dtrace +LIBMEMCACHED_VERSION = 1.1.4 +LIBMEMCACHED_SITE = \ + $(call github,awesomized,libmemcached,$(LIBMEMCACHED_VERSION)) +LIBMEMCACHED_CONF_OPTS = -DENABLE_DTRACE=OFF LIBMEMCACHED_INSTALL_STAGING = YES -LIBMEMCACHED_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBEVENT),libevent) -# For 0001-disable-tests.patch and 0002-disable-sanitizer.patch -LIBMEMCACHED_AUTORECONF = YES +LIBMEMCACHED_DEPENDENCIES = host-bison host-flex LIBMEMCACHED_LICENSE = BSD-3-Clause -LIBMEMCACHED_LICENSE_FILES = COPYING +LIBMEMCACHED_LICENSE_FILES = LICENSE +LIBMEMCACHED_CPE_ID_VENDOR = awesome -ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) -LIBMEMCACHED_CONF_ENV += \ - ax_cv_check_cflags__Werror__fPIE=no \ - ax_cv_check_cflags__Werror__pie=no \ - ax_cv_check_cxxflags__Werror__fPIE=no \ - ax_cv_check_cxxflags__Werror__pie=no +ifeq ($(BR2_PACKAGE_LIBEVENT),y) +LIBMEMCACHED_DEPENDENCIES += libevent +LIBMEMCACHED_CONF_OPTS += -DENABLE_MEMASLAP=ON +else +LIBMEMCACHED_CONF_OPTS += -DENABLE_MEMASLAP=OFF endif -$(eval $(autotools-package)) +ifeq ($(BR2_PACKAGE_OPENSSL),y) +LIBMEMCACHED_DEPENDENCIES += openssl +LIBMEMCACHED_CONF_OPTS += -DENABLE_OPENSSL_CRYPTO=ON +else +LIBMEMCACHED_CONF_OPTS += -DENABLE_OPENSSL_CRYPTO=OFF +endif + +$(eval $(cmake-package))
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 7 lines · On Sun, 26 Mar 2023 23:30:20 +0200 Fabrice Fontaine…
- Switch to an active fork
- Switch to cmake-package
- Drop all patches (not needed anymore)
- Use LICENSE file instead of COPYING as COPYING is now a symlink to LICENSE
- Handle libevent and openssl dependencies
Quoted 6 lines
https://awesomized.github.io/libmemcached/ChangeLog-1.1.html#v-1-1-4
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2:
- Drop unneededLIBMEMCACHED_CPE_ID_PRODUCT
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot