Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
6e184d73
Commit
6e184d73
authored
Oct 17, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component/ca-certificate: simplify pre-make-hook
parent
5c150d68
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
17 deletions
+12
-17
component/ca-certificates/buildout.cfg
component/ca-certificates/buildout.cfg
+2
-2
component/ca-certificates/ca-certificates-any-python.patch
component/ca-certificates/ca-certificates-any-python.patch
+0
-11
component/ca-certificates/ca-certificates-pre-make-hook.py
component/ca-certificates/ca-certificates-pre-make-hook.py
+10
-4
No files found.
component/ca-certificates/buildout.cfg
View file @
6e184d73
...
@@ -16,7 +16,7 @@ url = https://deb.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_
...
@@ -16,7 +16,7 @@ url = https://deb.debian.org/debian/pool/main/c/ca-certificates/ca-certificates_
md5sum = fc1c3ec0067385f0be8ac7f6e670a0f8
md5sum = fc1c3ec0067385f0be8ac7f6e670a0f8
patch-binary = ${patch:location}/bin/patch
patch-binary = ${patch:location}/bin/patch
patches =
patches =
${:_profile_base_location_}/ca-certificates-any-python.patch#
a5817d1b7162f8f814960f72c747e3af
${:_profile_base_location_}/ca-certificates-any-python.patch#
56ecfeb8f23ae00726191a611d08894e
${:_profile_base_location_}/ca-certificates-mkdir-p.patch#02ed8a6d60c39c4b088657888af345ef
${:_profile_base_location_}/ca-certificates-mkdir-p.patch#02ed8a6d60c39c4b088657888af345ef
${:_profile_base_location_}/ca-certificates-no-cryptography.patch#14ad1308623b0d15420906ae3d9b4867
${:_profile_base_location_}/ca-certificates-no-cryptography.patch#14ad1308623b0d15420906ae3d9b4867
patch-options = -p0
patch-options = -p0
...
@@ -25,4 +25,4 @@ make-targets = install DESTDIR=@@LOCATION@@ CERTSDIR=certs SBINDIR=sbin
...
@@ -25,4 +25,4 @@ make-targets = install DESTDIR=@@LOCATION@@ CERTSDIR=certs SBINDIR=sbin
environment =
environment =
PATH=${xz-utils:location}/bin:%(PATH)s
PATH=${xz-utils:location}/bin:%(PATH)s
pre-make-hook =
pre-make-hook =
${:_profile_base_location_}/ca-certificates-pre-make-hook.py#
9e2f6f22d91ea7a089f0ea2c523b0c1e
:pre_make_hook
${:_profile_base_location_}/ca-certificates-pre-make-hook.py#
89d64d612e143638b7b264be4b129798
:pre_make_hook
component/ca-certificates/ca-certificates-any-python.patch
View file @
6e184d73
...
@@ -9,14 +9,3 @@
...
@@ -9,14 +9,3 @@
in_multiline = False
in_multiline = False
continue
continue
if line.startswith('CKA_CLASS'):
if line.startswith('CKA_CLASS'):
--- mozilla/Makefile 2015-12-20 10:49:23.000000000 +0100
+++ mozilla/Makefile 2016-01-05 20:19:11.006874271 +0100
@@ -3,7 +3,7 @@
#
all:
- python3 certdata2pem.py
+ SLAPOS_BUILDOUT_PYTHON certdata2pem.py
clean:
-rm -f *.crt
component/ca-certificates/ca-certificates-pre-make-hook.py
View file @
6e184d73
import
pathlib
import
sys
import
sys
# Because ca-certificate is used very early in the bootstrap process,
# even before python is built, we can not use the software release python
# yet, because it would loop forever in slapos.rebootstrap.
# By using sys.executable in a hook like this, we can use python without
# buildout recording a dependency to python in the part options.
def
pre_make_hook
(
options
,
buildout
,
environ
):
def
pre_make_hook
(
options
,
buildout
,
environ
):
makefile
=
pathlib
.
Path
(
'mozilla/Makefile'
)
with
open
(
'mozilla/Makefile'
)
as
f
:
txt
=
makefile
.
read_text
().
replace
(
'SLAPOS_BUILDOUT_PYTHON'
,
sys
.
executable
)
makefile
=
f
.
read
()
makefile
.
write_text
(
txt
)
makefile
=
makefile
.
replace
(
'python3 certdata2pem.py'
,
'%s certdata2pem.py'
%
sys
.
executable
)
with
open
(
'mozilla/Makefile'
,
'w'
)
as
f
:
f
.
write
(
makefile
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment