Skip to content

Commit

Permalink
dev-tcltk/tdom: fix build with tcl unthreaded
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/821598
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
atupone committed Dec 31, 2021
1 parent 1fe7e98 commit 63b7548
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dev-tcltk/tdom/files/tdom-0.9.2-nothreads.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/generic/tdomDecls.h 2021-12-31 20:52:18.070370435 +0100
+++ b/generic/tdomDecls.h 2021-12-31 20:53:45.892045820 +0100
@@ -63,7 +63,7 @@
EXTERN domDocument * tcldom_getDocumentFromName(Tcl_Interp *interp,
char *docName, char **errMsg);
/* 18 */
-EXTERN SchemaData * tdomGetSchemadata(void);
+EXTERN SchemaData * tdomGetSchemadata(Tcl_Interp *interp);

typedef struct TdomStubs {
int magic;
5 changes: 4 additions & 1 deletion dev-tcltk/tdom/tdom-0.9.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ RDEPEND="${DEPEND}"

S="${WORKDIR}"/${P}-src

PATCHES=( "${FILESDIR}"/${P}-useCC.patch )
PATCHES=(
"${FILESDIR}"/${P}-useCC.patch
"${FILESDIR}"/${P}-nothreads.patch
)

src_prepare() {
append-libs -lm
Expand Down

0 comments on commit 63b7548

Please sign in to comment.