From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sM5EKG2j5F/4RgAA0tVLHw (envelope-from ) for ; Thu, 24 Dec 2020 14:19:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KMUHJG2j5F/jYwAAbx9fmQ (envelope-from ) for ; Thu, 24 Dec 2020 14:19:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 507889402A5 for ; Thu, 24 Dec 2020 14:19:25 +0000 (UTC) Received: from localhost ([::1]:42494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ksRSe-00087n-6t for larch@yhetil.org; Thu, 24 Dec 2020 09:19:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksRSV-00087d-3t for guix-devel@gnu.org; Thu, 24 Dec 2020 09:19:15 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:45274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ksRSS-0000so-Kg for guix-devel@gnu.org; Thu, 24 Dec 2020 09:19:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=63WznCH9FxtqTlVeKg3Fxt5mzmh3Q0zoW4shPLN7iHc=; h=date:in-reply-to: references:subject:cc:to:from; b=LtigAywOX78dbiRx4uzw573EW+mNZb7A3W7NB 0HYsbgjNy2cg5ephm5TEB4wVfiCDqe1vbRccWfkBxWfRr7oHYJeiqPXonsTOgPtfcCm1eK 1sVN3SKkX5UgZU7dnWDQzd1ffXtPiBsauvqSP/gJD08sDNgGVVUnRlfTcCQmd8/OcwWsEv /LeIHGZurM7R6A43NoJuon04xXyfqUcBUjRSvVyiBHhEz3pw8ymDlAZdpIStELc+ZPQrfn UOEvndlhgPJCOn63spmbmSvYWemndxGO/EW/PTNSnrVq5FT9GZdWeShbOV8bFYPVYiOpvO 8dqYYzIXaRTqn0LKWy2jWCNaw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 36538075 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Thu, 24 Dec 2020 14:19:31 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Nathan Dehnel Subject: Re: gnu-build-system not handling pkg-config properly in package definition References: In-reply-to: Date: Thu, 24 Dec 2020 15:19:06 +0100 Message-ID: <87zh239tid.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=LtigAywO; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 507889402A5 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: v6ukjj220iDE --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Nathan, Nathan Dehnel =E5=86=99=E9=81=93=EF=BC=9A > (define-public bcache-tools So... if you want to learn how to write and submit packages to=20 Guix -- please do! And don't let me distract you. Your patch=20 looks good, if incomplete :-) However, if you need/want a working Guix bcache-tools package=20 ASAP, I have to admit I've been sitting on the attached patch for=20 so long I that forgot it wasn't upstream yet. > (patches (search-patches "bcache-tools-noprobe.patch")) Sounds useful. What does this patch do? Is it related to Guix=20 (perhaps our blkid)? > (synopsis "These are the userspace tools required for=20 > bcache.") > (description "Bcache patches for the Linux kernel allow one=20 > to use >SSDs to cache other block devices. It's analogous to L2Arc for=20 >ZFS, >but Bcache also does writeback caching (besides just write=20 >through >caching), and it's filesystem agnostic. ") I think The GNU Way is =E2=80=98user space=E2=80=99, =E2=80=98file system= =E2=80=99, =E2=80=98write-back=E2=80=99=20 etc. Be sure to double-space prose sentences; =E2=80=98guix lint=20 bcache-tools=E2=80=99 will warn you about this and other possible surface=20 issues. This description sounds out of date (it's been upstream since the=20 3.x days) and the ZFS comparison is presumably meaningful only to=20 a small minority of ZSF-on-Linux-Libre users. IMO try to describe=20 packages in first-class terms so users don't get sent on a rabbit=20 chase. Feel free to snarf my description but don't feel obligated either. Kind regards, T G-R --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-bcache-tools.patch Content-Transfer-Encoding: quoted-printable From=20283f3d774fcad015d41973304714c30150bf2f2f Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 19 Nov 2020 19:01:25 +0100 Subject: [PATCH] gnu: Add bcache-tools. * gnu/packages/disk.scm (bcache-tools): New public variable. =2D-- gnu/packages/disk.scm | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index c4f128d14a..c9ea1cea0b 100644 =2D-- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -89,6 +89,73 @@ #:use-module (guix packages) #:use-module (guix utils)) =20 +(define-public bcache-tools + ;; The 1.1 release is a year old and missing new features & documentatio= n. + (let ((commit "096d205a9f1be8540cbc5a468c0da8203023de70") + (revision "0")) + (package + (name "bcache-tools") + (version (git-version "1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://git.kernel.org/pub/scm/" + "linux/kernel/git/colyli/bcache-tools.g= it")) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r0vwg4vacz5zgsafk360xn7gi2scy01c79mkmjrdyxjfij5z3iy"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no test suite + #:make-flags + (list (string-append "PREFIX=3D" (assoc-ref %outputs "out")) + (string-append "UDEVLIBDIR=3D" (assoc-ref %outputs "out") + "/lib/udev") + (string-append "DRACUTLIBDIR=3D" (assoc-ref %outputs "out") + "/lib/dracut") + (string-append "CC=3D" ,(cc-for-target))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ; no configure script + (add-before 'install 'fix-hard-coded-file-names + (lambda _ + ;; Some rules still hard-code /usr. + (substitute* "Makefile" + (("/usr") "${PREFIX}")) + #t)) + (add-before 'install 'create-target-directories + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (for-each (lambda (dir) + (mkdir-p (string-append out dir))) + (list "/lib/udev/rules.d" + "/sbin" + "/share/man/man8")) + #t)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("util-linux:lib" ,util-linux "lib"))) ; libblkid + (home-page "https://bcache.evilpiepirate.org") + (synopsis "Tools for the Linux kernel block layer cache") + (description + "This package contains user-space utilities to create and inspect b= cache +partitions. It's rather minimal as bcache is designed to work well without +configuration on any system. + +Linux's @acronym{bcache, block layer cache} lets one or more fast block de= vices, +such as flash-based @acronym{SSDs, solid state drives}, to act as a cache = for +one or more slower (and inexpensive) devices, such as hard disk drives or +redundant storage arrays. In fact, bcache intends to be a superior altern= ative +to battery-backed RAID controllers. + +Bcache is designed around the performance characteristics of SSDs and trie= s to +minimize write inflation. It's file-system agnostic and does both write-t= hrough +and write-back caching.") + (license license:gpl2+)))) + (define-public udevil (package (name "udevil") =2D-=20 2.29.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX+SjWg0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15mXEA+gLNbJ03LxRp6fhEDoueSd9/OjEnfrWaWl4+h5Pt W65mAQDWaYBwnSSD7g2bYd+p7iOkHSMTlZ6/1fiZwEB1DJMiBw== =JXsh -----END PGP SIGNATURE----- --==-=-=--