From patchwork Sun Jul 4 23:55:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1500534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f37; helo=mail-qv1-xf37.google.com; envelope-from=swupdate+bncbcl4hcw73qcbbw4urgdqmgqel576tla@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=SIkwNTXL; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=uavPUMAk; dkim-atps=neutral Received: from mail-qv1-xf37.google.com (mail-qv1-xf37.google.com [IPv6:2607:f8b0:4864:20::f37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GJ5KZ3BNZz9sRf for ; Mon, 5 Jul 2021 09:55:13 +1000 (AEST) Received: by mail-qv1-xf37.google.com with SMTP id w16-20020a0cef900000b02902a9204c92aesf5737605qvr.5 for ; Sun, 04 Jul 2021 16:55:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625442908; cv=pass; d=google.com; s=arc-20160816; b=wewooT/0j7bL2efR2E8ZUVSB++bAJGfuCXtmYEDL0RuMOr774jKzhCrojehACXybIr bwAZ1I2RbucBgCMBa9QrflCsx6jWaWhhc66UoqBDHf37iZSR2V1MPmEFtVJb3pQgHd8P k8D/2eNpc4fwcHDiZfed+nnSaAXOs022sVCO0CQfCI+rCtIoqgf6NYSPHxkmdodt23si pEYTCS0E5spk7+xzVLzB5XS8/+keN3zAtXNC9SazC2RbYB5Dirf0LHEoqxPW4zRmTLnE pURRBfptjuv2aDvSN7cXjT0Nh6qdHDh6tSGOpZnqrvQHvwgupD5IFIzjPgzRcC+nPB9B 3CTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=3n/8WElItKQgqeD2Z3SWCmv56UXoGylaoFexO1Lg0rM=; b=hvcCw+OB8qtxiYQrmZ71XHppZAgKCR6ygKCYJXOU9tA/NZ3zDyZbNwKy9MFZoyjLF/ 0xA4GHBb8kNmr83wK87AmlA8ZIKPMd78xGBpcpOSCxUI+a++IzDbC7Q5fH6fwvFQq+aK MJClJ0tr3sio95pUlJYvT2U/wH9zXge38YW7ryRLsCSgufYReGGpM78/JByp3r2JNKyh +SNmPqB1nV2xTxjpKfI3dGn8OE5i6kyPclyB1XbfCvMfqHTgN3lw4xLpDKwJ1e9Q3vWs khm8MbilUhbiz4X+xhblIvNYJmxn8dxDMI9KXDOU7g0GUo6m7Ohj/9sudzJRbRylCVAO kSTw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vj3PoJ2Q; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=3n/8WElItKQgqeD2Z3SWCmv56UXoGylaoFexO1Lg0rM=; b=SIkwNTXLwPhPpFDAvxGpNORrnpjwquJl9RoGdHMQ2MQu9eURtpWq6XO6hFPl700U+q Rr7O6+f62rIDE6bpK2IQkPIGQ6of1U/q8CdWe/TEA8CywcBiDVDxn2aUo/hmw/+SjK33 am5OIS6MTLcrdJ3q5Y6R+Px7GUOgQfOZeLL7DPpJ8Yqzpu8veorqSolXNBjkMzOersfk SLRFbwCgGzRltIUDfXt+kFHGcEgW3DhMitEHzyIf82y5SisgvTsCKCk2ONiTYEQH476a 1FSIP/JoQCKFn8N/1yTxUmI/Py7N3y7RHdoG5bFK7wAlEF9WG+ogR9AeTI7o7+uFjCxU a10A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=3n/8WElItKQgqeD2Z3SWCmv56UXoGylaoFexO1Lg0rM=; b=uavPUMAkkndXL6PffDJzW5EdabgrEG4ATJb3N8C/h/j7bgGmGwn2c1fhpjiHdM+cuW 0f3Cqw4IG33lJlhsAFEgAnjpKm2G9pNEGKssInz0axLyaZHGbOjiHeb0P9A4/bSuFdUQ Yu+pNwFPbhyWpG5PRpVnmxvFHap8ZzSVMUS1gsrymT9Cv6Qj3XDZ6FF2XGKyv1hn4lHG WDbV4hTYtNW5W5isPNDcP5f/uPS36g5nVPIB5HSAXpqJ8iQOGotErARO7hZ+5sCVdDpi 8ADdBrvPzXjQPBD058X6uDARZPcEd1XaRyYwQOCp0+sIktOd6JtGIAvoGMYoGBNvUFmM sEKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=3n/8WElItKQgqeD2Z3SWCmv56UXoGylaoFexO1Lg0rM=; b=NVmMtridJZKkJ8TAqv27ii+pi4S6O7s496nMLzwY/hCbrw4a0qp38eTH3sdn1fcJO+ MjE7+kY7B3AVVa2YyGOYH/I6FMdV9Mjcyepje6XUUSmGxUfM877KmlIufGpnM0FcIkgH zYVWNg1K0qpGLrEnXUikLlwQbf4+IzfOvJtun2FMr+2FfPRsgUh3xj9kGi4XvqtXTBvD zOpa3uUfrQqTKRuKBu+so3gCnFINHt3N1VGVd39mJyJHwTlFhhiECHQrQcvyuTUJ7J8i wQ/zMpYfkdNnkUMBfXjiem8TLpiC4jjwRSTcxLAMdmp4oASUBU3GnlQU4FnjewqFzdGu XgGA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM53005Dlff5Ucg1IlRwbRsVmG29NceCNU/8Pd3lUsSllZRKX0uHX2 DiD3ivFQRKI/X1wjDROV+PY= X-Google-Smtp-Source: ABdhPJxNygnO7P/qtah3toC+W4LeUr1VM9xuDMjky4MvV7pRWbWLxz8ZW/ByyFdrPc5I1wVXmkHMgQ== X-Received: by 2002:a05:6214:1021:: with SMTP id k1mr10591306qvr.4.1625442908087; Sun, 04 Jul 2021 16:55:08 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ae9:edc6:: with SMTP id c189ls8453413qkg.2.gmail; Sun, 04 Jul 2021 16:55:07 -0700 (PDT) X-Received: by 2002:a37:6314:: with SMTP id x20mr3870367qkb.363.1625442907522; Sun, 04 Jul 2021 16:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625442907; cv=none; d=google.com; s=arc-20160816; b=Bg4992RzUblk5pqgMNzqHAy6Fx62lnWdVoiOQlu7TK/fUhDZj2jpQq/uAfrw4Oz2xG reVYS+0u03OZWKDEYSTiuFr0xQW8OcdMUFEdArwpFcDa4RgMSbUiPAv7j4bvh3lNvdDs 9SHP5xx2jGL7534FENZuckcJqYXrlcmhBgzMqOkDx4zwgo5sMBnJeDO701B2O9pLX7pk NqsA2inaJEqav2cyWfVRgmn+am/Wn54IMQqbW4xhNilaJdOj7tvx0T8dxakxpnP/eao+ QAWCqlQZCGABgvfK0JxKOIRpsMgCX32n0XnMpQno1uIl2JDnO3gNmoy+XiT4vb6jPcdu hj5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=7JXvQDZt59XEgZRt0vfBoYo1cvWqH87oLk8tSl2Hh8I=; b=qsh9IT/FXM3vNKJR3DUNVPJP0AfikfCiDt0zVK0fCl2Ni6HthL4XO4+YFyPCzqTzOI 7QJNGAKgllXY2mYc68j385KjZ3Ojh6PqoBXK7YKTkwGH4ctf7nNREe8j+lBzQJkCDnaN lBGsWQdOdJG1ipuMrbtZ6NbOXQW//55ej20d3/U/4TKywFH1YtamWtlQf68HugZ+ZkmV Xr8pFtYNwfdrEV2jA3WQ6vOmUwCdTZAhviEzMCLkZOFLHc1Ycoe71JQi1iovzdVY9SxY gqD53aqdRT5NmJQ9kWXRSQ8p9tQPOaYnuEN7hCo8CZHSZw0mDsclP25t1vAfO6RtC2JN v13w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vj3PoJ2Q; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com. [2607:f8b0:4864:20::d30]) by gmr-mx.google.com with ESMTPS id q9si6594qkm.7.2021.07.04.16.55.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Jul 2021 16:55:07 -0700 (PDT) Received-SPF: pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) client-ip=2607:f8b0:4864:20::d30; Received: by mail-io1-xd30.google.com with SMTP id u7so16776868ion.3 for ; Sun, 04 Jul 2021 16:55:07 -0700 (PDT) X-Received: by 2002:a02:c906:: with SMTP id t6mr9925930jao.117.1625442907087; Sun, 04 Jul 2021 16:55:07 -0700 (PDT) Received: from MacBook-Pro-2.localdomain (71-33-158-86.hlrn.qwest.net. [71.33.158.86]) by smtp.gmail.com with ESMTPSA id w15sm5512737ill.84.2021.07.04.16.55.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jul 2021 16:55:06 -0700 (PDT) From: James Hilliard To: swupdate@googlegroups.com Cc: James Hilliard Subject: [swupdate] [PATCH 1/1] Kconfig: Add HAVE_LIBRSYNC Date: Sun, 4 Jul 2021 17:55:03 -0600 Message-Id: <20210704235503.53211-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: james.hilliard1@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vj3PoJ2Q; spf=pass (google.com: domain of james.hilliard1@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=james.hilliard1@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Allow passing through the environment if librsync is available for the build target. Defaults to yes because we do not do any library checking for now. Signed-off-by: James Hilliard Reviewed-by: Stefano Babic --- Kconfig | 4 ++++ Makefile.deps | 4 ++++ handlers/Config.in | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Kconfig b/Kconfig index ece4537..1cd57f0 100644 --- a/Kconfig +++ b/Kconfig @@ -101,6 +101,10 @@ config HAVE_LIBWEBSOCKETS bool option env="HAVE_LIBWEBSOCKETS" +config HAVE_LIBRSYNC + bool + option env="HAVE_LIBRSYNC" + config HAVE_URIPARSER bool option env="HAVE_URIPARSER" diff --git a/Makefile.deps b/Makefile.deps index 13ff29d..e58f308 100644 --- a/Makefile.deps +++ b/Makefile.deps @@ -90,6 +90,10 @@ ifeq ($(HAVE_LIBWEBSOCKETS),) export HAVE_LIBWEBSOCKETS = y endif +ifeq ($(HAVE_LIBRSYNC),) +export HAVE_LIBRSYNC = y +endif + ifeq ($(HAVE_URIPARSER),) export HAVE_URIPARSER = y endif diff --git a/handlers/Config.in b/handlers/Config.in index bca7219..a0cc5a3 100644 --- a/handlers/Config.in +++ b/handlers/Config.in @@ -150,11 +150,15 @@ config RAW config RDIFFHANDLER bool "rdiff" + depends on HAVE_LIBRSYNC default n help Add support for applying librsync's rdiff patches, see http://librsync.sourcefrog.net/ +comment "rdiff support needs librsync" + depends on !HAVE_LIBRSYNC + config READBACKHANDLER bool "readback" depends on HASH_VERIFY