Sync from SUSE:SLFO:Main memcached revision 679a7be58363c49181bf1127d4f5e920

This commit is contained in:
Adrian Schröter 2024-10-01 08:48:33 +02:00
parent a179712ff1
commit 55f949f05b
8 changed files with 98 additions and 20 deletions

BIN
memcached-1.6.23.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
memcached-1.6.29.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
addFilter("incoherent-init-script-name")

1
memcached-sysusers.conf Normal file
View File

@ -0,0 +1 @@
u memcached - "user for memcached" /var/lib/memcached -

1
memcached-tmpfiles.conf Normal file
View File

@ -0,0 +1 @@
D /run/memcached 0750 memcached memcached

View File

@ -1,3 +1,67 @@
-------------------------------------------------------------------
Sat Aug 10 16:59:23 UTC 2024 - Andrea Manzini <andrea.manzini@suse.com>
- update to 1.6.29:
* Speeds up displaying stats proxy when many user defined counters are used.
* If a user counter changes name, it will be reset to zero.
* Allows overriding commands either by key prefix or specific command.
* see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1629
- update to 1.6.28:
* Fixes unfortunate potentially critical use-after-free bug in the proxy mode
that was introduced in 1.6.27. The bug is difficult to trigger but if you
are on 1.6.27 upgrading is strongly recommended.
* Also adds experimental support for TLS to proxy backends. Please let us know
if you intend to use this feature as it has only received limited testing;
we will prioritize further work if folks are interested in using it.
* memcached-tool: add -u flag to unescape special chars in keys names
* proxy: add counters for VM memory and GC runs
* see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1628
- update to 1.6.27:
* Many proxy updates, including a critical stability fix for users of the newer
style request API.
* Adds new meta protocol extensions:
+ Ecas: If specified and request succeeds, uses supplied number for the CAS
value of the item. This allows using external versioning for cache data
(ie; row versions, crc's, etc).
+ x flag for md: This flag causes md to atomically replace the value with the
same meta data, but 0 byte value. Can be combined with I to make an empty
item that is marked stale.
* see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1627
- update to 1.6.26:
* Fixes a crash when lru_crawler metadump is used and the client connection
is closed early. Requires closing the client exactly before the last few
kilobytes of a dump are about to be flushed.
* Also improves the ergonomics of proxy configurations via start arguments.
* see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1626
- update to 1.6.25:
* Main focus of this release is an overhaul of extstore's space compaction system,
and addition of disk specialization and basic tiering support.
This optimization can greatly reduce write amplification and improve general performance.
* see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1625
- update to 1.6.24:
* Mostly fixes from the fix backlog and proxy updates.
* see details at https://github.com/memcached/memcached/wiki/ReleaseNotes1624
-------------------------------------------------------------------
Fri Feb 23 10:22:55 UTC 2024 - pgajdos@suse.com
- Use %autosetup macro. Allows to eliminate the usage of deprecated
%patchN
-------------------------------------------------------------------
Mon Feb 19 01:06:31 UTC 2024 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Drop obsolete rpmlint filter
-------------------------------------------------------------------
Mon Feb 19 00:10:25 UTC 2024 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Create /run/memcached as a location for sockets
- Use conditionals for sysusers/tmpfiles
-------------------------------------------------------------------
Mon Jan 29 14:22:08 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -25,8 +25,15 @@
%else
%bcond_with tls
%endif
%if 0%{?suse_version} >= 1500
%bcond_without sysusers
%bcond_without tmpfiles
%else
%bcond_with sysusers
%bcond_with tmpfiles
%endif
Name: memcached
Version: 1.6.23
Version: 1.6.29
Release: 0
Summary: A high-performance, distributed memory object caching system
License: BSD-3-Clause
@ -34,9 +41,9 @@ Group: Productivity/Networking/Other
URL: https://memcached.org/
Source: https://www.memcached.org/files/%{name}-%{version}.tar.gz
Source2: %{name}.sysconfig
Source3: memcached-rpmlintrc
Source4: memcached.service
Source5: system-user-memcached.conf
Source5: %{name}-sysusers.conf
Source6: %{name}-tmpfiles.conf
Patch0: harden_memcached.service.patch
BuildRequires: autoconf
BuildRequires: automake
@ -52,7 +59,7 @@ BuildRequires: perl
BuildRequires: perl-IO-Socket-SSL
BuildRequires: perl-Net-SSLeay
%endif
%if 0%{?suse_version} >= 1500
%if %{with sysusers}
BuildRequires: sysuser-tools
%sysusers_requires
%else
@ -84,8 +91,7 @@ web applications by alleviating database load.
This package contains development files
%prep
%setup -q
%patch0 -p1
%autosetup -p1
%build
autoreconf -fi
@ -102,8 +108,8 @@ autoreconf -fi
%endif
%make_build
%if 0%{?suse_version} >= 1500
%sysusers_generate_pre %{SOURCE5} memcached system-user-memcached.conf
%if %{with sysusers}
%sysusers_generate_pre %{SOURCE5} %{name} %{name}-user.conf
%endif
%install
@ -114,15 +120,17 @@ install -D -m 0644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.%{name}
install -d -m 755 %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
install -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
%if 0%{?suse_version} >= 1500
mkdir -p %{buildroot}%{_sysusersdir}
install -m 0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/
%if %{with sysusers}
install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}-user.conf
%endif
%if %{with tmpfiles}
install -D -m 0644 %{SOURCE6} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%endif
%check
%make_build test
%if 0%{?suse_version} >= 1500
%if %{with sysusers}
%pre -f memcached.pre
%else
@ -138,6 +146,9 @@ getent passwd %{name} >/dev/null || \
%post
%service_add_post %{name}.service
%fillup_only %{name}
%if %{with tmpfiles}
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%endif
%preun
%service_del_preun %{name}.service
@ -155,8 +166,12 @@ getent passwd %{name} >/dev/null || \
%{_unitdir}/%{name}.service
%{_fillupdir}/sysconfig.%{name}
%dir %attr(751,root,root) %{_localstatedir}/lib/%{name}
%if 0%{?suse_version} >= 1500
%{_sysusersdir}/system-user-memcached.conf
%if %{with sysusers}
%{_sysusersdir}/%{name}-user.conf
%endif
%if %{with tmpfiles}
%{_tmpfilesdir}/%{name}.conf
%dir %ghost %{_rundir}/%{name}
%endif
%files devel

View File

@ -1,2 +0,0 @@
#Type Name ID GECOS Home directory Shell
u memcached - "user for memcached" /var/lib/memcached -