Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MuPDF vendoring #892

Merged
merged 10 commits into from Apr 19, 2019
Merged

Fix MuPDF vendoring #892

merged 10 commits into from Apr 19, 2019

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Apr 19, 2019

We were failing to properly instruct it to use our own libjpeg-turbo, meaning it was building & linking against its own bundled copy (of jpeg 9c, so, not the same API).
How that never blew up before is beyond me ;).
Now that we build harfbuzz, make it use our own harfbuzz, too :).

Also, a few assorted fixes to make LTO builds possible.

Copy link
Member

@houqp houqp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Why not enable LTO by default?

@NiLuJe
Copy link
Member Author

NiLuJe commented Apr 19, 2019 via email

@NiLuJe
Copy link
Member Author

NiLuJe commented Apr 19, 2019 via email

@houqp
Copy link
Member

houqp commented Apr 19, 2019

Do we get a noticeable performance boost with LTO?

@Frenzie
Copy link
Member

Frenzie commented Apr 19, 2019

Does Clang have LTO as well?

@@ -12,7 +12,9 @@ assert_var_defined(OUTPUT_DIR)

ep_get_source_dir(SOURCE_DIR)

set(BUILD_CMD sh -c "${KO_MAKE_RECURSIVE} -j${PARALLEL_JOBS} CC=\"${CC}\" LDFLAGS=\"${LDFLAGS}\" OUTPUT_DIR=${OUTPUT_DIR}")
set(PATCH_CMD sh -c "patch -N -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/lua-serialize-lto.patch || true")
Copy link
Member

@Frenzie Frenzie Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, not directly related to this PR but I've been wondering why we let the patches fail semi-quietly? That is, you won't notice without studying the logs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't that to handle rebuilds? I have no idea if that still makes sense with the CMake system, though :D.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik CMake handles when to patch or not to patch with an uncharacteristic lack of stupidity.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then yeah, it doesn't make sense anymore, and that's just a bad habit carried over from the old makefile ;)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case I'll submit a PR to get rid of the load of 'em. It's tripped me up more than once.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most recently #860

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you can see I already got rid of the || true there, so you'd have noticed if that were somehow trying to apply itself multiple times. ;-)

@Frenzie Frenzie added the bug label Apr 19, 2019
@Frenzie Frenzie merged commit 3d4c875 into koreader:master Apr 19, 2019
Frenzie added a commit to Frenzie/koreader that referenced this pull request Apr 19, 2019
Frenzie added a commit to koreader/koreader that referenced this pull request Apr 19, 2019
Frenzie added a commit to Frenzie/koreader-base that referenced this pull request Apr 19, 2019
Frenzie added a commit to Frenzie/android-luajit-launcher that referenced this pull request Apr 22, 2019
A bit of an emergency fix to just get it working ASAP. A patch was added to base LuaJIT in koreader/koreader-base#892, which caused a mismatch and build failures over here. Unfortunately that was hidden by some excessive Android verbosity inadvertently introduced in koreader/koreader-base#888, and on my local instance where I did a sanity check LuaJIT was already compiled…
Frenzie added a commit to koreader/android-luajit-launcher that referenced this pull request Apr 22, 2019
A bit of an emergency fix to just get it working ASAP. A patch was added to base LuaJIT in koreader/koreader-base#892, which caused a mismatch and build failures over here. Unfortunately that was hidden by some excessive Android verbosity inadvertently introduced in koreader/koreader-base#888, and on my local instance where I did a sanity check LuaJIT was already compiled…
Frenzie added a commit to Frenzie/koreader that referenced this pull request Apr 22, 2019
* [fix] Add LuaJIT patch to sync with koreader-base koreader/android-luajit-launcher#141

A bit of an emergency fix to just get it working ASAP. A patch was added to base LuaJIT in koreader/koreader-base#892, which caused a mismatch and build failures over here. Unfortunately that was hidden by some excessive Android verbosity inadvertently introduced in koreader/koreader-base#888, and on my local instance where I did a sanity check LuaJIT was already compiled…
Frenzie added a commit to koreader/koreader that referenced this pull request Apr 22, 2019
* [fix] Add LuaJIT patch to sync with koreader-base koreader/android-luajit-launcher#141

A bit of an emergency fix to just get it working ASAP. A patch was added to base LuaJIT in koreader/koreader-base#892, which caused a mismatch and build failures over here. Unfortunately that was hidden by some excessive Android verbosity inadvertently introduced in koreader/koreader-base#888, and on my local instance where I did a sanity check LuaJIT was already compiled…
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
* [fix] Add LuaJIT patch to sync with koreader-base koreader/android-luajit-launcher#141

A bit of an emergency fix to just get it working ASAP. A patch was added to base LuaJIT in koreader/koreader-base#892, which caused a mismatch and build failures over here. Unfortunately that was hidden by some excessive Android verbosity inadvertently introduced in koreader/koreader-base#888, and on my local instance where I did a sanity check LuaJIT was already compiled…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants