GNU bug report logs - #68001
[PATCH] gnu: Add pacman.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Justin Veilleux <terramorpha@HIDDEN>; Keywords: patch; dated Sun, 24 Dec 2023 02:18:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Dec 2023 02:17:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 23 21:17:46 2023
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==
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add pacman.
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-Debbugs-Envelope-To: submit
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


--=-=-=--




Acknowledgement sent to Justin Veilleux <terramorpha@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#68001; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.