aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/musl-cross-locale.patch
blob: 7634eda381aae7a625837a84b14cf362e29deb3b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Disable locales other than C and POSIX because of a compilation error.
By Danny Milosavljevic <dannym@scratchpost.org>
This patch is distributed under BSD-3 license.
See https://github.com/osresearch/heads/pull/610
diff -ruN b/source/patches/gcc-5.3.0-locale.diff guix-build-musl-cross-0.1-3.a8a6649.drv-12/source/patches/gcc-5.3.0-locale.diff
--- a/patches/gcc-5.3.0-locale.diff	1970-01-01 01:00:00.000000000 +0100
+++ b/patches/gcc-5.3.0-locale.diff	2020-05-02 14:20:47.213564509 +0200
@@ -0,0 +1,12 @@
+--- gcc-5.3.0/libstdc++-v3/config/locale/gnu/ctype_members.cc.orig	2020-05-02 14:16:31.376147000 +0200
++++ gcc-5.3.0/libstdc++-v3/config/locale/gnu/ctype_members.cc	2020-05-02 14:16:56.716279576 +0200
+@@ -47,7 +47,8 @@
+ 	this->_S_create_c_locale(this->_M_c_locale_ctype, __s); 
+ 	this->_M_toupper = this->_M_c_locale_ctype->__ctype_toupper;
+ 	this->_M_tolower = this->_M_c_locale_ctype->__ctype_tolower;
+-	this->_M_table = this->_M_c_locale_ctype->__ctype_b;
++	//this->_M_table = this->_M_c_locale_ctype->__ctype_b;
++	throw 3;
+       }
+   }
+ 
s='rem' style='width: 0.0%;'/>
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4447c81f83..62ea04d23b 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -4195,6 +4195,32 @@ releases. The bundle consists of a Lua script to run the tasks and a
context of LuaTeX.")
(license (list license:lppl1.3c license:expat))))
+(define-public texlive-luacode
+ (package
+ (name "texlive-luacode")
+ (version (number->string %texlive-revision))
+ (source (texlive-origin
+ name version
+ (list "doc/lualatex/luacode/"
+ "source/lualatex/luacode/"
+ "tex/lualatex/luacode/")
+ (base32
+ "1dyld5yb57p3j7wz591plbgjy7dk7ngn8cxw1lfmvx8iprgk1f8d")))
+ (outputs '("out" "doc"))
+ (build-system texlive-build-system)
+ (propagated-inputs
+ (list texlive-iftex
+ texlive-luatexbase))
+ (home-page "https://ctan.org/pkg/luacode")
+ (synopsis "Helper for executing Lua code from within TeX")
+ (description
+ "Executing Lua code from within TeX with directlua can sometimes be
+tricky: there is no easy way to use the percent character, counting
+backslashes may be hard, and Lua comments don't work the way you expect. The
+package provides the @code{\\luaexec} command and the @code{luacode}
+environments to help with these problems.")
+ (license license:lppl1.3+)))
+
(define-public texlive-lualatex-math
(package
(name "texlive-lualatex-math")