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
Container Registry
Model registry
Operate
Environments
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
redox-os
cookbook
Commits
882b2108
Commit
882b2108
authored
6 months ago
by
Bendeguz Pisch
Browse files
Options
Downloads
Patches
Plain Diff
Fix and clean up the perl5 recipe.
parent
ea07606f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!393
Fix and clean up the perl5 recipe.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/wip/dev/lang/perl5/recipe.toml
+5
-14
5 additions, 14 deletions
recipes/wip/dev/lang/perl5/recipe.toml
with
5 additions
and
14 deletions
recipes/wip/dev/lang/perl5/recipe.toml
+
5
−
14
View file @
882b2108
...
...
@@ -6,6 +6,9 @@
tar
=
"https://www.cpan.org/src/5.0/perl-5.40.0.tar.gz"
[build]
template
=
"custom"
dependencies
=
[
"relibc"
]
script
=
"""
rsync -av --delete "${COOKBOOK_SOURCE}/" ./ #move it to the top of the script after debugging - BP
curl -L -O --time-cond perl-cross-1.6.tar.gz https://github.com/arsv/perl-cross/releases/download/1.6/perl-cross-1.6.tar.gz
...
...
@@ -13,28 +16,16 @@ tar --strip-components=1 -xvf perl-cross-1.6.tar.gz
wget -O ./cnf/config.sub "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false"
#Note: since perl-cross can run only inside the source-tree (out-of-tree is bugged) it's easier to do everything in the build directory
COOKBOOK_CONFIGURE=${COOKBOOK_BUILD}/configure
#Note: non-standard configure, familiar flags can have different meaning!
COOKBOOK_CONFIGURE_FLAGS=(
--host-cc=gcc
--host-cpp=g++
--target=x86_64-unknown-redox
--prefix=
--sysroot=${COOKBOOK_SYSROOT}
--disable-mod=Sys-Syslog,Time-HiRes
#--with-libs='m'
)
cp ${COOKBOOK_RECIPE}/configure_tool.sh ${COOKBOOK_BUILD}/cnf/configure_tool.sh
cp ${COOKBOOK_RECIPE}/redox ${COOKBOOK_BUILD}/cnf/hints/redox
mkdir ${COOKBOOK_SYSROOT}/usr
cp -r /mnt/c/commd/redox/redox/prefix/x86_64-unknown-redox/relibc-install/x86_64-unknown-redox/include ${COOKBOOK_SYSROOT}/usr
ln -s "${COOKBOOK_SYSROOT}/include" "${COOKBOOK_SYSROOT}/usr/include"
#Note: non-standard configure, familiar flags can have different meaning!
./configure --host-cc=gcc --host-cpp=g++ --target=x86_64-unknown-redox --sysroot=${COOKBOOK_SYSROOT} --disable-mod=Sys-Syslog
sed -i "s/^#define Netdb_name_t.*/#define Netdb_name_t const char*/" config.h
#OSNAME sed -i 's/^#define OSNAME.*/#define OSNAME "redox"/' config.h
sed -i "s/^# HAS_NANOSLEEP.*/#define HAS_NANOSLEEP/" config.h
sed -i "s|^/.#define I_GRP.*|#define I_GRP|" config.h
echo "#define HAS_GROUP" >> config.h
#sed -i 's/#define Strerror(e).*$/#define Strerror(e) strerror(e)/' config.h
#echo "#define HAS_VPRINTF" >> config.h
make -j4
make install DESTDIR="${COOKBOOK_STAGE}"
pushd .
...
...
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