From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4JiCGCC5kGaghQAAqHPOHw:P1 (envelope-from ) for ; Fri, 12 Jul 2024 05:03:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4JiCGCC5kGaghQAAqHPOHw (envelope-from ) for ; Fri, 12 Jul 2024 07:03:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=mx1FH8Ce; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720760608; 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-type:content-type: 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=gCCW3OZ6yC1Xw65r4rPzOyCPXBQFwOYiLEmCldkrtno=; b=C9+WmU2/tRNUCH+Ya0kQOoziMR4BE89h8Upxbg9k0KNzPjsvibjKPMnDr4Hc/wCoFIsvx5 vPCapnTv3cOQCHn2r7gpRycnXl1Uk0m0eFDjqk1n7hntCz77Z/d+v8ZrUqHIDcYrM/XK4c ioANJa+AfvAyCxuAmQiLyd4hYWzoaUxAnUSwGAG6CRF0U2uwroRQBwmu1dFpLNvQcgXctF 4f6fzX+u4BoGBvyIGkhwaJo1gCcuhiiVt2/ZLiRPvesjoFTKxSerm+QBOfYKtU8MVeT248 Xfc7jVE8xLtx2s/wjOBWqIDYcNwKmqX+DUx1gok0QvhxJOy9gTVKdKfgDbIJJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=mx1FH8Ce; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720760608; a=rsa-sha256; cv=none; b=UozJZ7LILhEVkarQxkQ706EV1LXoGLwU1LSJ2g150eljOoPFWZtEkWMnHIcLAXkfHMNhyn nAQmglyL1qsBerScjvVq97sohCQXmUk5c7C8NPCrBo8B0zt7wEkJ9vGL3Ba3L7YCTnyFAB hGBN/NLRjRsjPsblYiqrvgayjth9FJUrFIZcduj2drRT/5HM9vlO7+zqLXeLITcnX91+5c ZcfnkuWj/X8pZkiNQyWsp5b3VAEzXRFVNgx5fRKMpFwllyWfz3JxlJboF1gVlJheruArfj Jvns5CNuZzQNV703kpRZapXqOUjbgo8KeXIbazNi5eFRCi+2sXxKA/HfHHfA3w== 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 B2FE96EA72 for ; Fri, 12 Jul 2024 07:03:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sS8Qx-00048X-HT; Fri, 12 Jul 2024 01:03:03 -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 1sS8Qw-000486-Ef for guix-patches@gnu.org; Fri, 12 Jul 2024 01:03:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sS8Qw-0002Gs-4L for guix-patches@gnu.org; Fri, 12 Jul 2024 01:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sS8Qw-0007Kz-39 for guix-patches@gnu.org; Fri, 12 Jul 2024 01:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72067] [PATCH] Broken composer-build-system example. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Jul 2024 05:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72067 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72067@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172076057728186 (code B ref -1); Fri, 12 Jul 2024 05:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2024 05:02:57 +0000 Received: from localhost ([127.0.0.1]:52952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sS8Qq-0007KY-HB for submit@debbugs.gnu.org; Fri, 12 Jul 2024 01:02:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:34414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sS8Qo-0007KQ-EE for submit@debbugs.gnu.org; Fri, 12 Jul 2024 01:02:55 -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 1sS8Qo-00045e-4v for guix-patches@gnu.org; Fri, 12 Jul 2024 01:02:54 -0400 Received: from mx2.dismail.de ([159.69.191.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sS8Ql-0002Cn-Ew for guix-patches@gnu.org; Fri, 12 Jul 2024 01:02:53 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 45e94e2a for ; Fri, 12 Jul 2024 07:02:45 +0200 (CEST) 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=9cV0Qd48x4ScBPc/rcRZU EA0pqvGYO2a3iRsAoUf1dY=; b=mx1FH8CezyFsW/U1eW+NGKjGdguEVC4Ii5vby KhUKrrmw2NRVrABZli5QsARGfKumnJaLnHpVALgPuCynctv0s1PJiB9ELxMd/keF fikv8Vdw9Kzu6R7/JSCE5kb6B0w7NnwaxZIBel3bInbBjnwnDsR4v4FdolCthjWm x/GTp7DkKzLE519nNqibqf9VR/VZbySh31ubLuwHTuCy8bq0/I32b57WYeAppLzM jmXOcAier5Lc2OXbktxiX4Hjl/hFjmrqnUhfZpUjaJZE+/COf2G6Nm/q9XTkmser aVgDkXKB6ujZG+83BF+pBRfwVVmah6M5InZ13IhSUdEnhzlHA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 0c5b5277 for ; Fri, 12 Jul 2024 07:02:45 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 6dec17cf for ; Fri, 12 Jul 2024 07:02:45 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id b652e6c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 12 Jul 2024 07:02:44 +0200 (CEST) Date: Fri, 12 Jul 2024 00:00:45 -0500 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.30 X-Migadu-Queue-Id: B2FE96EA72 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.30 X-TUID: L2Re+5sdCBgJ Change-Id: Ice1cc8a46f12b21bc841da1578c2c58123194110 --- Hi Guixers, I'm attaching this patch to show a bug with the composer-build-system currently. When building I the package in the patch, I get the following error in the install phase: starting phase `install' `./.gitattributes' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.gitattributes' `./.gitignore' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.gitignore' `./.php-cs-fixer.dist.php' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.php-cs-fixer.dist.php' `./ChangeLog.md' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/ChangeLog.md' `./LICENSE' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/LICENSE' `./README.md' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/README.md' `./SECURITY.md' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/SECURITY.md' `./build.xml' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/build.xml' `./composer.json' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/composer.json' `./phpstan.neon' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/phpstan.neon' `./.github/FUNDING.yml' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.github/FUNDING.yml' `./.github/workflows/ci.yml' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.github/workflows/ci.yml' `./.github/workflows/release.yaml' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.github/workflows/release.yaml' `./.phive/phars.xml' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/.phive/phars.xml' `./build/scripts/extract-release-notes.php' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/build/scripts/extract-release-notes.php' `./src/Version.php' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/src/Version.php' `./tools/composer' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/tools/composer' `./tools/php-cs-fixer' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/tools/php-cs-fixer' `./tools/phpstan' -> `/gnu/store/7722ygk95qwwy32sg4pildppv41i21q1-php-sebastian-version-5.0.1/share/web/sebastian/version/tools/phpstan' error: in phase 'install': uncaught exception: wrong-type-arg "delete-duplicates" "Wrong type argument in position ~A: ~S" (2 ()) (()) Backtrace: 11 (primitive-load "/gnu/store/kvrm5fmbdjlwga3khhfg0s9idk3…") In guix/build/gnu-build-system.scm: 908:2 10 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In srfi/srfi-1.scm: 634:9 8 (for-each # …) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) In guix/build/gnu-build-system.scm: 929:23 6 (_) In ice-9/ports.scm: 433:17 5 (call-with-output-file _ _ #:binary _ #:encoding _) 476:4 4 (_ _) In guix/build/composer-build-system.scm: 194:9 3 (_) In unknown file: 2 (delete-duplicates () ()) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure delete-duplicates: Wrong type argument in position 2: () builder for `/gnu/store/49731nw1bwrxc1yipbhdrzblp39cv6qf-php-sebastian-version-5.0.1.drv' failed with exit code 1 build of /gnu/store/49731nw1bwrxc1yipbhdrzblp39cv6qf-php-sebastian-version-5.0.1.drv failed View build log at '/var/log/guix/drvs/49/731nw1bwrxc1yipbhdrzblp39cv6qf-php-sebastian-version-5.0.1.drv.gz'. guix build: error: build of `/gnu/store/49731nw1bwrxc1yipbhdrzblp39cv6qf-php-sebastian-version-5.0.1.drv' failed WDYT? gnu/packages/php-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm index bef5a2dcb4..1ac4997934 100644 --- a/gnu/packages/php-xyz.scm +++ b/gnu/packages/php-xyz.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Julien Lepiller +;;; Copyright © 2024 jgart ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +22,7 @@ (define-module (gnu packages php-xyz) #:use-module (gnu packages php) #:use-module (guix packages) #:use-module (guix git-download) + #:use-module (guix build-system composer) #:use-module (guix build-system copy) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:)) @@ -48,3 +50,23 @@ (define-public composer-classloader build its autoloading feature. This package is used by the composer-build-system to build its own store-aware autoloading feature.") (license license:expat))) + +(define-public php-sebastian-version + (package + (name "php-sebastian-version") + (version "5.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sebastianbergmann/version") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13l1s8k41vsndvjnijbg7i33bjamynz1y056xk4aps5yigzhvczs")))) + (build-system composer-build-system) + (synopsis "Manages the version number of Git-hosted PHP projects") + (description + "Library that helps with managing the version number of Git-hosted PHP projects") + (home-page "https://github.com/sebastianbergmann/version") + (license license:bsd-3))) base-commit: 2d6a3799fcda5c017f653c6e96b91964b07a7ee0 -- 2.45.2