Skip to content

Commit

Permalink
56 componentsca certificates getting xhr error (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsManjeet authored Dec 12, 2023
1 parent e0981e1 commit 57765ec
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 39 deletions.
2 changes: 0 additions & 2 deletions TODO.ELEMENTS
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ components/gc.yml: check patch
components/openjdk.yml: fix update url
components/nvidia-settings.yml: check patch
components/udisks.yml: check update url
components/make-ca.yml: fix certdata.txt file
components/make-ca.yml: do we need this after ca-certificates
components/openjdk-bin.yml: fix update url
components/openldap.yml: fix post-script and configurations
components/apr-util.yml: fix update url
Expand Down
2 changes: 1 addition & 1 deletion elements/collections/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ merge: [version.yml, elements/include/meta.yml]

depends:
- components/busybox.yml
- components/ca-certificates.yml
- components/make-ca.yml
- components/coreutils.yml
- components/dbus.yml
- components/diffutils.yml
Expand Down
15 changes: 0 additions & 15 deletions elements/components/ca-certificates.yml

This file was deleted.

2 changes: 1 addition & 1 deletion elements/components/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ script: |
depends:
- components/busybox.yml
- components/ca-certificates.yml
- components/make-ca.yml
- components/coreutils.yml
- components/dbus.yml
- components/diffutils.yml
Expand Down
3 changes: 1 addition & 2 deletions elements/components/curl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ sources:
build-type: autotools
depends:
- components/glibc.yml
- components/ca-certificates.yml
configure: >-
--enable-threaded-resolver
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
--with-ca-path=/etc/ssl/certs
--with-openssl
4 changes: 1 addition & 3 deletions elements/components/gnutls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ about:
transport layer

configure: >-
--disable-guile
--disable-rpath
--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt
--with-default-trust-store-pkcs11="pkcs11:"
depends:
- components/nettle.yml
Expand Down
19 changes: 12 additions & 7 deletions elements/components/make-ca.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
id: make-ca
version: "1.7"
version: 1.13
about: MakeCA
release: 0

depends:
- components/p11-kit.yml
- components/nss.yml
sources:
- https://github.com/djlucas/make-ca/releases/download/v1.7/make-ca-1.7.tar.xz
- https://github.com/lfs-book/make-ca/releases/download/v%{version}/make-ca-%{version}.tar.xz

script: |-
# install -v -D -m 0644 /files/certdata.txt -t %{install-root}%{sysconfdir}/ssl/
make install LIBEXECDIR=/usr/lib SBINDIR=/usr/bin DESTDIR=%{install-root}
make install LIBEXECDIR=%{libdir}/make-ca SBINDIR=%{bindir} DESTDIR=%{install-root}
install -vDm 0754 /dev/stdin %{install-root}%{sysconfdir}/cron.weekly/update-pki.sh << "EOF"
#!/bin/bash
%{bindir}/make-ca -g
EOF
# TODO: fix certdata.txt file
# TODO: do we need this after ca-certificates
integration: |-
make-ca -g
2 changes: 1 addition & 1 deletion elements/components/mercurial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ script: |-
install -m 755 -d %{install-root}%{sysconfdir}/mercurial
cat <<-EOF > %{install-root}%{sysconfdir}/mercurial/hgrc
[web]
cacerts = %{sysconfdir}/ssl/certs/ca-certificates.crt
cacerts = %{sysconfdir}/pki/tls/certs/ca-bundle.crt
EOF
1 change: 0 additions & 1 deletion elements/components/mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: 6.12.0.205
about: Free implementation of the .NET platform including runtime and compiler

depends:
- components/ca-certificates.yml
- components/libgdiplus.yml
- components/python.yml
- components/zlib.yml
Expand Down
15 changes: 11 additions & 4 deletions elements/components/p11-kit.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
id: p11-kit
version: 0.25.0
version: 0.25.3
about: |
Provides a way to load and enumerate PKCS #11 (a Cryptographic Token Interface Standard) modules
pre-script: |-
sed '20,$ d' -i trust/trust-extract-compat
cat >> trust/trust-extract-compat << "EOF"
%{libdir}/make-ca/copy-trust-modifications
%{bindir}/make-ca -f -g
EOF
post-script: |-
ln -sfv ./pkcs11/p11-kit-trust.so %{install-root}%{libdir}/libnssckbi.so
build-type: autotools
ln -s %{libdir}/p11-kit/trust-extract-compat %{install-root}%{bindir}/update-ca-trust
configure: >-
--with-trust-paths=%{sysconfdir}/pki/anchors
-D trust_paths=%{sysconfdir}/pki/anchors
-D module_path=%{libdir}/pkcs11
depends:
- components/libtasn1.yml
Expand Down
1 change: 0 additions & 1 deletion elements/components/rustc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ build-depends:
- components/cmake.yml
- components/gdb.yml
- components/ninja.yml
- components/ca-certificates.yml

sources:
- https://static.rust-lang.org/dist/rustc-%{version}-src.tar.xz
Expand Down
1 change: 0 additions & 1 deletion elements/components/wget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sources:

depends:
- components/glibc.yml
- components/ca-certificates.yml
- components/openssl.yml
- components/util-linux.yml
- components/libidn2.yml
Expand Down

0 comments on commit 57765ec

Please sign in to comment.