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
c44ee8ef
Verified
Commit
c44ee8ef
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add gettext
parent
82394a41
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/gettext/recipe.sh
+44
-0
44 additions, 0 deletions
recipes/gettext/recipe.sh
recipes/gettext/redox.patch
+46
-0
46 additions, 0 deletions
recipes/gettext/redox.patch
with
90 additions
and
0 deletions
recipes/gettext/recipe.sh
0 → 100644
+
44
−
0
View file @
c44ee8ef
VERSION
=
0.19.8.1
TAR
=
http://ftp.gnu.org/pub/gnu/gettext/gettext-
${
VERSION
}
.tar.xz
BUILD_DEPENDS
=(
libiconv
)
function
recipe_version
{
echo
"
$VERSION
"
skip
=
1
}
function
recipe_update
{
echo
"skipping update"
skip
=
1
}
function
recipe_build
{
sysroot
=
"
$(
realpath
../sysroot
)
"
export
CFLAGS
=
"-I
$sysroot
/include"
export
LDFLAGS
=
"-L
$sysroot
/lib"
wget
-O
build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure
\
--host
=
${
HOST
}
\
--prefix
=
/
\
--disable-shared
\
--enable-static
make
-j
"
$(
nproc
)
"
skip
=
1
}
function
recipe_test
{
echo
"skipping test"
skip
=
1
}
function
recipe_clean
{
make clean
skip
=
1
}
function
recipe_stage
{
dest
=
"
$(
realpath
$1
)
"
make
DESTDIR
=
"
$dest
"
install
rm
-f
"
$dest
/lib/"
*
.la
skip
=
1
}
This diff is collapsed.
Click to expand it.
recipes/gettext/redox.patch
0 → 100644
+
46
−
0
View file @
c44ee8ef
diff -ruwN source/gettext-tools/gnulib-lib/getdtablesize.c source-new/gettext-tools/gnulib-lib/getdtablesize.c
--- source/gettext-tools/gnulib-lib/getdtablesize.c 2016-06-11 06:59:58.000000000 -0600
+++ source-new/gettext-tools/gnulib-lib/getdtablesize.c 2019-01-05 08:45:36.015291070 -0700
@@ -84,6 +84,14 @@
return dtablesize;
}
+#elif defined(__redox__)
+
+int
+getdtablesize (void)
+{
+ return INT_MAX;
+}
+
#else
# include <limits.h>
diff -ruwN source/gettext-tools/gnulib-lib/spawni.c source-new/gettext-tools/gnulib-lib/spawni.c
--- source/gettext-tools/gnulib-lib/spawni.c 2016-06-11 07:00:02.000000000 -0600
+++ source-new/gettext-tools/gnulib-lib/spawni.c 2019-01-05 08:55:44.661641522 -0700
@@ -51,10 +51,10 @@
# include <local-setxid.h>
#else
# if !HAVE_SETEUID
-# define seteuid(id) setresuid (-1, id, -1)
+# define seteuid(id) setreuid (-1, id)
# endif
# if !HAVE_SETEGID
-# define setegid(id) setresgid (-1, id, -1)
+# define setegid(id) setregid (-1, id)
# endif
# define local_seteuid(id) seteuid (id)
# define local_setegid(id) setegid (id)
diff -ruwN source/gettext-tools/src/plural-eval.h source-new/gettext-tools/src/plural-eval.h
--- source/gettext-tools/src/plural-eval.h 2016-03-20 01:37:53.000000000 -0600
+++ source-new/gettext-tools/src/plural-eval.h 2019-01-05 08:51:23.113067496 -0700
@@ -29,7 +29,7 @@
#include <setjmp.h>
/* Some platforms don't have the sigjmp_buf type in <setjmp.h>. */
-#if defined _MSC_VER || defined __MINGW32__
+#if defined _MSC_VER || defined __MINGW32__ || defined(__redox__)
/* Native Woe32 API. */
# define sigjmp_buf jmp_buf
# define sigsetjmp(env,savesigs) setjmp (env)
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