From unknown Thu Jun 19 14:03:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59276 <59276@debbugs.gnu.org> To: bug#59276 <59276@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add smem. Reply-To: bug#59276 <59276@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:03 +0000 retitle 59276 [PATCH] gnu: Add smem. reassign 59276 guix-patches submitter 59276 jgart severity 59276 normal tag 59276 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 14 23:49:48 2022 Received: (at submit) by debbugs.gnu.org; 15 Nov 2022 04:49:48 +0000 Received: from localhost ([127.0.0.1]:52510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ountM-0002xY-Ct for submit@debbugs.gnu.org; Mon, 14 Nov 2022 23:49:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:35804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ountL-0002xN-0U for submit@debbugs.gnu.org; Mon, 14 Nov 2022 23:49:47 -0500 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 1ountK-0001cd-RJ for guix-patches@gnu.org; Mon, 14 Nov 2022 23:49:46 -0500 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ountI-0000y8-Dn for guix-patches@gnu.org; Mon, 14 Nov 2022 23:49:46 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 037df9c1 for ; Tue, 15 Nov 2022 05:49:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=DUHEKRRO48mCdhWVUJL4E MeZjJ4m0jnVhHU1bJMKpRU=; b=jhkUD6nOirB8225GluwiI+6tE1x910fAFVumG cNBaRelH1WMco86cGaVHDPtoOkuyTkIMHUrFHT6oXGtWx0ueUh2f2S7j8bLplv8D 3j4PFGwYF0hVG9fzGZp2LJzTSIa9u3X57UfHN088rWWdthTYJFruxrjWf3w3+3dt VZ7cCfEi6txSeSM7nrDdKIM1+SOlOveNVbRUTSgKE3ooMdw6dUBW+G9vXjc9HvA8 /obt6997R4GamtAvSzGFNhw3UbQnaf+xTXmDPHmqKt6GW6a9wQJSWDrJk9T28wYy 1FXLMXHyMmZb13SfPLm+NaqJLjhpbZY1DfJ0KsncAumV/RbVQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 534b1c67 for ; Tue, 15 Nov 2022 05:49:39 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 1428b60d for ; Tue, 15 Nov 2022 05:49:39 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 994b078b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 15 Nov 2022 05:49:38 +0100 (CET) From: jgart To: guix-patches@gnu.org Subject: [PATCH] gnu: Add smem. Date: Mon, 14 Nov 2022 22:49:28 -0600 Message-Id: <20221115044928.9926-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/admin.scm (smem): New variable. --- gnu/packages/admin.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index ee730ac8e3..f493140ca7 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2022 Andreas Rammhold ;;; Copyright © 2022 ( ;;; Copyright © 2022 Matthew James Kraai +;;; Copyright © 2022 jgart ;;; ;;; This file is part of GNU Guix. ;;; @@ -730,6 +731,49 @@ (define-public btop and processes.") (license license:asl2.0))) +(define-public smem + (package + (name "smem") + (version "1.5") + (source (origin + (method url-fetch) + (uri (string-append "https://selenic.com/repo/smem/archive/" + version ".tar.bz2")) + (sha256 + (base32 + "19ibv1byxf2b68186ysrgrhy5shkc5mc69abark1h18yigp3j34m")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; There is no test suite. + #:make-flags #~(list "smemcap") + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (let* ((system #$(cond ((target-x86?) "X86") + ((target-arm?) "ARM") + ((target-powerpc?) "POWER") + (else "CROSS_FINGERS")))) + (format #t "Building for ~a~%" system) + (invoke #$(cc-for-target) "-o" "smemcap" "smemcap.c" + "-g" "-Wall" "-D" system)))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (man1 (string-append #$output "/share/man/man8"))) + (install-file "smemcap" bin) + (install-file "smem" bin) + (mkdir-p man1) + (copy-file "smem.8" (string-append man1 "/smem.8")))))))) + (native-inputs (list python-minimal-wrapper)) + (home-page "http://smem.sourceforge.net") + (synopsis "Memory reporting tool") + (description +"This package provides a command line tool that can give numerous reports +on memory usage on GNU/Linux systems.") + (license license:gpl2+))) + (define-public htop (package (name "htop") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 09:07:25 2022 Received: (at submit) by debbugs.gnu.org; 19 Nov 2022 14:07:25 +0000 Received: from localhost ([127.0.0.1]:39338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owOVB-0006az-J3 for submit@debbugs.gnu.org; Sat, 19 Nov 2022 09:07:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:42624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owOVA-0006as-3j for submit@debbugs.gnu.org; Sat, 19 Nov 2022 09:07:24 -0500 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 1owOV6-0003vH-48 for guix-patches@gnu.org; Sat, 19 Nov 2022 09:07:23 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owOV3-00032g-Vb for guix-patches@gnu.org; Sat, 19 Nov 2022 09:07:19 -0500 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:3a91:a0a4:ecee:f157]) by mira.cbaines.net (Postfix) with ESMTPSA id 9AE7D27BBE9; Sat, 19 Nov 2022 14:07:16 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 3e469e4f; Sat, 19 Nov 2022 14:07:16 +0000 (UTC) References: <20221115044928.9926-1-jgart@dismail.de> User-agent: mu4e 1.8.11; emacs 28.2 From: Christopher Baines To: jgart Subject: Re: [bug#59276] [PATCH] gnu: Add smem. Date: Sat, 19 Nov 2022 14:04:41 +0000 In-reply-to: <20221115044928.9926-1-jgart@dismail.de> Message-ID: <874juvavhn.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 59276-done@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) <#secure method=pgpmime mode=sign> jgart via Guix-patches via writes: > * gnu/packages/admin.scm (smem): New variable. > --- > gnu/packages/admin.scm | 44 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) Thanks, I've made some tweaks and pushed this to master as 85f4d87b8154238480dc176b77b8c54dde84e1c4. > + (source (origin > + (method url-fetch) > + (uri (string-append "https://selenic.com/repo/smem/archive/" > + version ".tar.bz2")) > + (sha256 > + (base32 > + "19ibv1byxf2b68186ysrgrhy5shkc5mc69abark1h18yigp3j34m")))) As the linter points out, "the source file name should contain the package name". > + (replace 'install > + (lambda _ > + (let ((bin (string-append #$output "/bin")) > + (man1 (string-append #$output "/share/man/man8"))) > + (install-file "smemcap" bin) > + (install-file "smem" bin) > + (mkdir-p man1) > + (copy-file "smem.8" (string-append man1 "/smem.8")))))))) I tweaked the indentation above. > + (home-page "http://smem.sourceforge.net") As the linter points out, this page doesn't currently work. As the source is being fetched from selenic.com, I changed the homepage accordingly. > + (description > +"This package provides a command line tool that can give numerous reports > +on memory usage on GNU/Linux systems.") I also tweaked the indentation above. From unknown Thu Jun 19 14:03:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Dec 2022 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator