From patchwork Fri May 27 19:27:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 39640 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C650227BBEA; Fri, 27 May 2022 21:34:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8730727BBE9 for ; Fri, 27 May 2022 21:34:21 +0100 (BST) Received: from localhost ([::1]:57704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nugf5-0005hp-Ih for patchwork@mira.cbaines.net; Fri, 27 May 2022 16:34:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nufcw-0008ML-UR for guix-patches@gnu.org; Fri, 27 May 2022 15:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nufcw-0006fs-Kg for guix-patches@gnu.org; Fri, 27 May 2022 15:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nufcw-00065Y-I0 for guix-patches@gnu.org; Fri, 27 May 2022 15:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55682] RFC packaging for lcsync Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 May 2022 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 55682@debbugs.gnu.org Received: via spool by 55682-submit@debbugs.gnu.org id=B55682.165367966423371 (code B ref 55682); Fri, 27 May 2022 19:28:02 +0000 Received: (at 55682) by debbugs.gnu.org; 27 May 2022 19:27:44 +0000 Received: from localhost ([127.0.0.1]:35820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nufce-00064t-66 for submit@debbugs.gnu.org; Fri, 27 May 2022 15:27:44 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:59172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nufcc-00064g-PJ for 55682@debbugs.gnu.org; Fri, 27 May 2022 15:27:43 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:40]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 5B0301AC53 for <55682@debbugs.gnu.org>; Fri, 27 May 2022 12:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1653679657; bh=hIsVgF7yYt48iDUFyX8Ld/Pz2aMFVT6KZ10/RhSQUt0=; h=From:To:Subject:In-Reply-To:References:Date:From; b=cSBzb00V2ZmbGbdXxXA/xK69g1+EVykOUOWyu3qu53VGdBOO2BiLwp4ycvYK30pYw IGIhjh99IBgW64xRECmOSS8uaS1KMDxLeDfEJ8hd9delOfRrZjaBJtv2poeKXqTPO0 hSCKada7eBltAu8WRUIE9r6DhwV34H2kolIinphte+DkwHVQI34Hqth0f0ftOsA8vb GgA+Amiizq/AwvIzDP5qAoPJiwQR6klLVw7Rt1cHy9X4lXfws2sz2ohwZnh5tmwYMK JplfYGhE4a4ZGRg6JxoZ8YfqOxUejz9+53ohXFx6cSTC1LiFLFwzhWOaFMi/MbMt5H e7Z2p4fBE6nkw== From: Vagrant Cascadian In-Reply-To: <87pmjy6akb.fsf@yucca> References: <87v8tq6bby.fsf@yucca> <87pmjy6akb.fsf@yucca> Date: Fri, 27 May 2022 12:27:33 -0700 Message-ID: <87mtf26aje.fsf@yucca> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From c23ef5bf9248921af15e337d328b2fffb7edc996 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 26 May 2022 14:37:32 -0700 Subject: [PATCH 2/2] gnu: Add lcsync. FIXME tests run, but all fail. test failures do not trigger build failures. FIXME figure out how to properly: setcap cap_net_raw=eip bin/lcsync * gnu/packages/networking.scm (lcsync): New variable. --- gnu/packages/networking.scm | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index ae780d5a05..605173faa9 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -207,6 +207,48 @@ on byte-critical systems. It supports HTTP, HTTPS, FTP and FTPS protocols.") (license license:gpl2+))) +(define-public lcsync + (package + (name "lcsync") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/librestack/lcsync") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0s038b4xg9nlzhrganzjyfvc6n6cgd6kilnpik4axp62j2n5q11q")))) + (build-system gnu-build-system) + (arguments + `(#:parallel-tests? #f + #:make-flags + (let ((target ,(%current-target-system))) + (list ,(string-append "CC=" + (cc-for-target)) + ;; avoid running setcap in the install process + "SETCAP_PROGRAM=true" + (string-append "prefix=" + (assoc-ref %outputs "out")))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ;no configure script + (add-before 'build 'add-library-paths + (lambda* (#:key inputs #:allow-other-keys) + (let* ((librecast (assoc-ref inputs "librecast"))) + (substitute* (list "./src/Makefile" "./test/Makefile") + (("-llibrecast") (string-append "-L" librecast + "/lib -llibrecast"))))))))) + (inputs (list librecast libsodium)) + (home-page "https://librecast.net/lcsync.html") + (synopsis "librecast file and data syncing tool") + (description + "lcsync is a tool to sync files over IPv6 multicast or the +local filesystem. It splits the file into blocks, hashes them, and compares +them in order to efficiently transfer a minimal amount of data.") + (license (list license:gpl2 license:gpl3)))) + ;; This package does not have a release yet. ;; But this is required to provide a feature in PipeWire. (define-public libcamera -- 2.30.2