From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +EbvCOVg52AcTAEAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 22:32:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gH9vBOVg52D4AgAAbx9fmQ (envelope-from ) for ; Thu, 08 Jul 2021 20:32:37 +0000 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 440AE14A85 for ; Thu, 8 Jul 2021 22:32:36 +0200 (CEST) Received: from localhost ([::1]:52856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1ahG-0000pT-96 for larch@yhetil.org; Thu, 08 Jul 2021 16:32:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1afW-0000Cc-Cu for help-guix@gnu.org; Thu, 08 Jul 2021 16:30:46 -0400 Received: from gateway20.websitewelcome.com ([192.185.65.13]:26262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1afT-0004KW-A7 for help-guix@gnu.org; Thu, 08 Jul 2021 16:30:45 -0400 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 6E28B400EBE92 for ; Thu, 8 Jul 2021 15:15:18 -0500 (CDT) Received: from gator3135.hostgator.com ([50.87.144.171]) by cmsmtp with SMTP id 1af7mvoNBpGxH1af7mHCo4; Thu, 08 Jul 2021 15:30:21 -0500 X-Authority-Reason: nr=8 Received: from gator3135.hostgator.com ([50.87.144.171]:22112) by gator3135.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m1af5-002m1d-SW for help-guix@gnu.org; Thu, 08 Jul 2021 15:30:19 -0500 Received: from [108.49.41.226] ([108.49.41.226]) by www.stihie.net (Horde Framework) with HTTPS; Thu, 08 Jul 2021 15:30:17 -0500 Date: Thu, 08 Jul 2021 15:30:17 -0500 Message-ID: <20210708153017.Horde.YV278rS7y88Chqk97N8zg-P@www.stihie.net> From: mbcladwell@stihie.net To: help-guix@gnu.org Subject: packaged artanis v0.5 not found User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3135.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stihie.net X-BWhitelist: no X-Source-IP: 50.87.144.171 X-Source-L: Yes X-Exim-ID: 1m1af5-002m1d-SW X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator3135.hostgator.com [50.87.144.171]:22112 X-Source-Auth: mbcladwell@stihie.net X-Email-Count: 1 X-Source-Cap: cGxhcGFuO3BsYXBhbjtnYXRvcjMxMzUuaG9zdGdhdG9yLmNvbQ== X-Local-Domain: yes Received-SPF: pass client-ip=192.185.65.13; envelope-from=mbcladwell@stihie.net; helo=gateway20.websitewelcome.com 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625776356; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rTL5nUQwvnCVxl6l2c3V3A3SsT3GUnES3E6r8U+udNY=; b=SPM3RjCeaXh2BctNvQR2F5mxUe6QPH6B+Q+utuvbrdAZfhIfl3xopChz5DksiifIt8Ep4D 1/wea+TxgKecs4mkkkgPWOnirvbqjX4a4MBJaSIWM6UgaXH7nllVEAJ7sc1q40Y01L3bw+ aq0QVK5/RjHaH0/4czykmXCtv6Gx0Xpaz+BCpkQ8eXU7tnWkrWfIqphIA7evY3y7P67H5W ZEhQpAliinmxn0OF+DHYZvJweTsmn0DOg817Du9005zT6MNUrIUlcy1daejo0rm0xuqYX7 P/8AM6w97voZll97ZDabKZmD4RZ48oDQ+8ES7r0j25oZyVYHVr+tEsuIS6F9aQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625776356; a=rsa-sha256; cv=none; b=PvIxuUSoDCSHdID0/TTlBeA6f2QQwIpBO04KpO7/uuDUcT3ZRiPnSR/71xbSZtZZBdvaJc YDXjlV0fbA1j/kYV4YX7s+o7enYBDv+KrIZShNPlk9LpB/BPtri1oA6wA4l4Y63sc3vLrG AvDDU8pUpcvkALHDBcgTHDjbd1YFjn9oRgFeR4vPlbrSh9oDqJWrSIMSdU7gRcMG9uEfnk y0YeBh+sjpH9XYdL8RcxfWMmAK/r3wVyjVsP9dq5TeEVwXh7RLHdQy5gv9MBJElbsvTV7I jSsS5yH5i9p2HokIvVAkOtMr/KWHwTPlLG2Hzlum8K1R172nCH0BIEsfoGMSHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 440AE14A85 X-Spam-Score: -1.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: IURK8MkSt8V8 Hi, I would like to install Artanis v0.5 into my store. I see the patch https://issues.guix.gnu.org/46885#0 and incorporate the changes into a local guix.scm (pasted at the end of this message). I do not change guile-xyz.scm. The install seems to complete without error. $ guix package --install-from-file=guix.scm guix package: warning: Consider running 'guix pull' followed by 'guix package -u' to get up-to-date packages and security updates. The following package will be upgraded: artanis 0.4.1 → 0.5 substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivations will be built: /gnu/store/zvw16sg5sj11b2gzgyrh7bhvzmbw01j2-artanis-0.5.drv /gnu/store/gkq3pzjqvvnwfd5v9ia2vqffcbq6d5nq-artanis-0.5.tar.xz.drv /gnu/store/ybh7mdkv7mnjsvy5bkxhcff50kzzbgpq-artanis-0.5.tar.gz.drv building /gnu/store/ybh7mdkv7mnjsvy5bkxhcff50kzzbgpq-artanis-0.5.tar.gz.drv... building /gnu/store/gkq3pzjqvvnwfd5v9ia2vqffcbq6d5nq-artanis-0.5.tar.xz.drv... building /gnu/store/zvw16sg5sj11b2gzgyrh7bhvzmbw01j2-artanis-0.5.drv... The following derivation will be built: /gnu/store/rcvd3kqvik3id62619vq586cvwdwx4gy-profile.drv applying 1 graft for /gnu/store/zkbw06gwzv46rmj0qs2pc5i3hfign799-artanis-0.5.drv ... building CA certificate bundle... listing Emacs sub-directories... building fonts directory... generating GLib schema cache... creating GTK+ icon theme cache... building cache files for GTK+ input methods... building directory of Info manuals... building database for manual pages... building XDG desktop file cache... building XDG MIME database... building profile with 29 packages... hint: Consider setting the necessary environment variables by running: GUIX_PROFILE="/home/mbc/.guix-profile" . "$GUIX_PROFILE/etc/profile" Alternately, see `guix package --search-paths -p "/home/mbc/.guix-profile"'. However when I search for artanis: $ guix package -s artanis name: artanis version: 0.4.1 outputs: out systems: x86_64-linux i686-linux etc. etc. If I search the store there are many artanis-0.5 files, sample below: $find /gnu/store -wholename *artanis-0.5* /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/mvc/view.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/mvc/controller.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/irregex.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/ssql.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/fprm.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/third-party /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/third-party/csv.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/debug.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/commands.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/page.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/lib/guile/3.0/site-ccache/artanis/artanis.go /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/bin /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/bin/art /gnu/store/6l81w3hcw6s4jn7nic0bh096nvql0ffc-artanis-0.5/bin/.art-real /gnu/store/b6g0wiw56gqjsj6ik9g53g5q9npwzkv8-profile/share/doc/artanis-0.5 ....... If I try to create an ad hoc environment: $ guix environment --ad-hoc artanis@0.5 guix environment: error: artanis: package not found for version 0.5 Where did I go wrong? Thanks Mortimer --------guix.scm---------------- (use-modules (guix packages) ((guix licenses) #:prefix license:) (guix download) (guix build-system gnu) (gnu packages) (gnu packages autotools) (gnu packages guile) (gnu packages guile-xyz) (gnu packages pkg-config) (gnu packages texinfo) (gnu packages bash) (gnu packages linux) (gnu packages databases) (gnu packages nss) (gnu packages tls) (gnutls) ) (define-public artanis (package (name "artanis") (version "0.5") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/artanis/artanis-" version ".tar.gz")) (sha256 (base32 "1vk1kp2xhz35xa5n27cxlq9c88wk6qm7fqaac8rb0pb6k9pvsv7v")) (modules '((guix build utils))) (snippet '(begin ;; Unbundle guile-redis and guile-json (delete-file-recursively "artanis/third-party/json.scm") (delete-file-recursively "artanis/third-party/json") (delete-file-recursively "artanis/third-party/redis.scm") (delete-file-recursively "artanis/third-party/redis") (substitute* '("artanis/artanis.scm" "artanis/lpc.scm" "artanis/oht.scm") (("(#:use-module \\()artanis third-party (json\\))" _ use-module json) (string-append use-module json))) (substitute* '("artanis/lpc.scm" "artanis/session.scm") (("(#:use-module \\()artanis third-party (redis\\))" _ use-module redis) (string-append use-module redis))) (substitute* "artanis/oht.scm" (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)" _ pre json-string post) (string-append pre "scm" json-string post))) (substitute* "artanis/artanis.scm" (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+") "")) #t)))) (build-system gnu-build-system) (inputs `(("guile" ,guile-3.0) ("nss" ,nss) ("nspr" ,nspr))) ;; FIXME the bundled csv contains one more exported procedure ;; (sxml->csv-string) than guile-csv. The author is maintainer of both ;; projects. ;; TODO: Add guile-dbi and guile-dbd optional dependencies. (propagated-inputs `(("guile-json" ,guile-json-3) ("guile-readline" ,guile-readline) ("guile-redis" ,guile-redis))) (native-inputs `(("bash" ,bash) ;for the `source' builtin ("pkgconfig" ,pkg-config) ("util-linux" ,util-linux))) ;for the `script' command (arguments '(#:make-flags ;; TODO: The documentation must be built with the `docs' target. (let* ((out (assoc-ref %outputs "out")) (scm (string-append out "/share/guile/site/3.0")) (go (string-append out "/lib/guile/3.0/site-ccache"))) ;; Don't use (%site-dir) for site paths. (list (string-append "MOD_PATH=" scm) (string-append "MOD_COMPILED_PATH=" go))) #:test-target "test" #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-site-dir (lambda* (#:key outputs #:allow-other-keys) (substitute* "artanis/commands/help.scm" (("\\(%site-dir\\)") (string-append "\"" (assoc-ref outputs "out") "/share/guile/site/3.0\""))))) (add-after 'unpack 'patch-reference-to-libnss (lambda* (#:key inputs #:allow-other-keys) (substitute* "artanis/security/nss.scm" (("ffi-binding \"libnss3\"") (string-append "ffi-binding \"" (assoc-ref inputs "nss") "/lib/nss/libnss3.so" "\"")) (("ffi-binding \"libssl3\"") (string-append "ffi-binding \"" (assoc-ref inputs "nss") "/lib/nss/libssl3.so" "\""))) #t)) (add-before 'install 'substitute-root-dir (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (substitute* "Makefile" ;ignore the execution of bash.bashrc ((" /etc/bash.bashrc") " /dev/null")) (substitute* "Makefile" ;set the root of config files to OUT ((" /etc") (string-append " " out "/etc"))) (mkdir-p (string-append out "/bin")) ;for the `art' executable #t))) (add-after 'install 'wrap-art (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (bin (string-append out "/bin")) (scm (string-append out "/share/guile/site/3.0")) (go (string-append out "/lib/guile/3.0/site-ccache"))) (wrap-program (string-append bin "/art") `("GUILE_LOAD_PATH" ":" prefix (,scm ,(getenv "GUILE_LOAD_PATH"))) `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,go ,(getenv "GUILE_LOAD_COMPILED_PATH")))) #t)))))) (synopsis "Web application framework written in Guile") (description "GNU Artanis is a web application framework written in Guile Scheme. A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. Artanis provides several tools for web development: database access, templating frameworks, session management, URL-remapping for RESTful, page caching, and more.") (home-page "https://www.gnu.org/software/artanis/") (license (list license:gpl3+ license:lgpl3+)))) ;dual license artanis