Здравствуйте. Наткнулся на грабельку при синхронизации развесистого дерева каталогов; вкратце -- rsync --max-alloc=10g вместо штатного 1g, хотя предварительно были испробованы сборки rsync 3.1.3 и затем бэкапорт 3.2.2 вместо опять же штатного для p8 3.1.2 по мотивам
http://wiert.me/2021/08/30/fixing-esxi-rsync-error-error-allocating-core-memory-buffers-code-22-at-util2-c106-sender3-1-2/ PS туда же: [sender] exceeded --max-alloc=1073741824 setting; упомянутого отката до --protocol=29 в моём случае и близко не хватило, видать, там человек ходил недалеко от грани и ему оказалось достаточно протиснуться под неё. -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info
diff --git a/rsync.spec b/rsync.spec index 2f20f1a9..cc2b8cf9 100644 --- a/rsync.spec +++ b/rsync.spec @@ -1,6 +1,6 @@ Name: rsync Version: 3.2.7 -Release: alt1 +Release: alt0.p8.1 %define srcname rsync-%version Summary: A program for synchronizing files over a network @@ -18,7 +18,7 @@ BuildRequires: libpopt-devel BuildRequires: libssl-devel BuildRequires: libxxhash-devel BuildRequires: libzstd-devel -BuildRequires: python3-module-commonmark +#BuildRequires: python3-module-commonmark %package server Summary: Server environment for the rsync program @@ -56,7 +56,8 @@ This package includes rsyncd daemon functionality. --enable-lz4 \ --enable-openssl \ --enable-xxhash \ - --enable-zstd \ + --disable-md2man \ + --disable-zstd \ --enable-acl-support \ --enable-xattr-support \ --with-nobody-user=rsyncd \ @@ -99,7 +100,7 @@ done %files %_bindir/* -%_man1dir/* +#_man1dir/* %doc support/ tech_report.tex NEWS.md README.md %files server @@ -109,11 +110,15 @@ done %_unitdir/rsyncd.socket %_unitdir/[email protected] %ghost %config(noreplace,missingok) %_sysconfdir/sysconfig/rsyncd -%_man5dir/* +#_man5dir/* %attr(750,root,adm) %dir %_logdir/rsyncd %ghost %attr(640,root,adm) %verify(not md5 mtime size) %_logdir/rsyncd/rsyncd.log %changelog +* Sun May 28 2023 Michael Shigorin <[email protected]> 3.2.7-alt0.p8.1 +- drop BR: python3-module-commonmark (not in p8) + + disable manpages and zstd support thus + * Fri Oct 21 2022 Dmitry V. Levin <[email protected]> 3.2.7-alt1 - v3.2.6 -> v3.2.7.
Name: rsync Version: 3.2.7 Release: alt0.p8.1 %define srcname rsync-%version Summary: A program for synchronizing files over a network License: GPLv3+ Group: Networking/File transfer Url: https://rsync.samba.org # git://git.altlinux.org/gears/r/rsync.git Source: %name-%version-%release.tar BuildRequires: libacl-devel BuildRequires: libattr-devel BuildRequires: liblz4-devel BuildRequires: libpopt-devel BuildRequires: libssl-devel BuildRequires: libxxhash-devel BuildRequires: libzstd-devel #BuildRequires: python3-module-commonmark %package server Summary: Server environment for the rsync program Group: System/Servers BuildArch: noarch Requires: %name = %version-%release %description Rsync uses a quick and reliable algorithm to very quickly bring remote and host files into sync. Rsync is fast because it just sends the differences in the files over the network (instead of sending the complete files). Rsync is often used as a very powerful mirroring process or just as a more capable replacement for the rcp command. A technical report which describes the rsync algorithm is included in this package. %description server Rsync uses a quick and reliable algorithm to very quickly bring remote and host files into sync. Rsync is fast because it just sends the differences in the files over the network (instead of sending the complete files). Rsync is often used as a very powerful mirroring process or just as a more capable replacement for the rcp command. A technical report which describes the rsync algorithm is included in this package. This package includes rsyncd daemon functionality. %prep %setup -n %name-%version-%release %build ./prepare-source %add_optflags -fno-strict-aliasing %configure \ --enable-lz4 \ --enable-openssl \ --enable-xxhash \ --disable-md2man \ --disable-zstd \ --enable-acl-support \ --enable-xattr-support \ --with-nobody-user=rsyncd \ --with-nobody-group=rsyncd \ # %make_build %install %makeinstall_std INSTALLCMD='install -p' INSTALLMAN='install -p' install -pD -m640 packaging/lsb/rsync.xinetd \ %buildroot%_sysconfdir/xinetd.d/rsync install -pD -m600 rsyncd.conf \ %buildroot%_sysconfdir/rsyncd.conf install -pD -m640 rsyncd.logrotate \ %buildroot%_sysconfdir/logrotate.d/rsyncd install -pD /dev/null %buildroot%_logdir/rsyncd/rsyncd.log mkdir -p %buildroot%_unitdir install -pm644 rsyncd.socket [email protected] \ %buildroot%_unitdir/ install -Dpm644 /dev/null %buildroot%_sysconfdir/sysconfig/rsyncd %check make -k check %post server /usr/sbin/groupadd -r -f rsyncd /usr/sbin/useradd -r -g rsyncd -d /dev/null -s /dev/null \ -c 'The rsync daemon' -n rsyncd >/dev/null 2>&1 ||: %triggerpostun server -- %name for f in %_sysconfdir/rsyncd.conf %_sysconfdir/xinetd.d/rsync; do if [ ! -f "$f" ]; then if [ -f "$f.rpmsave" ]; then cp -pf "$f.rpmsave" "$f" elif [ -f "$f.rpmnew" ]; then cp -pf "$f.rpmnew" "$f" fi fi done %files %_bindir/* #_man1dir/* %doc support/ tech_report.tex NEWS.md README.md %files server %config(noreplace) %_sysconfdir/logrotate.d/rsyncd %config(noreplace) %_sysconfdir/xinetd.d/rsync %config(noreplace) %_sysconfdir/rsyncd.conf %_unitdir/rsyncd.socket %_unitdir/[email protected] %ghost %config(noreplace,missingok) %_sysconfdir/sysconfig/rsyncd #_man5dir/* %attr(750,root,adm) %dir %_logdir/rsyncd %ghost %attr(640,root,adm) %verify(not md5 mtime size) %_logdir/rsyncd/rsyncd.log %changelog * Sun May 28 2023 Michael Shigorin <[email protected]> 3.2.7-alt0.p8.1 - drop BR: python3-module-commonmark (not in p8) + disable manpages and zstd support thus * Fri Oct 21 2022 Dmitry V. Levin <[email protected]> 3.2.7-alt1 - v3.2.6 -> v3.2.7. * Fri Sep 09 2022 Dmitry V. Levin <[email protected]> 3.2.6-alt1 - v3.2.5 -> v3.2.6. * Sun Aug 14 2022 Dmitry V. Levin <[email protected]> 3.2.5-alt1 - v3.2.5pre2 -> v3.2.5. * Tue Aug 09 2022 Dmitry V. Levin <[email protected]> 3.2.5-alt0.2 - v3.2.5pre1 -> v3.2.5pre2 (fixes: CVE-2022-37434 in the bundled zlib). * Tue Aug 02 2022 Dmitry V. Levin <[email protected]> 3.2.5-alt0.1 - v3.1.3 -> v3.2.5pre1 (fixes: CVE-2022-29154). - Removed --noatime option added in 3.1.3-alt1 in favour of --open-noatime option added in rsync 3.2.0. * Wed Dec 02 2020 Dmitry V. Levin <[email protected]> 3.1.3-alt2 - Fixed build with gcc 10.x. * Thu Feb 15 2018 Dmitry V. Levin <[email protected]> 3.1.3-alt1 - v3.1.2 -> v3.1.3 (fixes CVE-2018-5764). - Fixed running with an unknown current directory (by Florian Weimer; fixes upstream bug 6422). - Added --noatime option (based on patch from Nicolas George; fixes upstream bug 7249). * Tue Dec 22 2015 Dmitry V. Levin <[email protected]> 3.1.2-alt1 - Updated to v3.1.2. * Fri Nov 28 2014 Dmitry V. Levin <[email protected]> 3.1.1-alt1 - Updated to v3.1.1. - server: packaged systemd unit files (closes: #30508). * Mon Apr 23 2012 Dmitry V. Levin <[email protected]> 3.0.9-alt2 - Reverted default timeout value to upstream value 0. It used to be 60 seconds more than 10 years, but some subtle change in the code made it non-overridable via rsyncd.conf which is not acceptable for servers. * Mon Sep 26 2011 Dmitry V. Levin <[email protected]> 3.0.9-alt1 - Updated to v3.0.9. * Thu Apr 07 2011 Dmitry V. Levin <[email protected]> 3.0.8-alt1 - Updated to v3.0.8 (fixes CVE-2011-1097). * Wed Mar 24 2010 Dmitry V. Levin <[email protected]> 3.0.7-alt1 - Updated to v3.0.7. * Wed Sep 09 2009 Dmitry V. Levin <[email protected]> 3.0.6-alt1 - Updated to v3.0.6-1-g2daed02. - Moved "make check" to %%check section. * Thu Jan 01 2009 Dmitry V. Levin <[email protected]> 3.0.5-alt1 - Updated to v3.0.5. * Fri Dec 12 2008 Dmitry V. Levin <[email protected]> 3.0.4-alt3 - Changed build to succeed even if "make check" fails. * Tue Nov 25 2008 Dmitry V. Levin <[email protected]> 3.0.4-alt2 - Updated to v3.0.5pre2. * Tue Sep 30 2008 Dmitry V. Levin <[email protected]> 3.0.4-alt1 - Updated to v3.0.4-8-g5df89a1. * Thu May 01 2008 Dmitry V. Levin <[email protected]> 3.0.2-alt2 - Backported a few fixes from development branch. * Wed Apr 09 2008 Dmitry V. Levin <[email protected]> 3.0.2-alt1 - Updated to 3.0.2 release. * Thu Dec 06 2007 Dmitry V. Levin <[email protected]> 2.6.9-alt3 - Applied upstream patch implementing "munge symlinks" option related to CVE-2007-6199/CVE-2007-6200, for details see http://rsync.samba.org/security.html#s3_0_0 * Wed Aug 15 2007 Dmitry V. Levin <[email protected]> 2.6.9-alt2 - Applied patch from Sebastian Krahmer to fix two off by one stack overflows (CVE-2007-4091). * Thu Jan 18 2007 Dmitry V. Levin <[email protected]> 2.6.9-alt1 - Updated to 2.6.9 release. * Wed Jun 21 2006 Dmitry V. Levin <[email protected]> 2.6.8-alt1 - Updated to 2.6.8 release. - Updated patches. * Thu Jun 02 2005 Dmitry V. Levin <[email protected]> 2.6.5-alt1 - Updated to 2.6.5 release. * Sat May 21 2005 Dmitry V. Levin <[email protected]> 2.6.5-alt0.1 - Updated to 2.6.5pre2. * Thu Apr 07 2005 Dmitry V. Levin <[email protected]> 2.6.4-alt3 - Applied few fixes from cvs. * Tue Apr 05 2005 Dmitry V. Levin <[email protected]> 2.6.4-alt2 - Applied few fixes from cvs. * Thu Mar 31 2005 Dmitry V. Levin <[email protected]> 2.6.4-alt1 - Updated to 2.6.4. - Updated patches. - The "transfer logging" option is no longer enabled by default. * Fri Dec 17 2004 Dmitry V. Levin <[email protected]> 2.6.3-alt3 - Backported upstream fixes for few bugs reported via rsync bug tracker (1873, 2033, 2116). - Applied upstream fix for bug in "ignore nonreadable" support when dealing with symlinks, http://lists.samba.org/archive/rsync/2004-December/011178.html * Wed Oct 27 2004 Dmitry V. Levin <[email protected]> 2.6.3-alt2 - Reworked setrlimit hardening patch (fixes #5402). * Thu Sep 30 2004 Dmitry V. Levin <[email protected]> 2.6.3-alt1 - Updated to 2.6.3. * Tue Aug 17 2004 Stanislav Ievlev <[email protected]> 2.6.2-alt1.1 - Apply security fix from 2.6.3 * Mon May 03 2004 Dmitry V. Levin <[email protected]> 2.6.2-alt1 - Updated to 2.6.2. * Tue Apr 27 2004 Dmitry V. Levin <[email protected]> 2.6.1-alt1 - Updated to 2.6.1, updated patches. * Fri Jan 09 2004 Dmitry V. Levin <[email protected]> 2.6.0-alt1 - Updated to 2.6.0, updated patches. * Fri Dec 05 2003 Dmitry V. Levin <[email protected]> 2.5.7-alt2 - rsync_module: apply resource limits to unprivileged process: set RLIMIT_NPROC = 1. * Thu Dec 04 2003 Dmitry V. Levin <[email protected]> 2.5.7-alt1 - Updated to 2.5.7 (fixes buffer handling bugs, CAN-2003-0962). * Tue Jan 28 2003 Dmitry V. Levin <[email protected]> 2.5.6-alt1 - Updated to 2.5.6. - Updated patches: + alt-defaults (--delete-after part merged upstream); + alt-cleanup removed (merged upstream); + mdk-testsuite removed (merged upstream); + alt-apt rediffed. * Fri Nov 15 2002 Dmitry V. Levin <[email protected]> 2.5.5-alt3 - Don't make check when generating buildrequires. - Updated buildrequires. * Thu Sep 19 2002 Sviatoslav Sviridov <[email protected]> 2.5.5-alt2.1 - Applied patch for apt support * Thu Aug 29 2002 Dmitry V. Levin <[email protected]> 2.5.5-alt2 - Applied patch for exit_cleanup from Sviatoslav Sviridoff. - xinetd config: nice = 10, rlimit_as = 16M; - Fixed testsuite: some tests will incorrectly fail if we don't already have an rsync binary installed on the system (mdk). * Tue May 28 2002 Dmitry V. Levin <[email protected]> 2.5.5-alt1 - 2.5.5 release. - Built --with-rsh=/usr/bin/ssh. * Thu Mar 21 2002 Dmitry V. Levin <[email protected]> 2.5.4-alt3 - Fixed %triggerpostun script. * Thu Mar 14 2002 Dmitry V. Levin <[email protected]> 2.5.4-alt2 - Added some docs. * Wed Mar 13 2002 Dmitry V. Levin <[email protected]> 2.5.4-alt1 - 2.5.4 release. * Tue Mar 12 2002 Dmitry V. Levin <[email protected]> 2.5.4-alt0.1.pre1 - 2.5.4pre1. - Moved public server environment to %name-server subpackage. * Mon Mar 11 2002 Dmitry V. Levin <[email protected]> 2.5.3-alt2. - 2.5.3 release. * Thu Feb 21 2002 Dmitry V. Levin <[email protected]> 2.5.3-alt1.pre1 - 2.5.3pre1. * Mon Feb 11 2002 Dmitry V. Levin <[email protected]> 2.5.2-alt3 - Reenable builtin zlib for a while (it differs from system one). * Fri Feb 08 2002 Dmitry V. Levin <[email protected]> 2.5.2-alt2 - Link with system zlib. * Mon Jan 28 2002 Dmitry V. Levin <[email protected]> 2.5.2-alt1 - 2.5.2 release. * Fri Jan 25 2002 Dmitry V. Levin <[email protected]> 2.5.2-alt0.1pre3 - 2.5.2pre3. * Thu Jan 24 2002 Dmitry V. Levin <[email protected]> 2.5.2-alt0.1pre2 - 2.5.2pre2. * Wed Jan 23 2002 Dmitry V. Levin <[email protected]> 2.5.2-alt0.1pre1 - 2.5.2pre1. * Fri Jan 04 2002 Dmitry V. Levin <[email protected]> 2.5.1-alt1 - 2.5.1 * Mon Dec 03 2001 Dmitry V. Levin <[email protected]> 2.5.0-alt1 - 2.5.0, updated patch. - Fixed segfault on weird arguments (rh). * Mon Jan 29 2001 Dmitry V. Levin <[email protected]> 2.4.6-ipl4mdk - Fix: --delete-after option now assumes --delete option. * Wed Jan 03 2001 Dmitry V. Levin <[email protected]> 2.4.6-ipl3mdk - Added annotated rsyncd.conf - Added user/group "rsyncd" at post stage. * Fri Nov 03 2000 Dmitry V. Levin <[email protected]> 2.4.6-ipl2mdk - Added xinet support. * Mon Oct 23 2000 Dmitry V. Levin <[email protected]> 2.4.6-ipl1mdk - 2.4.6 * Thu Aug 03 2000 Dmitry V. Levin <[email protected]> 2.4.4-ipl1mdk - RE and Fandra adaptions. * Sat Jul 29 2000 Geoffrey Lee <[email protected]> 2.4.4-1mdk - new verison - rebuild for the BM - remove stripping of binary (doh!!) * Mon Jul 10 2000 Stefan van der Eijk <[email protected]> 2.4.3-2mdk - makeinstall macro - macroszifications * Fri May 26 2000 Frederic Lepied <[email protected]> 2.4.3-1mdk - 2.4.3 * Tue Mar 21 2000 Yoann Vandoorselaere <[email protected]> 2.4.1-2mdk - Fix Group. * Tue Feb 08 2000 Geoffrey Lee <[email protected]> 2.4.1-1mdk - updated to 2.4.1 * Thu Nov 11 1999 Chmouel Boudjnah <[email protected]> - 2.3.1. - Add some documentation. * Thu Nov 04 1999 John Buswell <[email protected]> - Build Release * Wed May 05 1999 Bernhard Rosenkraenzer <[email protected]> - Mandrake adaptions * Wed Apr 07 1999 Bill Nottingham <[email protected]> - update to 2.3.1. * Sun Mar 21 1999 Cristian Gafton <[email protected]> - auto rebuild in the new build environment (release 2) * Tue Mar 16 1999 Jeff Johnson <[email protected]> - update to 2.3.0. * Sat Mar 13 1999 Jeff Johnson <[email protected]> - update to 2.3.0 beta. * Fri Dec 18 1998 Bill Nottingham <[email protected]> - update to 2.2.1 * Thu Sep 10 1998 Jeff Johnson <[email protected]> - updated to 2.1.1 * Mon Aug 17 1998 Erik Troan <[email protected]> - updated to 2.1.0 * Thu Aug 06 1998 Erik Troan <[email protected]> - buildrooted and attr-rophied - removed tech-report.ps; the .tex should be good enough * Mon Aug 25 1997 John A. Martin <[email protected]> - Built 1.6.3-2 after finding no rsync-1.6.3-1.src.rpm although there was an ftp://ftp.redhat.com/pub/contrib/alpha/rsync-1.6.3-1.alpha.rpm showing no packager nor signature but giving "Source RPM: rsync-1.6.3-1.src.rpm". - Changes from 1.6.2-1 packaging: added '$RPM_OPT_FLAGS' to make, strip to '%build', removed '%prefix'. * Thu Apr 10 1997 Michael De La Rue <[email protected]> - rsync-1.6.2-1 packaged. (This entry by jam to credit Michael for the previous package(s).)
_______________________________________________ Sysadmins mailing list [email protected] https://lists.altlinux.org/mailman/listinfo/sysadmins
