summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2016-10-01 08:27:44 -0400
committerVlad Glagolev2016-10-01 09:49:29 -0400
commit0b69f0d82b9030a4b184681ddf8a3d8e1b22d29c (patch)
treec0804966afc0b4c335e5f7b334a121c2a95a74ae
parent691ebdbe044e75fa875e9fda803b8260fe932f36 (diff)
mupdf: rebuild spells depending on static libs
(cherry picked from commit d384878fa2670e82f74a20cd1a35cd9123c5c4fd)
-rw-r--r--doc/mupdf/HISTORY3
-rwxr-xr-xdoc/mupdf/UP_TRIGGERS11
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/mupdf/HISTORY b/doc/mupdf/HISTORY
index b65c5d4eb2..52a76ea6aa 100644
--- a/doc/mupdf/HISTORY
+++ b/doc/mupdf/HISTORY
@@ -1,3 +1,6 @@
+2016-10-01 Vlad Glagolev <stealth@sourcemage.org>
+ * UP_TRIGGERS: added, to rebuild spells depending on mupdf static libs
+
2016-09-30 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: added forgotten SECURITY_PATCH
* BUILD: dropped not required '-fstack-protector-all', replaced by
diff --git a/doc/mupdf/UP_TRIGGERS b/doc/mupdf/UP_TRIGGERS
new file mode 100755
index 0000000000..43ca6805d2
--- /dev/null
+++ b/doc/mupdf/UP_TRIGGERS
@@ -0,0 +1,11 @@
+# up_trigger everything on recast because of static libs (libmupdf.a, libmupdfthird.a)
+
+if spell_ok ${SPELL}; then
+ message "${MESSAGE_COLOR}This is due to rebuild of static libraries in ${SPELL_COLOR}${SPELL}${MESSAGE_COLOR}"
+ message "Figuring out what spells need to be recast, this may take a while...${DEFAULT_COLOR}"
+ for each in $(show_up_depends ${SPELL} 1); do
+ if gaze install $each | xargs readelf -s 2> /dev/null | grep -q "FUNC.*fz_"; then
+ up_trigger $each cast_self
+ fi
+ done
+fi