From unknown Sat Aug 16 13:40:36 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#62777 <62777@debbugs.gnu.org> To: bug#62777 <62777@debbugs.gnu.org> Subject: Status: [PATCH] gnu: lsof: Update to 4.98.0 Reply-To: bug#62777 <62777@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:40:36 +0000 retitle 62777 [PATCH] gnu: lsof: Update to 4.98.0 reassign 62777 guix-patches submitter 62777 Jiajie Chen severity 62777 normal tag 62777 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 11 12:15:32 2023 Received: (at submit) by debbugs.gnu.org; 11 Apr 2023 16:15:33 +0000 Received: from localhost ([127.0.0.1]:38059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmGeW-0001pQ-QU for submit@debbugs.gnu.org; Tue, 11 Apr 2023 12:15:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:51578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pm9DR-0001lL-3M for submit@debbugs.gnu.org; Tue, 11 Apr 2023 04:19:01 -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 1pm9DQ-0003as-I5 for guix-patches@gnu.org; Tue, 11 Apr 2023 04:19:00 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pm9DN-0003q9-9q for guix-patches@gnu.org; Tue, 11 Apr 2023 04:18:59 -0400 Received: (Authenticated sender: c@jia.je) by mail.gandi.net (Postfix) with ESMTPSA id 0E7DB60007; Tue, 11 Apr 2023 08:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jia.je; s=gm1; t=1681201133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1QQJ3lUbopeJvs5ZA9rbt+7gL6cuvBiebPEvJrdZT+w=; b=aE26M92JuFgFWWhsv2pasgxCVPtgrXWSCkBKO2W6w8zIypwYDd9fWE6UvdLGw2n1Cqqzfn M7808oP8gwjufigaM/cVtBslVLi7bL86rXx+tKdxMV0mmVfG67JoCxS0w6ILCjSbgw6+CY uBchIxeAiv9jj1u6NrqPnGis8eQLk1+CkIPnJ1YIT7KB6Mc2VCMGOr4eUh3vRMXB4k2Mnl AiNLsovFRaULUlK0CKM5j8rOJV9YpOpXsbkdKf8Zqy7ji3t/Mvo18y+iJG2IEaRY8AyVPn bAMNnIIMVDqwKNgRc4tUjrbtR1AVjIhe6ZG00uGKt3EpCwgRiqfYh+3xkkoRHA== From: Jiajie Chen To: guix-patches@gnu.org Subject: [PATCH] gnu: lsof: Update to 4.98.0 Date: Tue, 11 Apr 2023 16:18:45 +0800 Message-Id: <20230411081845.1010857-1-c@jia.je> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.195; envelope-from=c@jia.je; helo=relay3-d.mail.gandi.net 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 11 Apr 2023 12:15:27 -0400 Cc: Jiajie Chen 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.6 (--) * gnu/packages/lsof.scm (lsof): Update to 4.98.0 and switch to autotools. --- gnu/packages/lsof.scm | 99 ++++++++++++++----------------------------- 1 file changed, 32 insertions(+), 67 deletions(-) diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm index 5f413483f4..6a46744edc 100644 --- a/gnu/packages/lsof.scm +++ b/gnu/packages/lsof.scm @@ -27,84 +27,49 @@ (define-module (gnu packages lsof) #:use-module (guix build-system gnu) #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages groff) - #:use-module (gnu packages perl)) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages linux)) (define-public lsof (package (name "lsof") - (version "4.94.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/lsof-org/lsof") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0yxv2jg6rnzys49lyrz9yjb4knamah4xvlqj596y6ix3vm4k3chp")) - (patches (search-patches "lsof-fatal-test-failures.patch")))) + (version "4.98.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lsof-org/lsof") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cjmhd01p5a9cy52lirv1rkidrzhyn366f4h212jcf1cmp8xh0hd")))) (build-system gnu-build-system) - (native-inputs - (list groff ; for soelim - perl)) + (native-inputs (list automake + autoconf + groff ;for soelim + perl + pkg-config + procps ;for ps + util-linux)) ;for unshare (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'configure - (lambda _ - (setenv "LSOF_CC" ,(cc-for-target)) - ,@(if (%current-target-system) - '((setenv "LINUX_CONF_CC" "gcc")) - '()) - (setenv "LSOF_MAKE" "make") - - ;; By default, the makefile captures the output of 'uname -a'. - ;; Provide a fixed output instead to make builds reproducible. - (setenv "LSOF_SYSINFO" - (string-append "GNU/" (utsname:sysname (uname)) - " (GNU Guix)")) - - (invoke "./Configure" "linux"))) - (add-after 'configure 'patch-timestamps - (lambda _ - (substitute* "Makefile" - (("`date`") "`date --date=@1`")))) - (add-after 'build 'build-man-page - (lambda _ - (with-output-to-file "lsof.8" - (lambda _ (invoke "soelim" "Lsof.8"))))) - (add-before 'check 'disable-failing-tests - (lambda _ - (substitute* "tests/Makefile" - ;; Fails with ‘ERROR!!! client gethostbyaddr() failure’. - (("(STDTST=.*) LTsock" _ prefix) prefix) - ;; LTnfs fails without access to a remote NFS server, and LTlock - ;; fails when run on a Btrfs file system (see: - ;; https://github.com/lsof-org/lsof/issues/152). - (("OPTTST=[[:space:]]*LTbigf LTdnlc LTlock LTnfs") - "OPTTST = LTbigf LTdnlc")))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (with-directory-excursion "tests" - ;; Tests refuse to run on ‘unvalidated’ platforms. - (make-file-writable "TestDB") - (invoke "./Add2TestDB") - - ;; The ‘standard’ tests suggest running ‘optional’ ones as well. - (invoke "make" "standard" "optional"))))) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (install-file "lsof" (string-append out "/bin")) - (install-file "lsof.8" (string-append out "/share/man/man8")))))))) + `(#:phases (modify-phases %standard-phases + (add-before 'bootstrap 'disable-failing-tests + (lambda _ + (substitute* "Makefile.am" + ;; Fails with ‘ERROR!!! client gethostbyaddr() failure’. + (("(TESTS \\+=.*) tests/LTsock" _ prefix) + prefix) + ;; Fails because /proc not mounted in sandbox + (("\tdialects/linux/tests/case-20-epoll.bash \\\\") + "\\"))))))) (synopsis "Display information about open files") (description "Lsof stands for LiSt Open Files, and it does just that. It lists information about files that are open by the processes running on the system.") - (license (license:fsf-free - "file://00FAQ" + (license (license:fsf-free "file://00FAQ" "License inspired by zlib, see point 1.9 of 00FAQ in the distribution.")) (home-page "https://people.freebsd.org/~abe/"))) -- 2.39.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 05 13:40:26 2024 Received: (at 62777-done) by debbugs.gnu.org; 5 Oct 2024 17:40:26 +0000 Received: from localhost ([127.0.0.1]:39554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8lV-0004ga-O3 for submit@debbugs.gnu.org; Sat, 05 Oct 2024 13:40:26 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84]:47226 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx8lS-0004gF-K8 for 62777-done@debbugs.gnu.org; Sat, 05 Oct 2024 13:40:24 -0400 Received: from m (unknown [107.174.64.25]) by APP-05 (Coremail) with SMTP id zQCowABXP2bxeQFnsx_3Aw--.38676S2; Sun, 06 Oct 2024 01:40:04 +0800 (CST) From: Zheng Junjie To: Jiajie Chen Subject: Re: [bug#62777] [PATCH] gnu: lsof: Update to 4.98.0 In-Reply-To: <20230411081845.1010857-1-c@jia.je> (Jiajie Chen's message of "Tue, 11 Apr 2023 16:18:45 +0800") References: <20230411081845.1010857-1-c@jia.je> Date: Sun, 06 Oct 2024 01:39:59 +0800 Message-ID: <87h69qtpn4.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: zQCowABXP2bxeQFnsx_3Aw--.38676S2 X-Coremail-Antispam: 1UD129KBjvJXoWxurWrArWUWF45tF1ktrW5KFg_yoWrtr47pF yfu34S9r1kKa4DWw4agF1qgr13GrZakr4jgw12qw1Iyw4qkry09rWIkFWrCFy7Jwn3Gw47 G3WktF15WFyDZFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvvb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_Jr0_Gr1lnx0Ee4C267I2x7xF54xIwI0E7I0Y6sxI4wAS0I0E0xvY zxvE52x082IY62kv0487M2AExVA0xI801c8C04v7Mc02F40EFcxC0VAKzVAqx4xG6I80ew Av7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY 6r1j6r4UM4x0Y48IcVAKI48JMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r 4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF 67AKxVWUXVWUAwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2I x0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73Uj IFyTuYvjxU6cdbDUUUU X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62777-done Cc: 62777-done@debbugs.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: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jiajie Chen writes: > * gnu/packages/lsof.scm (lsof): Update to 4.98.0 and switch to autotools. > --- > gnu/packages/lsof.scm | 99 ++++++++++++++----------------------------- > 1 file changed, 32 insertions(+), 67 deletions(-) > > diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm > index 5f413483f4..6a46744edc 100644 > --- a/gnu/packages/lsof.scm > +++ b/gnu/packages/lsof.scm > @@ -27,84 +27,49 @@ (define-module (gnu packages lsof) > #:use-module (guix build-system gnu) > #:use-module (guix utils) > #:use-module (gnu packages) > + #:use-module (gnu packages autotools) > #:use-module (gnu packages groff) > - #:use-module (gnu packages perl)) > + #:use-module (gnu packages perl) > + #:use-module (gnu packages pkg-config) > + #:use-module (gnu packages linux)) >=20=20 > (define-public lsof > (package > (name "lsof") > - (version "4.94.0") > - (source > - (origin > - (method git-fetch) > - (uri (git-reference > - (url "https://github.com/lsof-org/lsof") > - (commit version))) > - (file-name (git-file-name name version)) > - (sha256 > - (base32 "0yxv2jg6rnzys49lyrz9yjb4knamah4xvlqj596y6ix3vm4k3chp")) > - (patches (search-patches "lsof-fatal-test-failures.patch")))) > + (version "4.98.0") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/lsof-org/lsof") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0cjmhd01p5a9cy52lirv1rkidrzhyn366f4h212jcf1cmp8xh0hd"))= )) > (build-system gnu-build-system) > - (native-inputs > - (list groff ; for soelim > - perl)) > + (native-inputs (list automake > + autoconf > + groff ;for soelim > + perl > + pkg-config > + procps ;for ps > + util-linux)) ;for unshare > (arguments > - `(#:phases > - (modify-phases %standard-phases > - (replace 'configure > - (lambda _ > - (setenv "LSOF_CC" ,(cc-for-target)) > - ,@(if (%current-target-system) > - '((setenv "LINUX_CONF_CC" "gcc")) > - '()) > - (setenv "LSOF_MAKE" "make") > - > - ;; By default, the makefile captures the output of 'uname -= a'. > - ;; Provide a fixed output instead to make builds reproducib= le. > - (setenv "LSOF_SYSINFO" > - (string-append "GNU/" (utsname:sysname (uname)) > - " (GNU Guix)")) > - > - (invoke "./Configure" "linux"))) > - (add-after 'configure 'patch-timestamps > - (lambda _ > - (substitute* "Makefile" > - (("`date`") "`date --date=3D@1`")))) > - (add-after 'build 'build-man-page > - (lambda _ > - (with-output-to-file "lsof.8" > - (lambda _ (invoke "soelim" "Lsof.8"))))) > - (add-before 'check 'disable-failing-tests > - (lambda _ > - (substitute* "tests/Makefile" > - ;; Fails with =E2=80=98ERROR!!! client gethostbyaddr() fa= ilure=E2=80=99. > - (("(STDTST=3D.*) LTsock" _ prefix) prefix) > - ;; LTnfs fails without access to a remote NFS server, and= LTlock > - ;; fails when run on a Btrfs file system (see: > - ;; https://github.com/lsof-org/lsof/issues/152). > - (("OPTTST=3D[[:space:]]*LTbigf LTdnlc LTlock LTnfs") > - "OPTTST =3D LTbigf LTdnlc")))) > - (replace 'check > - (lambda* (#:key tests? #:allow-other-keys) > - (when tests? > - (with-directory-excursion "tests" > - ;; Tests refuse to run on =E2=80=98unvalidated=E2=80=99= platforms. > - (make-file-writable "TestDB") > - (invoke "./Add2TestDB") > - > - ;; The =E2=80=98standard=E2=80=99 tests suggest running= =E2=80=98optional=E2=80=99 ones as well. > - (invoke "make" "standard" "optional"))))) > - (replace 'install > - (lambda* (#:key outputs #:allow-other-keys) > - (let ((out (assoc-ref outputs "out"))) > - (install-file "lsof" (string-append out "/bin")) > - (install-file "lsof.8" (string-append out "/share/man/man= 8")))))))) > + `(#:phases (modify-phases %standard-phases > + (add-before 'bootstrap 'disable-failing-tests > + (lambda _ > + (substitute* "Makefile.am" > + ;; Fails with =E2=80=98ERROR!!! client gethostby= addr() failure=E2=80=99. > + (("(TESTS \\+=3D.*) tests/LTsock" _ prefix) > + prefix) > + ;; Fails because /proc not mounted in sandbox > + (("\tdialects/linux/tests/case-20-epoll.bash \\\= \") > + "\\"))))))) > (synopsis "Display information about open files") > (description > "Lsof stands for LiSt Open Files, and it does just that. > It lists information about files that are open by the processes running > on the system.") > - (license (license:fsf-free > - "file://00FAQ" > + (license (license:fsf-free "file://00FAQ" > "License inspired by zlib, see point 1.9 of 00FAQ in the d= istribution.")) > (home-page "https://people.freebsd.org/~abe/"))) push, adjust message, style and update to 4.99.3. close. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmcBee8ACgkQO1qpk+Gi 3/C4YA/9GKlX0fI0SF9f8aFo5JZT/lHMEdFv38DrkjdsKKI30WqAHjA+tkc1eP4G EVBOCHqs0uhNEMX+sMHL2HLKW7PFsl4hEJVPeCenRzuLkjm0sBk/zlFSJ4J8sIF6 /g3J7NL/95H9wm6tb+RrX0HtYPWlzMRgAYfRzKSVXn2jJLTUNYpIutaDWLYlyzMx hV1f2mCjVPAGNO5Tp1Uh9vjQjADqJh6fZRcz17xnzb79F3bRN0uAIwZ4uZujOslB o5ym2jpXQ2aRY7C3KQsCQ0DFoCQwHtz1JqdZHJ1hC45d8CInrswN1YVZs1BxKI1I wwEF6Uyc3PBJxLhr1TlvtkWSNXc5px4m9D22cl3vZO1K7z9TDUOA9OMuOVos+at8 mtcpUPeB/A9nCOtANaYg0obpOzOBsqp3pM5oNHMc+Gj2rZ1JDuEtdNQfLeyQ1YwB pDG7QyRkvljUKk2CrwYGoJHXu08TYljojdLe9c1C4V6DXKX1yq2KER1JV7e7JtwN 1vCaP43UDWx41RNAW35ISKstAc4iaZWKt3yDHD+FtWpdt843Us5TdZ6sPGNQZP5x 6/f47roB8mNtuqynDucZv1sfJ6YMG74jVkDlC2sPxHEam2JjqMSPrdTgK7WoTMih IffhLy3op+uZdV8BY8HPNWfITcbv3Aac6CbMT0+NGtuHGdI3k0g= =9SQO -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 13:40:36 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, 03 Nov 2024 12:24:11 +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