From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MBddAe13YmRidQAASxT56A (envelope-from ) for ; Mon, 15 May 2023 20:20:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GBBKAe13YmSXEgEA9RJhRA (envelope-from ) for ; Mon, 15 May 2023 20:20:29 +0200 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 A0C2A353F1 for ; Mon, 15 May 2023 20:20:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pycnr-0004Is-1J; Mon, 15 May 2023 14:20:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pycnl-0004Ht-39 for guix-patches@gnu.org; Mon, 15 May 2023 14:20:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pycnj-00006Z-Mk for guix-patches@gnu.org; Mon, 15 May 2023 14:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pycni-0001yF-Jm for guix-patches@gnu.org; Mon, 15 May 2023 14:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63525] [PATCH] gnu: {disk|linux|scsi}.scm: Relocate disk-related packages; non-functional change. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 May 2023 18:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63525 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63525@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16841747797540 (code B ref -1); Mon, 15 May 2023 18:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2023 18:19:39 +0000 Received: from localhost ([127.0.0.1]:44342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pycnK-0001xY-HG for submit@debbugs.gnu.org; Mon, 15 May 2023 14:19:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:52162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pycnG-0001xH-RN for submit@debbugs.gnu.org; Mon, 15 May 2023 14:19:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pycnG-0004DX-Hi for guix-patches@gnu.org; Mon, 15 May 2023 14:19:34 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pycnE-0008Re-1k for guix-patches@gnu.org; Mon, 15 May 2023 14:19:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=mvAR+sIttOueMff BYPCDIy5iWBt3yMbPWwG5WJ6n0eo=; h=date:subject:cc:to:from; d=lease-up.com; b=Z16+6claxh/nmSLAho+toPbwDbUkJzfM+frBxtGv7e0ZIVgMALB4 +UokPotkljJjbbv7nr3mI/oFIy7Mp1DypRwNf1aTqYUK3thOjwWbuwUwFx6CXu1KdudZCE r8uVvMAh71RXSTnj7JYoxXPaO3w8vp2I9ucx5rIAzTTFNqgOo= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 1775ae80 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Mon, 15 May 2023 18:19:25 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e751c0f7; Mon, 15 May 2023 18:19:25 +0000 (UTC) Date: Mon, 15 May 2023 11:19:05 -0700 Message-Id: <29082f33471e69cd0360c230575e86a9661c4f26.1684174698.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684174828; a=rsa-sha256; cv=none; b=iP7ztpaI0swwvmOUN/twbq/7R2roKBJ1oWrCuw9ewMv6egDhMJZJKsuhTDFaAj5sDaBaVa ALbYsalSUCpuV0nQrZmUwNZchFVhggUoA5nI9YWotIw4Kys3BDSGu0G9+aI79cA2nPNShf jlXsIsjhR2cROcFoUummQgPFEAXrZSKBRmgqQhGVLozMbIHo60L1BD9pdR69F2V6tF6o8H 0Vs29899NrZ7mtf3QQ+iR0Hlvx5KVhvF1hPMPO7ldGbHhD64MjSRTfSUZKSKX3XrnkoSGk VW0x7geVz6HLEckX6KIhfLJ/Erw61kVMMaJp8Ys3O8+aus6zsUaY7PK3rVXAxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Z16+6cla; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684174828; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AKOxCd+tNh+W3rycgQ2QqPKrxQtt4AxM4ZV59CkmFzQ=; b=iBk4FxnBxfX4KpRvlQneObsMpmSDwl9/AvOn6pwRxrE5zt8Vz6N5FwLTjuecRDb4K9oEnJ D97Yq7rscPouovNyulnRHMAcoBnyZPdOKooQMwEJ2l04UHVNpS8aWe1n2oaerEEdIHYsIW KpO5U9u2mmNBdmA1NdJPNUGo6XG0pTA6DdEiPh4cOE1LAofwYp00PwpFwnlLTkgzRX+NOk Y4Rt4JxsRorlsmczk36zZcYnfX3WkrOCONideBAr43s46SkDsbzDOJzYxL1Fpdi2qgLlpm aCo5RheoBAtDQlwdSjY3b5cHZgiawMmCZE6Xlbl7Ot9TdfIsF1+x3gYnzyh59w== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Z16+6cla; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.89 X-Spam-Score: -1.89 X-Migadu-Queue-Id: A0C2A353F1 X-TUID: ZMkexoBd3KHa Moves the following disk-related pacakges pursuant to the proposal here. [1] hdparm: linux.scm --> disk.scm lsscsi: linux.scm --> scsi.scm [1] https://lists.gnu.org/archive/html/guix-devel/2023-05/msg00189.html * gnu/packages/{disk|linux}.scm: Move hdparm to disk.scm; closer to sdparm. * gnu/packages/{linux|scsi}.scm: Move lsscsi to scsi.scm. --- gnu/packages/disk.scm | 38 ++++++++++++++++++++++++++ gnu/packages/linux.scm | 60 +----------------------------------------- gnu/packages/scsi.scm | 33 +++++++++++++++++++---- 3 files changed, 67 insertions(+), 64 deletions(-) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 894a542171..6dcc76e4eb 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -515,6 +515,44 @@ (define-public fatfsck/static and a @command{fsck.vfat} compatibility symlink for use in an initrd.") (license (package-license dosfstools)))) +(define-public hdparm + (package + (name "hdparm") + (version "9.65") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/hdparm/hdparm/" + "hdparm-" version ".tar.gz")) + (sha256 + (base32 + "0jssagggg52ssl9kg99m88afghj7bm1854vyf4p96q6h23wjjjfi")))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "binprefix=" #$output) + (string-append "manprefix=" #$output) + (string-append "CC=" #$(cc-for-target)) + ;; Let Guix strip binaries and not break cross-compilation. + "STRIP=true") + #:phases + #~(modify-phases %standard-phases + (delete 'configure)) ; no configure script + #:tests? #f)) ; no test suite + (home-page "https://sourceforge.net/projects/hdparm/") + (synopsis "View and tune ATA disk drive parameters") + (description + "@command{hdparm} is a command-line utility to control ATA controllers and +disk drives. It can increase performance and/or reliability by careful tuning +of hardware settings like power and acoustic management, DMA modes, and caching. +It can also display detailed device information, or be used as a simple +performance benchmarking tool. + +@command{hdparm} provides a command line interface to various Linux kernel +interfaces provided by the SATA/ATA/SAS @code{libata} subsystem, and the older +IDE driver subsystem. Many external USB drive enclosures with SCSI-ATA Command +Translation (@dfn{SAT}) are also supported.") + (license (license:non-copyleft "file://LICENSE.TXT")))) + (define-public sdparm (package (name "sdparm") diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 90c1adde53..3ac792c7b6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -111,6 +111,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages databases) #:use-module (gnu packages datastructures) #:use-module (gnu packages dbm) + #:use-module (gnu packages disk) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) @@ -3035,27 +3036,6 @@ (define-public jitterentropy-rngd (license (list license:bsd-3 ; or license:gpl2+)))) -(define-public lsscsi - (package - (name "lsscsi") - (version "0.32") - (source (origin - (method url-fetch) - (uri (string-append - "http://sg.danny.cz/scsi/lsscsi-" version ".tar.xz")) - (sha256 - (base32 - "0jp458m2b3wckr18qkln69i01152qlwz33zm49103lq8fgx0n6d4")))) - (build-system gnu-build-system) - (synopsis "Lists information about SCSI or NVMe devices in Linux") - (home-page "https://sg.danny.cz/scsi/lsscsi.html") - (description - "@command{lsscsi} lists SCSI logical units or SCSI targets. It can -also list NVMe namespaces or controllers and show the relationship between a -device's primary node name, its SCSI generic (sg) node name and its kernel -name.") - (license license:gpl2))) - (define-public ebtables (package (name "ebtables") @@ -5060,44 +5040,6 @@ (define-public singularity isolation or root privileges.") (license license:bsd-3))) -(define-public hdparm - (package - (name "hdparm") - (version "9.65") - (source (origin - (method url-fetch) - (uri (string-append "mirror://sourceforge/hdparm/hdparm/" - "hdparm-" version ".tar.gz")) - (sha256 - (base32 - "0jssagggg52ssl9kg99m88afghj7bm1854vyf4p96q6h23wjjjfi")))) - (build-system gnu-build-system) - (arguments - (list #:make-flags - #~(list (string-append "binprefix=" #$output) - (string-append "manprefix=" #$output) - (string-append "CC=" #$(cc-for-target)) - ;; Let Guix strip binaries and not break cross-compilation. - "STRIP=true") - #:phases - #~(modify-phases %standard-phases - (delete 'configure)) ; no configure script - #:tests? #f)) ; no test suite - (home-page "https://sourceforge.net/projects/hdparm/") - (synopsis "View and tune ATA disk drive parameters") - (description - "@command{hdparm} is a command-line utility to control ATA controllers and -disk drives. It can increase performance and/or reliability by careful tuning -of hardware settings like power and acoustic management, DMA modes, and caching. -It can also display detailed device information, or be used as a simple -performance benchmarking tool. - -@command{hdparm} provides a command line interface to various Linux kernel -interfaces provided by the SATA/ATA/SAS @code{libata} subsystem, and the older -IDE driver subsystem. Many external USB drive enclosures with SCSI-ATA Command -Translation (@dfn{SAT}) are also supported.") - (license (license:non-copyleft "file://LICENSE.TXT")))) - (define-public libnvme (package (name "libnvme") diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm index f63b391dc1..642209db3a 100644 --- a/gnu/packages/scsi.scm +++ b/gnu/packages/scsi.scm @@ -19,8 +19,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages scsi) - #:use-module ((guix licenses) - #:select (gpl2+ bsd-2 bsd-3 lgpl2.1+)) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -70,7 +69,10 @@ (define-public sg3-utils ;; "3 clause" to the newer "2 clause" version on 20180119. To save space ;; various source code files refer to a file called "BSD_LICENSE" [...]." ;; Some files (like sg_compare_and_write.c) retain their 3-clause headers! - (license (list gpl2+ bsd-2 bsd-3)))) + (license (list + license:gpl2+ + license:bsd-2 + license:bsd-3)))) (define-public libiscsi (package @@ -97,6 +99,27 @@ (define-public libiscsi (license (list ;; For the src, examples and test-tool directories, except ;; src/ld_iscsi.c. - gpl2+ + license:gpl2+ ;; For the lib and include directories. - lgpl2.1+)))) + license:lgpl2.1+)))) + +(define-public lsscsi + (package + (name "lsscsi") + (version "0.32") + (source (origin + (method url-fetch) + (uri (string-append + "http://sg.danny.cz/scsi/lsscsi-" version ".tar.xz")) + (sha256 + (base32 + "0jp458m2b3wckr18qkln69i01152qlwz33zm49103lq8fgx0n6d4")))) + (build-system gnu-build-system) + (synopsis "Lists information about SCSI or NVMe devices in Linux") + (home-page "https://sg.danny.cz/scsi/lsscsi.html") + (description + "@command{lsscsi} lists SCSI logical units or SCSI targets. It can +also list NVMe namespaces or controllers and show the relationship between a +device's primary node name, its SCSI generic (sg) node name and its kernel +name.") + (license license:gpl2))) base-commit: 6e38ec447f98383e0722ac300734f8d7c8c5c7b0 -- 2.40.1