From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aKANF7Vj52CxUgEAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 22:44:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id hLStErVj52DpVQAA1q6Kng (envelope-from ) for ; Thu, 08 Jul 2021 20:44: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 4109713CDA for ; Thu, 8 Jul 2021 22:44:36 +0200 (CEST) Received: from localhost ([::1]:48342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1ast-00009Y-7x for larch@yhetil.org; Thu, 08 Jul 2021 16:44:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1V7w-0006IH-Sl for help-guix@gnu.org; Thu, 08 Jul 2021 10:35:44 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.111]:44347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1V7t-00024l-0I for help-guix@gnu.org; Thu, 08 Jul 2021 10:35:44 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway32.websitewelcome.com (Postfix) with ESMTP id A98B4525A0 for ; Thu, 8 Jul 2021 09:35:16 -0500 (CDT) Received: from gator3135.hostgator.com ([50.87.144.171]) by cmsmtp with SMTP id 1V7Um7gngoIHn1V7UmSibC; Thu, 08 Jul 2021 09:35:16 -0500 X-Authority-Reason: nr=8 Received: from gator3135.hostgator.com ([50.87.144.171]:20680) by gator3135.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1m1V7T-001lF0-0o for help-guix@gnu.org; Thu, 08 Jul 2021 09:35:15 -0500 Received: from [108.49.41.226] ([108.49.41.226]) by labsolns.com (Horde Framework) with HTTPS; Thu, 08 Jul 2021 09:35:12 -0500 Date: Thu, 08 Jul 2021 09:35:12 -0500 Message-ID: <20210708093512.Horde.Jjc5tUsiF-7s-m0PhSJHUkt@labsolns.com> From: info@labsolns.com To: help-guix@gnu.org Subject: successfully(?) installed package but it can't be found/used 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 - labsolns.com X-BWhitelist: no X-Source-IP: 50.87.144.171 X-Source-L: Yes X-Exim-ID: 1m1V7T-001lF0-0o X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator3135.hostgator.com [50.87.144.171]:20680 X-Source-Auth: info@labsolns.com X-Email-Count: 1 X-Source-Cap: cGxhcGFuO3BsYXBhbjtnYXRvcjMxMzUuaG9zdGdhdG9yLmNvbQ== X-Local-Domain: yes Received-SPF: pass client-ip=192.185.145.111; envelope-from=info@labsolns.com; helo=gateway32.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 08 Jul 2021 16:44:11 -0400 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=1625777076; 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=ATo3OVdECrav2mTPQOUl13q+OW43PjGvqrlGLq8DPC8=; b=ZljLcEO65NDlm/7a3rTytXgVbVnOuRe9QStSGyW0Ic4potcgMJ26PKXQOUJvPVt3uZEGiA 25PMqR34bpF8cTcv9gtIQi4zquUXcsqdUQ34JqbSpHugqmxTZ0FqOcZ7XyrNNvKahlQgRR OfhffsA5cSjtweuIR+B17Svr9xYzT5W6hT8G5lA58oV6RlxVv5LljrB6B1l6v7SH9/Rk1y 7N/PkxAXNxC6p+dTVWHPNqRhvi6FbK+Xv0oABBVjkaV+I5W5v6hCfQUZENHU8jkvljRSFG CV99urYXM/B3GSTsHDhHQveX4/jbXA1tnsvE/7v/rMZpRzhpensS4cERUbezcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625777076; a=rsa-sha256; cv=none; b=pjm57TQsgXB9Infwj7axr0T4wJMHjqakUW14JswpMp/DUOMDzV2rM25BL/RjDfX3I9n5vL OCfkzCj50IwsOYIVT9wihsXiHiUwubWvLeRZhAzGle2NscJjVcW1JRsY9DTxbuv6i6iKUs K02V0uHts/x0pRHETqScgqj+CA8pJwCXAHN7sWtJoW3Iotm+F+DNkjuTuPJF8dddNTiDXx 0ayn7A9OGZTdbE76z/yYZ1LTLUtiMukmTwyIp9Q0K+Z0jMK9eS7bG6xWWVGPyB+pSy6oFI xuaGlWQMxxTLAcRYCAVtvaS/vPegjZgytTqrx8Dovw+udO62elm4Ppsatc75Sg== 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: -2.41 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: 4109713CDA X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ak4FujaaQTr8 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