X-Loop: help-debbugs@HIDDEN
Subject: [bug#68001] [PATCH] gnu: Add pacman.
Resent-From: Justin Veilleux <terramorpha@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sun, 24 Dec 2023 02:18:02 +0000
Resent-Message-ID: <handler.68001.B.17033842669913 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 68001
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 68001 <at> debbugs.gnu.org
X-Debbugs-Original-To: guix-patches@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17033842669913
(code B ref -1); Sun, 24 Dec 2023 02:18:02 +0000
Received: (at submit) by debbugs.gnu.org; 24 Dec 2023 02:17:46 +0000
Received: from localhost ([127.0.0.1]:51541 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1rHE3l-0002Zo-SA
for submit <at> debbugs.gnu.org; Sat, 23 Dec 2023 21:17:46 -0500
Received: from lists.gnu.org ([2001:470:142::17]:50226)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <terramorpha@HIDDEN>) id 1rHE3i-0002ZZ-GZ
for submit <at> debbugs.gnu.org; Sat, 23 Dec 2023 21:17:44 -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 <terramorpha@HIDDEN>)
id 1rHE3W-0007cX-VH
for guix-patches@HIDDEN; Sat, 23 Dec 2023 21:17:31 -0500
Received: from mail.cock.li ([37.120.193.123])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <terramorpha@HIDDEN>)
id 1rHE3U-0003YX-4f
for guix-patches@HIDDEN; Sat, 23 Dec 2023 21:17:30 -0500
From: Justin Veilleux <terramorpha@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail;
t=1703384241; bh=xLXhXEZm72QPbfedAev1gzlPn2kJiKrfG/pYV1PdX+8=;
h=From:To:Subject:Date:From;
b=HNIQ/DcdTKmqQ2V8pqjLJAHbQWFm7O6bxFxVceC8hJUy6Zj2kJouuiHWI6Aa1q+9y
QjB7hruFTMeZ9o2k2weiteaTyIBi9IvAwRQHvbb+y33WAlvVp5G/djAV8oUomfUsjW
i7QzJo871/J2HHcLbF/NTlGN6ytb2l5521KIe4/eRpN53WH2dEQlRdTsB83E6zEQek
1WvNAEXq36cC/nwPlXInLdUvaadd+yBYNny1wZVzbZX4c4mcU3bxSqNEllS3O4TTRV
6jGUXTf2yvs93RXa2KKGY980dYe5TeoO9yhCnLoT1g7WjOeouNZqs3p7DU7eqF92P/
tALQfuKvVlWZA==
Date: Sat, 23 Dec 2023 21:16:55 -0500
Message-ID: <87o7eg73ag.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=37.120.193.123; envelope-from=terramorpha@HIDDEN;
helo=mail.cock.li
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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
--=-=-=
Content-Type: text/plain
This is a patch to add arch linux's pacman package manager to guix. I
was experimenting with having pacman as a package manager for regular
FHS programs (on a guix system host), but there were too many dynamic
library problems.
In any case, the package manager itself works perfectly.
Cheers.
--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: attachment; filename=0001-gnu-Add-pacman.patch
Content-Transfer-Encoding: quoted-printable
From 5d3be174c4e7fbd1db05f73147e1da2f17b6deb2 Mon Sep 17 00:00:00 2001
Message-ID: <5d3be174c4e7fbd1db05f73147e1da2f17b6deb2.1703383755.git.terram=
orpha@HIDDEN>
From: terramorpha <terramorpha@HIDDEN>
Date: Sat, 23 Dec 2023 21:07:55 -0500
Subject: [PATCH] gnu: Add pacman.
* gnu/packages/package-management.scm (pacman): New variable.
Change-Id: I2cedb84fc648ee5c4c07bee8bfb516861ffc1c22
---
gnu/packages/package-management.scm | 46 ++++++++++++++++++
.../patches/pacman-fix-meson-build.diff | 48 +++++++++++++++++++
2 files changed, 94 insertions(+)
create mode 100644 gnu/packages/patches/pacman-fix-meson-build.diff
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-man=
agement.scm
index 97ea41df66..4d9b5f666f 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -23,6 +23,7 @@
;;; Copyright =C2=A9 2022, 2023 Zhu Zihao <all_but_last@HIDDEN>
;;; Copyright =C2=A9 2023 jgart <jgart@HIDDEN>
;;; Copyright =C2=A9 2023 M=C4=83d=C4=83lin Ionel Patra=C8=99cu <madalinio=
nel.patrascu@HIDDEN>
+;;; Copyright =C2=A9 2023 Justin Veilleux <terramorpha@HIDDEN>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -66,6 +67,7 @@ (define-module (gnu packages package-management)
#:use-module (gnu packages dejagnu)
#:use-module (gnu packages dbm)
#:use-module (gnu packages docbook)
+ #:use-module (gnu packages documentation)
#:use-module (gnu packages file)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages flex)
@@ -2326,3 +2328,47 @@ (define-public modules
used on high-performance clusters to dynamically add and remove paths
to specific versions of applications.")
(license license:gpl2+)))
+
+(define-public pacman
+ (package
+ (name "pacman")
+ (version "6.0.2")
+ (source (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://gitlab.archlinux.org/pacman/pacman.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0yxh6kljy19bc4wiphss3jq2nv7h3hw6vnrwbway5kbyqhbahx7p"))
+ (patches
+ (list
+ (search-patch "pacman-fix-meson-build.diff")))))
+ (build-system meson-build-system)
+ (arguments
+ (list
+ #:tests? #f))
+(inputs
+ (list
+ curl
+ libarchive
+ gpgme
+ openssl))
+ (native-inputs
+ (list
+ asciidoc
+ perl
+ python-3
+ gnu-gettext
+ coreutils
+ pkg-config))
+ (home-page "https://archlinux.org/pacman/")
+ (synopsis "Simple library-based package manager")
+ (description
+ "pacman is a utility which manages software packages in Linux. It uses
+simple compressed files as a package format, and maintains a text-based
+package database (more of a hierarchy), just in case some hand tweaking is
+necessary.")
+ (license license:gpl2)))
diff --git a/gnu/packages/patches/pacman-fix-meson-build.diff b/gnu/package=
s/patches/pacman-fix-meson-build.diff
new file mode 100644
index 0000000000..47ce74739e
--- /dev/null
+++ b/gnu/packages/patches/pacman-fix-meson-build.diff
@@ -0,0 +1,48 @@
+diff --git a/doc/meson.build b/doc/meson.build
+index 5a8eb3a4..74ccf53e 100644
+--- a/doc/meson.build
++++ b/doc/meson.build
+@@ -100,7 +100,7 @@ foreach page: manpages + sitepages
+ endforeach
+=20
+ run_target('html',
+- command : ['/bin/true'],
++ command : ['true'],
+ depends : html_targets)
+=20
+ custom_target(
+diff --git a/meson.build b/meson.build
+index 37523b01..6c568020 100644
+--- a/meson.build
++++ b/meson.build
+@@ -396,13 +396,13 @@ configure_file(
+ input : 'etc/makepkg.conf.in',
+ output : 'makepkg.conf',
+ configuration : substs,
+- install_dir : SYSCONFDIR)
++ install_dir : join_paths(PREFIX, 'etc'))
+=20
+ configure_file(
+ input : 'etc/pacman.conf.in',
+ output : 'pacman.conf',
+ configuration : substs,
+- install_dir : SYSCONFDIR)
++ install_dir : join_paths(PREFIX, 'etc'))
+=20
+ install_data(
+ 'proto/PKGBUILD-split.proto',
+@@ -411,14 +411,6 @@ install_data(
+ 'proto/proto.install',
+ install_dir : join_paths(DATAROOTDIR, 'pacman'))
+=20
+-foreach path : [
+- join_paths(LOCALSTATEDIR, 'lib/pacman/'),
+- join_paths(LOCALSTATEDIR, 'cache/pacman/pkg/'),
+- join_paths(DATAROOTDIR, 'makepkg-template/'),
+- join_paths(DATAROOTDIR, 'libalpm/hooks/'),
+- ]
+- meson.add_install_script('sh', '-c', 'mkdir -p "$DESTDIR/@0@"'.format(pa=
th))
+-endforeach
+=20
+ TEST_ENV =3D environment()
+ TEST_ENV.set('PMTEST_SCRIPTLIB_DIR', join_paths(meson.source_root(), 'scr=
ipts/library/'))
base-commit: a8196632647b343f8e03c8f12fbdc0cc84ff90f6
--=20
2.41.0
--=-=-=--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Justin Veilleux <terramorpha@HIDDEN> Subject: bug#68001: Acknowledgement ([PATCH] gnu: Add pacman.) Message-ID: <handler.68001.B.17033842669913.ack <at> debbugs.gnu.org> References: <87o7eg73ag.fsf@HIDDEN> X-Gnu-PR-Message: ack 68001 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 68001 <at> debbugs.gnu.org Date: Sun, 24 Dec 2023 02:18:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 68001 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 68001: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68001 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.