Skip to content

Comments

[Backport staging-23.05] mupdf: actually build and install the shared libraries version#237337

Merged
delroth merged 1 commit intostaging-23.05from
backport-237199-to-staging-23.05
Jun 12, 2023
Merged

[Backport staging-23.05] mupdf: actually build and install the shared libraries version#237337
delroth merged 1 commit intostaging-23.05from
backport-237199-to-staging-23.05

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jun 12, 2023

Bot-based backport to staging-23.05, triggered by a label in #237199.

  • Before merging, ensure that this backport complies with the Criteria for Backporting.
    • Even as a non-commiter, if you find that it does not comply, leave a comment.

The current version of the derivation builds in shared libraries mode,
but then the "shared" flag is not passed to the "make install"
invocation. This causes "make install" to perform a whole second build
from scratch, in static mode, and install this to $out instead.

Instead pass shared=yes as part of the makeFlags -- this is basically
the only thing that the "shared" build target does anyway, and I don't
think there is a similar target for "make install".

This issue was detected because the .pc shipped with mupdf doesn't work
with the static libraries currently shipped (it doesn't include
recursive dependencies like zlib).

(cherry picked from commit 3d4769a)
@delroth
Copy link
Contributor

delroth commented Jun 12, 2023

Reason for backport: linking against mupdf is broken with the combination of static libraries + pkg-config files we ship.

@ofborg ofborg bot requested review from fpletz and vrthra June 12, 2023 13:01
@ofborg ofborg bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. labels Jun 12, 2023
@delroth delroth merged commit ee87f6d into staging-23.05 Jun 12, 2023
@delroth delroth deleted the backport-237199-to-staging-23.05 branch June 12, 2023 23:58
@vcunat
Copy link
Member

vcunat commented Jul 4, 2023

For reference, reverted in e992907.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants