GNU bug report logs - #54690
Cookbook: packagin example is missing use of input or output

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; Reported by: Hartmut Goebel <h.goebel@HIDDEN>; dated Sun, 3 Apr 2022 12:26:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 3 Apr 2022 12:25:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 03 08:25:56 2022
Received: from localhost ([127.0.0.1]:47916 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nazIp-0002zW-Qd
	for submit <at> debbugs.gnu.org; Sun, 03 Apr 2022 08:25:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:48746)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <h.goebel@HIDDEN>) id 1nazIo-0002zP-LA
 for submit <at> debbugs.gnu.org; Sun, 03 Apr 2022 08:25:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56686)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <h.goebel@HIDDEN>)
 id 1nazIo-0001dg-GI
 for bug-guix@HIDDEN; Sun, 03 Apr 2022 08:25:54 -0400
Received: from mout.kundenserver.de ([212.227.126.130]:46939)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <h.goebel@HIDDEN>)
 id 1nazIm-0006jP-Cx
 for bug-guix@HIDDEN; Sun, 03 Apr 2022 08:25:54 -0400
Received: from hermia.goebel-consult.de ([46.87.138.148]) by
 mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis)
 id 1MxV4T-1nuR4125v7-00xpiD for <bug-guix@HIDDEN>; Sun, 03 Apr 2022 14:25:48
 +0200
Received: from [127.0.0.1] (hermia.goebel-consult.de [192.168.110.7])
 by hermia.goebel-consult.de (Postfix) with ESMTP id 70DCF5F73C
 for <bug-guix@HIDDEN>; Sun,  3 Apr 2022 14:25:52 +0200 (CEST)
Message-ID: <85e87c25-db00-f981-c140-e5b21bd122cb@HIDDEN>
Date: Sun, 3 Apr 2022 14:25:45 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.7.0
Content-Language: en-US
From: Hartmut Goebel <h.goebel@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: Cookbook: packagin example is missing use of input or output
Organization: crazy-compilers.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K1:JzS1cMh+4qXptCGGP7//LndtGvauXobRI4gpLIGrVH4bC6WWruv
 htL9cFgKK+AUJ3ChoR5jlQTU+tKMhjdEMKVsAiP1zFwCEq3ZfAJugzjtg0L5OQ5twDpRRgu
 kMlCiK68coeQlriy0yTAKnXqJmAul6YT73rj0vHYaKj20o7Qp8/QJxpcqAXNU90elGsnhBT
 0Y0q028vMSYZK0o3Dx6gw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:RZzfsifDRZU=:FiDupYAOO0OyURrc5aZ0zz
 c3F3GdpN54QExURZKAhXtP2XT3n61KUHpObpJk/Qse62iLmT8lPq/nXTSsVUq/En+fWMfrEI6
 rTFh7kCczg0zLf3XgMcnRzmdzRIMtSkqKVIlH2lzG0XpV9JlQBBtYQ304plqTesdeiNvV448k
 8mpuXgnC7ZeTYovQdtuMaRATd/933qN6IuvjbKAussHDvR9+h3ODfpNJ6niJPXDLlcPVXSEzz
 hh06keBvkmGUwQ7FISc2mE9keVRI/rLCUuNgY1YKqLIRwDIVKgf7pOc6tlxtZW3PAtZSAGLQg
 wWaCJqN8rA5Hqyu+3hVzERSK5NDEm0pR1dljd5B9c3LR/kBR/OhsaB7iFuWhV6poRHc5CTn8b
 M9baTOA9knNT2x64bo+KDm8VpEeCMzkdZD8xm4aC4EMhk5LA1DBi6kVniwHIrYg78Ps/8eJxE
 p+CyrMP+J9nYHgWCluXROSACAzJBZhquWMIOyuteie0KIL8K+YOLrnmsKcsj9htUbg/kYK2Qi
 dOhfimV7fyc+SJ0ZLJmIYJAjRip/VvrCBjlfHOw969sJI7hQ3SU6W93qEWb7wTXHm9nKpkjz1
 y05PwvudvBJH0vaGmeCmyBKyzKOpWX+NsJgsEOTDtIS5mALf7tBGQdvS0F/QUJlQiLhV+Q7Mq
 ktOwGtf+OG+ocU10LzP6JemHPfwOAvZ8muqolOfKUYf5LLmgTUCC1p7OOeUO6MbvmrpHywrsC
 QXET1fi6681LlacD
Received-SPF: none client-ip=212.227.126.130;
 envelope-from=h.goebel@HIDDEN; helo=mout.kundenserver.de
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, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Hi,

the extended Packaging example in the Cookbook 
https://guix.gnu.org/cookbook/en/html_node/Extended-example.html is 
missing examples how to use the inputs and outputs in phases (new style).

Also the example seems to not use g-exps, as it still uses the backquote:

       (arguments
        `(#:tests? #true                         ; Run the test suite (this is the default)
          #:configure-flags '("-DUSE_SHA1DC=ON") ; SHA-1 collision detection
          #:phases
          (modify-phases %standard-phases
            (add-after 'unpack 'fix-hardcoded-paths

Also the „Inputs“ and „Outputs“ sections do not show an example. This 
could be copied from above. Maybe it is even better to show how to use 
inputs and outputs in phases here - and not have it in the example above 
- as I did go directly to the „Inputs“ section.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@HIDDEN               |
| www.crazy-compilers.com | compilers which you thought are impossible |





Acknowledgement sent to Hartmut Goebel <h.goebel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#54690; Package guix. 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: Sun, 3 Apr 2022 12:30:02 UTC

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