all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tyler parks <tsparks3264@gmail.com>
To: help-guix@gnu.org
Subject: attempted ca-certificates package
Date: Wed, 5 Oct 2022 06:11:28 -0500	[thread overview]
Message-ID: <CAMkVx_+fAa-Y3x_rK83=kC+tSkn48FFHPJ=cJBTYDudtKpwVAw@mail.gmail.com> (raw)

Hello,

I'm new to Guix (and Scheme) and trying to get ca-certificates working in
Guix System. I intend to use Guix System on an old PC for a router, with
Pi-Hole as the DNS server atop it, and ca-certificates is a dependency for
Pi-Hole. The makefile of ca-certificates appears to just copy a bunch of
bash scripts into a given installation directory. I've convinced the
makefile to install those scripts into  /gnu/store on a Guix System laptop,
but it seems none of them are appearing in the path; I get a "command not
found" error trying to test the update-ca-certificates script after
installing the package. Sourcing the Guix profile after installing the
package didn't help. I'd appreciate any insight into how to resolve the
"command not found" error.


This is the ca-certificates package I wrote:
(define ca-certificates
(package
(name "ca-certificates")
;no recent tagged releases, used latest master commit at time of writing
(version "2021.10.04")

; use opensuse version since debian version has no license
(home-page "https://github.com/openSUSE/ca-certificates")

(synopsis "Utilities for system wide CA certificate installation")
(license license:gpl2)
(description "Utilities for system wide CA certificate
installation.\nupdate-ca-certificates
is intended to keep the certificate stores of
various components in sync with the system CA certificates.")
(source
(origin
(method git-fetch)
(uri (git-reference (url "https://github.com/openSUSE/ca-certificates")
(commit "3efbea9d908d0ecf3678aeef8ade884c0c155175")))
(sha256 "0rw2b2jqlflx171mc9f4xzhj7zgxhacdyasjqsgnrj4iir97k07j")
))
(build-system gnu-build-system)
(arguments
`(
; change DESTDIR, so makefile does not need root to install
#:make-flags (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
#:phases
(modify-phases %standard-phases
; makefile does not have these targets
(delete 'configure)
(delete 'check)
))
)
)
)


The tree of the installed /gnu/store directory looks like this:
/gnu/store/yp99k9yhmi3a1bvx5w994l6akxkxqcy5-ca-certificates-2021.10.04/
├── share
│   └── doc
│       └── ca-certificates-2021.10.04
│           └── COPYING
└── usr
    ├── lib
    │   ├── ca-certificates
    │   │   └── update.d
    │   │       ├── 50java.run
    │   │       ├── 70openssl.run
    │   │       ├── 80etc_ssl.run
    │   │       └── 99certbundle.run
    │   └── systemd
    │       └── system
    │           ├── ca-certificates.path
    │           └── ca-certificates.service
    ├── sbin
    │   └── update-ca-certificates
    └── share
        └── man
            └── man8
                └── update-ca-certificates.8

This is the error I get trying to run update-ca-certificates on Guix System
after installing the ca-certificates package with `guix package -f`:
~$ update-ca-certificates
-bash: update-ca-certificates: command not found

V/R
Tyler Parks

                 reply	other threads:[~2022-10-05 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMkVx_+fAa-Y3x_rK83=kC+tSkn48FFHPJ=cJBTYDudtKpwVAw@mail.gmail.com' \
    --to=tsparks3264@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.