Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wildan Mubarok
cookbook
Commits
db9f4e40
Verified
Commit
db9f4e40
authored
4 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add curl recipe
parent
decf3919
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/curl/recipe.toml
+39
-0
39 additions, 0 deletions
recipes/curl/recipe.toml
src/bin/cook.rs
+5
-0
5 additions, 0 deletions
src/bin/cook.rs
with
44 additions
and
0 deletions
recipes/curl/recipe.toml
0 → 100644
+
39
−
0
View file @
db9f4e40
[source]
git
=
"https://gitlab.redox-os.org/redox-os/curl.git"
branch
=
"redox"
[build]
template
=
"custom"
dependencies
=
[
"nghttp2"
,
"openssl"
,
"zlib"
]
script
=
"""
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
autoreconf -i
COOKBOOK_CONFIGURE="./configure"
COOKBOOK_CONFIGURE_FLAGS=(
--build="$(cc -dumpmachine)"
--host="${TARGET}"
--prefix=""
--disable-ftp
--disable-ipv6
--disable-ntlm-wb
--disable-shared
--disable-tftp
--disable-threaded-resolver
--enable-static
--with-ca-path=/ssl/certs
--with-nghttp2="${COOKBOOK_SYSROOT}"
--with-ssl="${COOKBOOK_SYSROOT}"
--with-zlib="${COOKBOOK_SYSROOT}"
)
cookbook_configure
"""
[package]
dependencies
=
[
"ca-certificates"
]
This diff is collapsed.
Click to expand it.
src/bin/cook.rs
+
5
−
0
View file @
db9f4e40
...
...
@@ -339,6 +339,9 @@ fn build(recipe_dir: &Path, source_dir: &Path, build: &BuildRecipe) -> Result<Pa
}
let
pre_script
=
r#"# Common pre script
# Add cookbook bins to path
export PATH="${COOKBOOK_ROOT}/bin:${PATH}"
# This puts cargo build artifacts in the build directory
export CARGO_TARGET_DIR="${COOKBOOK_BUILD}/target"
...
...
@@ -414,12 +417,14 @@ fi
//TODO: remove unwraps
let
cookbook_build
=
build_dir
.canonicalize
()
.unwrap
();
let
cookbook_recipe
=
recipe_dir
.canonicalize
()
.unwrap
();
let
cookbook_root
=
Path
::
new
(
"."
)
.canonicalize
()
.unwrap
();
let
cookbook_stage
=
stage_dir_tmp
.canonicalize
()
.unwrap
();
let
cookbook_source
=
source_dir
.canonicalize
()
.unwrap
();
let
cookbook_sysroot
=
sysroot_dir
.canonicalize
()
.unwrap
();
command
.current_dir
(
&
cookbook_build
);
command
.env
(
"COOKBOOK_BUILD"
,
&
cookbook_build
);
command
.env
(
"COOKBOOK_RECIPE"
,
&
cookbook_recipe
);
command
.env
(
"COOKBOOK_ROOT"
,
&
cookbook_root
);
command
.env
(
"COOKBOOK_STAGE"
,
&
cookbook_stage
);
command
.env
(
"COOKBOOK_SOURCE"
,
&
cookbook_source
);
command
.env
(
"COOKBOOK_SYSROOT"
,
&
cookbook_sysroot
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment