commit: 7412e9a51c9fcc538d656a399e75aa5e91079b1c Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Jun 2 20:02:05 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jun 2 21:33:18 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7412e9a5
app-office/texmaker: fix pdfium lto-type-mismatch > 3rdparty/pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c:28:9: > error: type of ‘FXMEM_DefaultAlloc’ does not match original declaration > [-Werror=lto-type-mismatch] > 28 | void* FXMEM_DefaultAlloc(int byte_size, int); > | ^ Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/42411 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/texmaker-6.0.0-fix_lto_mismatch.patch | 17 +++++++++++++++++ app-office/texmaker/texmaker-6.0.0.ebuild | 1 + 2 files changed, 18 insertions(+) diff --git a/app-office/texmaker/files/texmaker-6.0.0-fix_lto_mismatch.patch b/app-office/texmaker/files/texmaker-6.0.0-fix_lto_mismatch.patch new file mode 100644 index 000000000000..9e0565ce6f49 --- /dev/null +++ b/app-office/texmaker/files/texmaker-6.0.0-fix_lto_mismatch.patch @@ -0,0 +1,17 @@ +3rdparty/pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c:28:9: +error: type of ‘FXMEM_DefaultAlloc’ does not match original declaration [-Werror=lto-type-mismatch] + 28 | void* FXMEM_DefaultAlloc(int byte_size, int); + | ^ +diff --git a/3rdparty/pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c b/3rdparty/pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c +index 0344f6f..cb470b2 100644 +--- a/3rdparty/pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c ++++ b/3rdparty/pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c +@@ -25,7 +25,7 @@ extern void * malloc JPP((size_t size)); + extern void free JPP((void *ptr)); + #endif + +-void* FXMEM_DefaultAlloc(int byte_size, int); ++void* FXMEM_DefaultAlloc(size_t byte_size, int); + void FXMEM_DefaultFree(void* pointer, int); + + /* diff --git a/app-office/texmaker/texmaker-6.0.0.ebuild b/app-office/texmaker/texmaker-6.0.0.ebuild index b57caa425481..70cedb1b1b70 100644 --- a/app-office/texmaker/texmaker-6.0.0.ebuild +++ b/app-office/texmaker/texmaker-6.0.0.ebuild @@ -33,6 +33,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-6.0.0-unbundle_hunspell_synctex.patch "${FILESDIR}"/${PN}-6.0.0-unforce_webengine.patch + "${FILESDIR}"/${PN}-6.0.0-fix_lto_mismatch.patch ) src_prepare() {
