From patchwork Sun Jun 7 13:33:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Jean Texier X-Patchwork-Id: 1304700 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=koncepto.io Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=koncepto.io header.i=@koncepto.io header.a=rsa-sha256 header.s=default header.b=KNIwFLWX; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49fy613FSQz9sRN for ; Sun, 7 Jun 2020 23:34:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BE5E8811EF; Sun, 7 Jun 2020 13:34:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tCPylxcO-W7p; Sun, 7 Jun 2020 13:34:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C2F51811F9; Sun, 7 Jun 2020 13:34:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4DA5E1BF23B for ; Sun, 7 Jun 2020 13:33:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 45CCA87D63 for ; Sun, 7 Jun 2020 13:33:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Ro-VfU7OsPW for ; Sun, 7 Jun 2020 13:33:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from koncepto.io (koncepto.io [195.154.119.111]) by hemlock.osuosl.org (Postfix) with ESMTPS id B2E8A87D36 for ; Sun, 7 Jun 2020 13:33:56 +0000 (UTC) Received: from menoah.home (lfbn-bor-1-1500-88.w193-250.abo.wanadoo.fr [193.250.66.88]) by koncepto.io (Postfix) with ESMTPSA id A946E60250; Sun, 7 Jun 2020 15:33:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=koncepto.io; s=default; t=1591536833; bh=3AHtll5E5La74eovs9SIQ1bE9r9B3wCtZ9sEhDLoxu0=; h=From:To:Cc:Subject:Date:From; b=KNIwFLWXoMx5y74fDefTBJv6948s2kKJw4X4fm+SDvAU+OS06NZNWAN9UiVihvTHb NJx6CPEJhi0m2ZXZIP8hD99D7jRS81QjXmGHfo2LcK73Fx3ecE748tk1CFkbLQEHt+ fz3t7S0FtdMcheKbKkbhigMzKeTI4id5RnmnF+3+khwHSPBb0Omrqg15Lo37BE8kR/ 3nRuA/Es5r0hqyT47tBhIt4dpjpvPls0LHdvKD85qbOtpDgDA59m3PTZeRF2B4eZo0 l1Y9WX9I4J7hCCUa+36Ph6g5l3LBv5WLDXEAPuZC8HWujbG9NZrQoUFs2Q2k/0NdxJ Rju+zizpuEHlg== From: Pierre-Jean Texier To: buildroot@buildroot.org Date: Sun, 7 Jun 2020 15:33:50 +0200 Message-Id: <1591536830-15198-1-git-send-email-pjtexier@koncepto.io> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/librsync: bump to version 2.3.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre-Jean Texier , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is a patch release that adds peformance improvements. See [1] Also: - Remove upstream patches - update hash file formatting (2 spaces). [1] - https://github.com/librsync/librsync/releases/tag/v2.3.1 Signed-off-by: Pierre-Jean Texier --- ...1-CMakeLists-fix-build-with-old-compilers.patch | 39 ------------- ...make-FindPOPT.cmake-Add-PkgConfig-support.patch | 67 ---------------------- package/librsync/librsync.hash | 4 +- package/librsync/librsync.mk | 2 +- 4 files changed, 3 insertions(+), 109 deletions(-) delete mode 100644 package/librsync/0001-CMakeLists-fix-build-with-old-compilers.patch delete mode 100644 package/librsync/0002-cmake-FindPOPT.cmake-Add-PkgConfig-support.patch diff --git a/package/librsync/0001-CMakeLists-fix-build-with-old-compilers.patch b/package/librsync/0001-CMakeLists-fix-build-with-old-compilers.patch deleted file mode 100644 index 76598c2..0000000 --- a/package/librsync/0001-CMakeLists-fix-build-with-old-compilers.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 77b78e01f83b65f3c38941f54f71beaaddcb6fc1 Mon Sep 17 00:00:00 2001 -From: Pierre-Jean Texier -Date: Sat, 23 Nov 2019 16:51:46 +0100 -Subject: [PATCH] CMakeLists: fix build with old compilers -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The librsync code uses some C99 constructs, but old compilers such -as gcc 4.7 don't default to -std=c99. This commit makes sure librsync -is built with -std=gnu99. - -Fixes: - -src/rabinkarp.h:82:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - for (size_t i = len; i; i--) { - ^ -src/rabinkarp.h:82:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code - -Signed-off-by: Pierre-Jean Texier -[Upstream status: https://github.com/librsync/librsync/pull/181] -Signed-off-by: Fabrice Fontaine ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index f810061..794d9c0 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -149,7 +149,7 @@ if (CMAKE_C_COMPILER_ID MATCHES "(Clang|Gnu|GNU)") - # TODO: Set for MSVC and other compilers. - # TODO: Set -Werror when the build is clean. - -- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") -+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99") - endif() - - site_name(BUILD_HOSTNAME) diff --git a/package/librsync/0002-cmake-FindPOPT.cmake-Add-PkgConfig-support.patch b/package/librsync/0002-cmake-FindPOPT.cmake-Add-PkgConfig-support.patch deleted file mode 100644 index 1c8a332..0000000 --- a/package/librsync/0002-cmake-FindPOPT.cmake-Add-PkgConfig-support.patch +++ /dev/null @@ -1,67 +0,0 @@ -From f5a131ab66fec23d0c79b55fc3907603b094deb9 Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine -Date: Tue, 31 Dec 2019 18:13:29 +0100 -Subject: [PATCH] cmake/FindPOPT.cmake: Add PkgConfig support - -Add PkgConfig support to retrieve popt dependencies otherwise static -build can fail if popt has been linked with iconv: - -[100%] Linking C executable rdiff -/home/buildroot/autobuild/instance-2/output-1/per-package/librsync/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/8.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-2/output-1/per-package/librsync/host/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libpopt.a(poptint.o): in function `POPT_fprintf': -poptint.c:(.text+0x34c): undefined reference to `libiconv_open - -Fixes: - - http://autobuild.buildroot.org/results/896e8e3efbedad90d66ae8c4e1e50f16206cab49 - -Signed-off-by: Fabrice Fontaine -[Upstream status: https://github.com/librsync/librsync/pull/186] ---- - cmake/FindPOPT.cmake | 29 ++++++++++++++++++----------- - 1 file changed, 18 insertions(+), 11 deletions(-) - -diff --git a/cmake/FindPOPT.cmake b/cmake/FindPOPT.cmake -index 1ca452a..87b3e95 100644 ---- a/cmake/FindPOPT.cmake -+++ b/cmake/FindPOPT.cmake -@@ -42,20 +42,27 @@ if (NOT POPT_FOUND) - endif (NOT POPT_ROOT_DIR) - - ##_____________________________________________________________________________ -- ## Check for the header files -+ ## Check with PkgConfig (to retrieve static dependencies such as iconv) -+ find_package(PkgConfig QUIET) -+ pkg_search_module (POPT QUIET popt) -+ if (NOT POPT_FOUND) - -- find_path (POPT_INCLUDE_DIRS popt.h -- HINTS ${POPT_ROOT_DIR} ${CMAKE_INSTALL_PREFIX} $ENV{programfiles}\\GnuWin32 $ENV{programfiles32}\\GnuWin32 -- PATH_SUFFIXES include -- ) -+ ##_____________________________________________________________________________ -+ ## Check for the header files - -- ##_____________________________________________________________________________ -- ## Check for the library -+ find_path (POPT_INCLUDE_DIRS popt.h -+ HINTS ${POPT_ROOT_DIR} ${CMAKE_INSTALL_PREFIX} $ENV{programfiles}\\GnuWin32 $ENV{programfiles32}\\GnuWin32 -+ PATH_SUFFIXES include -+ ) - -- find_library (POPT_LIBRARIES popt -- HINTS ${POPT_ROOT_DIR} ${CMAKE_INSTALL_PREFIX} $ENV{programfiles}\\GnuWin32 $ENV{programfiles32}\\GnuWin32 -- PATH_SUFFIXES lib -- ) -+ ##_____________________________________________________________________________ -+ ## Check for the library -+ -+ find_library (POPT_LIBRARIES popt -+ HINTS ${POPT_ROOT_DIR} ${CMAKE_INSTALL_PREFIX} $ENV{programfiles}\\GnuWin32 $ENV{programfiles32}\\GnuWin32 -+ PATH_SUFFIXES lib -+ ) -+ endif (POPT_FOUND) - - ##_____________________________________________________________________________ - ## Actions taken when all components have been found --- -2.24.0 - diff --git a/package/librsync/librsync.hash b/package/librsync/librsync.hash index d00e5cd..1b2130b 100644 --- a/package/librsync/librsync.hash +++ b/package/librsync/librsync.hash @@ -1,3 +1,3 @@ # Locally computed: -sha256 b5ab8e2092b82b7d7bb9c1dd52e6a77083a89f8ad9b9309da611f490d0b49a71 librsync-2.2.1.tar.gz -sha256 5bbcbb737e60fe9deba08ecbd00920cfcc3403ba2e534c64fdeea49d6bb87509 COPYING +sha256 dbd7eb643665691bdf4009174461463737b19b4814b789baad62914cabfe4569 librsync-2.3.1.tar.gz +sha256 5bbcbb737e60fe9deba08ecbd00920cfcc3403ba2e534c64fdeea49d6bb87509 COPYING diff --git a/package/librsync/librsync.mk b/package/librsync/librsync.mk index bf0785b..fbe56d4 100644 --- a/package/librsync/librsync.mk +++ b/package/librsync/librsync.mk @@ -4,7 +4,7 @@ # ################################################################################ -LIBRSYNC_VERSION = 2.2.1 +LIBRSYNC_VERSION = 2.3.1 LIBRSYNC_SITE = $(call github,librsync,librsync,v$(LIBRSYNC_VERSION)) LIBRSYNC_LICENSE = LGPL-2.1+ LIBRSYNC_LICENSE_FILES = COPYING