diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-10 17:26:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-10 17:26:49 +0100 |
commit | 6957f5c65b02bba533954eabc0b62f5de36be206 (patch) | |
tree | 21d8ab8f61dffd9cccc82d0badb68982516a6855 /app-text/poppler | |
parent | e91a1aaa5ec8fab37f0fd082ac6024d41c6651e2 (diff) |
gentoo resync : 10.04.2018
Diffstat (limited to 'app-text/poppler')
17 files changed, 0 insertions, 1076 deletions
diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest index 107ac16bf8f6..955e8eff678d 100644 --- a/app-text/poppler/Manifest +++ b/app-text/poppler/Manifest @@ -1,29 +1,11 @@ -AUX poppler-0.26.0-qt5-dependencies.patch 1112 BLAKE2B 63516a17a335408198a5b7493d338e1fe8fedc0076f43b510659747a749230acd757265a1bce38f9fa1393dfd8ec2afefc8aefb2266bf8fed6e700a15e5a1315 SHA512 94353b0c94b9385496074888e04e11e2349a9e1c60131c661bfb4c7df3df3c5c2494761b94b2bd47f8fe69c17aab4ea3c3d0812df6491554085001148d70477b AUX poppler-0.28.1-fix-multilib-configuration.patch 813 BLAKE2B 74133e82a1969d80d4839f61beb22ba8ede9d594d4978c1311219268c3c97f8f9b6e939e2d0870acf6406a01ceafcbd982dcf93ee738a6451b86f7f48d270ec9 SHA512 fc12ae5a484bd231a10bd31860f07d773899ba034cb43f55bc53da7701dc8a3d8ce86885330cdad1a4d32fd8ce712105d3c8b984855857fabd4d4e92bb54dfed -AUX poppler-0.33.0-openjpeg2.patch 667 BLAKE2B 1614e54104d6d82e1ee4eaf8785e7149c1ce4f32d89dcd4cd3c872f74d88ee301215949a3a461c84be588cc267f629c1c238b7d2aa7ef298ad6e1888f2dd6db5 SHA512 7ab16d1a4200a963c2fbae9917445c4536660acfdccc266cf6bd04a16bd329dec12cd0dae9bf26aa9da8e9d7882ffb66876f5bf85095bdb57e1d981a325ad494 -AUX poppler-0.40-FindQt4.patch 1169 BLAKE2B c29f9979c52d77e7c104020bf54a7bc6c95a617001e188124a9e0fb4a95c3213bf2f8d97292732ed22ef546257deaae384c80eefce6253363b68dd8d53c197e3 SHA512 e7fb511c6b28228f81eee57cc40296657d7bd454faeb3ab7b4e4175c62c78ef8c5ed9f9127b77aefbef28ed04ab234e1fb9faef113ab009733e4c23a540a5b23 -AUX poppler-0.53.0-respect-cflags.patch 2879 BLAKE2B 0ee99a762cd329e3c9d55d926b954a3f9d3226ea64ae36ccfef1d34c06b5ae93929827cf3b003ed264a5fc70d83d49a504b285faba130be3b756b0db15a4fd47 SHA512 a342a43a36f636d7960038b96b42e6c00f498d2ff3218ba33c50329971be30e7d30342b50ab30828b4c3b80bd69be11af545d60657f8318c4191d0000c9db25e -AUX poppler-0.57.0-CVE-2017-14517.patch 659 BLAKE2B 38f63d47aa5877550a90ff37c29dc96e3a1cf736ca23758593fa4a1d5ffe2311b10bab969da09949eb92b709175efe7d807d12dcade12856dafde565a75d3358 SHA512 0b44c0203ababe44b598143a3f015dc712904bcdef64cefc512b38538d77234044ebbcc717095616efca9cd921df9c654f7bab94b75c8172edd6babdc9ea4d62 -AUX poppler-0.57.0-CVE-2017-14518.patch 962 BLAKE2B 860a6498e3041c353ac8a10cca2e22cb86b1f9ba4d527dfe5b5d9ea339047179bbf37b145b6b9ecd4b0745aa21d9b9fe143ecddd1730de0383794572c4743c97 SHA512 142e2348b0d7f93bf0d56f4db395fe89575bbe4935ac6c2395cc7a44950444630cc4f9445c3d64237374fbe4fefad8b67ab5c25a2b429cbcb5d7ea8d24585062 -AUX poppler-0.57.0-CVE-2017-14519.patch 3262 BLAKE2B d1e020e05d0a561d4915beb0ce002b57f60b0e6d48834ade0b0ece1ead5496ef75e59300beee67fd1dae46bf2462e637e7c6252a0558088a8e0f2614b281f202 SHA512 d2e7cae36be5067dd2b4a506db981f80838be027cfa06c24d94f7a756524e90e49517c851cacebf6228b8ad2f4fb81e8e46ea641b31575e6576df76badb0242c -AUX poppler-0.57.0-CVE-2017-14520.patch 859 BLAKE2B c2e35ed1dcd77b3fb672fe5bf59cf7b4ef6b69fd7097503d2141295be766aaa85394cb1695e4653fbe9d70a7daae26f10d9e757e34e579fc69c30f398a16010f SHA512 3bd53675beac5c96a4c2abc9e098ee68387d3277f9874cd3bfb146e1a1f4a4730aa0ec8468ecdbb7f1250b5684d4249be8305a341bc8454f25f671b61b23dcc3 -AUX poppler-0.57.0-CVE-2017-14617.patch 944 BLAKE2B b6786c3d4907804d7f60efd902432e73bbc8a9d92f18d9e69dbcdbf8b172a5d59e5aac907ca3fb9012c4162e78570861a4ed9458a547c94a4fd19cba30ea2c86 SHA512 049520838ea9124265d70b7f4436060b98e1e997d0c29d3edaa740c7cb7fe477d9eeac4ac1431e68f2455ca5c23a25d96d124617cd6587d035ce09ab26eeb898 -AUX poppler-0.57.0-CVE-2017-14926.patch 1141 BLAKE2B 544bbaaa2a8362eb6be100c128792f6fc6ce02a7802e20fd7804c39089a3a5465f0fcdd7a2d1ca1a971ec52c13537f038024a9665afc745b0726917b678fa3c0 SHA512 b90d113026adaef117a6461086221296bc54bfb32c85c8cc58734c62215f1fc8f8c022742bc1d29fff40f82758b6daa8cf19d674d53992e76cec638665dd9c3c -AUX poppler-0.57.0-CVE-2017-14927.patch 1009 BLAKE2B a0457d00b8ba7164de24ccd1e895a54496fa838b529db41c926b111c234d587c43f8ed587f47a1d89a6977d82f6897e47336f72d7a16b41bb78a399eddd16b78 SHA512 f7b36d5ce8de0f4eb449f08ae33aab50cb0f9a8a8e878705334379b64c04c0811f9826ddb8db07c44888d97267e29f9c3a65fb5a2240230050bf59cc8f5427cc -AUX poppler-0.57.0-CVE-2017-14928.patch 2088 BLAKE2B e1a47d0a8e97bec05efb12267c6ca1303486688bde60b142beea747adf60ea042e3bd54d54a2351796dcc9472416bd3a9e8de2373cd432f14cde6e2798f6c831 SHA512 114f06bb6a392276de1c2f8e5d5d5ab843c0047a750cc8d87cff5e43f91eb6ad3aa5d09ebdcfbe6c56e055a6a34fb4209e309e54e84fa6c93f806b0643d180e4 -AUX poppler-0.57.0-CVE-2017-14929.patch 8614 BLAKE2B 673af3b4bb4d9f514a9285020701cd048662daa356cbcc1297d4ff8b44166c1f6760fa26227197d8f5776c49aecfee8fef607d4d18b8b79521f17eb03e315e5d SHA512 225fd1e169ef18ccae9968d2c5c01525dc1510d80a3548e8eeba9f0cdef5515df7d699ab1471749f34aa83fefd9680c9ec2a5cbea77b58e1cf5a4ae6da86ed5b -AUX poppler-0.57.0-CVE-2017-15565.patch 920 BLAKE2B 4f7c67794d3f6f99b710aad06d520d3be77ec2b73009e8a3f789f2d1ee9ef1bd3936e549e0a50627c38dc6bf2aab6a7865f60bb041c249996d12b78860b43a01 SHA512 d28dffb50c38681fa32b46dac74d773709b33cc1139a7f7651f43516b75708dde4f2862ac068dc3261c9e243141ad4a33ea009f837da46ba3d34792c8414c804 AUX poppler-0.57.0-disable-internal-jpx.patch 892 BLAKE2B 811ce3bbeb3b3c0720902a2a57463d352d102a2d6faef209723558eb93d638f35108f83674e29314632ebcf5fae521bcd8893eb1f77b931c7348b9d7446dae76 SHA512 aca1738fa33fcb5efcc8b0f5062abca2f32d329d3e2e1609386f15cce33d2e7aeae3e36b41dae292d3dceea7bde62210d2527b2552047d33d57ea4f44dabc1ee AUX poppler-0.60.1-qt5-dependencies.patch 934 BLAKE2B 5af7f7adfb802905737abc22003d00dda6f25bc992d73c01570a560938e5aef166905c519ea7e4968f8e637b2dc47c61bb1c49cd5ab14fb2076e2a1e38545499 SHA512 fc2e3297da9dbbb6ba9377958c08626db44790ec6ba3acdbc1c348d3e909bd7b061fa64995d584d89a42d1bc9cb278827590b303bd1ff57c0557f2bae450b81c AUX poppler-0.61.0-respect-cflags.patch 3012 BLAKE2B 24ac0b8067f1f8aea6e1b328b27ff9a5be0fa457354a251bb5066e6a63ffbf953c2d761e53e5d78e1b8593dbd5740420cffaa7f4a01f1366b712b12fbfad2cf9 SHA512 b680ac77711d845a93586084d1a4523860af33c2d494cbf16ea42f799612548b96fbdaadf53100dc74e933e0d09ba98ce3aa49b7ba6655907aad01e09561fa6d AUX poppler-0.62.0-glibc.patch 1119 BLAKE2B 680425520a9ea1e7d24639ea3a05ed5a857c09ea6ec48bf60a8a4b37bf725d5f7359fb5dc2708584e5a27fae862fd3ef6b0aabb7b4f0f63e1f4fc0c6c80f2c7f SHA512 4f6f8270513163b09a1861ebe7e83ed1a6150d523773daacbf039c660853bbde17bbdd502135eb56aba1e4812cb5adb7dc39294764b282f0b34aa43b04410fde AUX poppler-0.62.0-openjpeg2.patch 599 BLAKE2B 6227946829d8b04d3c12505f5a9878d78f44925b405c2871c6b69a36b02ec8f411ff3cfe397870606be3d2af1cc5e14f23e42744810a095de8d3788092af3521 SHA512 35539dacc3e40b966c94ab73f3ae9228229472e3729f45844224d65ecc215480386e3e14cfb659a9de59277ca5928b81a9502cd48af91e7bb20e259bc5681170 -DIST poppler-0.57.0.tar.xz 1703300 BLAKE2B e4126dff2e0ee140fa4c5c30d5a57da5aff38d4c1f566e4ace22d3fe625949db3a662a8513881702cd5c5c302845998dd462048b5158abaf1d119650c997c84c SHA512 197a0bf51e7fd607db83144d771904e48f266ab9e1252c688f9e7700a5bdd239670cf0363e9d77137bafa9c08fb6ddb9d066cc78a74dac7dfd717662b25cac5f -DIST poppler-0.61.1.tar.xz 1433696 BLAKE2B 6749466223d3bb0e891c6b26c7f1faa5c774dd47ac94c22474efe4a52af228aeb2abbb8ab268667acaa83fb41293246266124a111740df764eeedbe229fa70aa SHA512 780ebf07ad757635f3f71c7b1f61ad0849526f99f0dc514c3290c4e8db7000a68dfe50c17253d4c086aec5c5390055102478eba96699088179822f3be5ce278d DIST poppler-0.62.0.tar.xz 1423372 BLAKE2B 01c8745d0c1fa5b412ec92295a8784f5c1deff8b9fa709d09a3236d630f78fecc6af23fe3302964478d6356562712726db422ef51fe59a8b42e13e08370a77ac SHA512 91f7eae7b05965ae97a34e658bed2a676be8a6e4d34f82148ece6eb58932632dcf9a34d50c66412f93f560ce575abf5c608ed6b1e5184604b96024801886c706 DIST poppler-0.63.0.tar.xz 1439552 BLAKE2B 9bf5cff7f5fec93ec7d49d1745aadb2b03a68d38216003e4bff54a5d264c9dda10265da79a755af1f31b582602d034cfefb16b807185d674a2cfe0d20e5de277 SHA512 a151d08480e9940a02191355ef5e7499d6494cff05f22f49de2bb8223512f5e5c9bb9b33651943ded30b4cd7096a2423fb7a01fa62228fbcd1d3a221b885cfe9 -EBUILD poppler-0.57.0-r1.ebuild 4336 BLAKE2B 1278223b785dbee353822f3b91f28cf17c33b4e34016ff1d7191453131db50c34b345e8789c9a50a0a217fb00b4666db5f6bf3239e299e6bdfcb6130fb76a660 SHA512 dcfa207b810d16af609f87485706e7242d132ac056acdf3fdee603cbd98f0c8096b76d490f0a4dcd180819ce96532a18febb83e420733ae8e35b5ed9e36ea014 -EBUILD poppler-0.61.1.ebuild 3856 BLAKE2B 31e10b8db75b10189d684affa9d6cad922305305c0528dd378d3a60753638b79ea957825ad4575ff020d75638be424615b9ae3151896959b13716e58ea956045 SHA512 d2121cea0c4e754926efce3b76d4ad2964bd3e98e50904266235631765e805813336f6ceaa1dd96f1c73dafa93a60c6f10a963b6fd4aad7e0c8d22ee0de2ee4a EBUILD poppler-0.62.0-r1.ebuild 3538 BLAKE2B 7af59ebba3ad33263ee8bfd949af496c1bd4ba2791f69a8ad02ebe22bc3e8196208ff664a7fc423862b9ada80d6d7557ace0746c791c188776dd2b7002275fd3 SHA512 597cd60e7313080c56da025e1659188b8fa13a6241ab77bcdb937796f1d59aaf34ace9be1c051adbe46951a1d24162522aa56f7bcbb080eef6a90ebb5116de06 EBUILD poppler-0.63.0.ebuild 3517 BLAKE2B 1cde03a02078d671d3e8005ce3c38570ee118827360899bb6c4d972e242f4daad5c311580bc08db71318166f09134ce119d7bc772b0e56b31d16cefef4098b31 SHA512 050b9465a3382aff8188c9f9e30bbe3199d3b3abd5f9bb29e68cb19324a6015d66176eba4904f5b211916eb4e862a3c6ba962e176794b836981ee11776c4830a EBUILD poppler-9999.ebuild 3517 BLAKE2B 1cde03a02078d671d3e8005ce3c38570ee118827360899bb6c4d972e242f4daad5c311580bc08db71318166f09134ce119d7bc772b0e56b31d16cefef4098b31 SHA512 050b9465a3382aff8188c9f9e30bbe3199d3b3abd5f9bb29e68cb19324a6015d66176eba4904f5b211916eb4e862a3c6ba962e176794b836981ee11776c4830a diff --git a/app-text/poppler/files/poppler-0.26.0-qt5-dependencies.patch b/app-text/poppler/files/poppler-0.26.0-qt5-dependencies.patch deleted file mode 100644 index bf1effd4377d..000000000000 --- a/app-text/poppler/files/poppler-0.26.0-qt5-dependencies.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 95f6a96e390830233d953f8afa37817499912b35 Mon Sep 17 00:00:00 2001 -From: Johannes Huber <johu@gentoo.org> -Date: Sat, 10 May 2014 15:00:48 +0200 -Subject: [PATCH] [Qt5] Drop unused dependencies - ---- - CMakeLists.txt | 6 ++---- - 1 file changed, 2 insertions(+), 4 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index fbafc4e..073f39b 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -106,12 +106,10 @@ if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_ - find_package(Qt5Core) - find_package(Qt5Gui) - find_package(Qt5Xml) -- find_package(Qt5Widgets) -- find_package(Qt5Test) -- if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND AND Qt5Widgets_FOUND AND Qt5Test_FOUND) -+ if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Xml_FOUND) - set(QT5_FOUND true) - else () -- message("-- Package Qt5Core or Qt5Gui or Qt5Xml or Qt5Widgets or Qt5Test not found") -+ message("-- Package Qt5Core or Qt5Gui or Qt5Xml not found") - set(QT5_FOUND false) - endif() - else(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.8.7) --- -1.9.2 - diff --git a/app-text/poppler/files/poppler-0.33.0-openjpeg2.patch b/app-text/poppler/files/poppler-0.33.0-openjpeg2.patch deleted file mode 100644 index af1a72fe9aa8..000000000000 --- a/app-text/poppler/files/poppler-0.33.0-openjpeg2.patch +++ /dev/null @@ -1,15 +0,0 @@ -Sadly the CMake side of openjpeg slotting in Gentoo is broken. -To reliably find openjpeg:2 we need to use pkg-config. - -diff -ruN poppler-0.33.0.orig/CMakeLists.txt poppler-0.33.0/CMakeLists.txt ---- poppler-0.33.0.orig/CMakeLists.txt 2015-05-14 20:22:31.000000000 +0200 -+++ poppler-0.33.0/CMakeLists.txt 2015-05-24 20:39:30.163709257 +0200 -@@ -172,7 +172,7 @@ - set(USE_OPENJPEG1 ${LIBOPENJPEG_FOUND}) - set(WITH_OPENJPEG ${LIBOPENJPEG_FOUND}) - elseif(ENABLE_LIBOPENJPEG STREQUAL "openjpeg2") -- find_package(LIBOPENJPEG2) -+ pkg_check_modules(LIBOPENJPEG2 libopenjp2) - set(USE_OPENJPEG2 ${LIBOPENJPEG2_FOUND}) - set(WITH_OPENJPEG ${LIBOPENJPEG2_FOUND}) - endif() diff --git a/app-text/poppler/files/poppler-0.40-FindQt4.patch b/app-text/poppler/files/poppler-0.40-FindQt4.patch deleted file mode 100644 index 84c58d5f7c7f..000000000000 --- a/app-text/poppler/files/poppler-0.40-FindQt4.patch +++ /dev/null @@ -1,31 +0,0 @@ - -Ensure that the correct version of Qt is always used. - -With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to -/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser. - -There is no guarantee to which version of Qt these symlinks might point, so it -is necessary to find the correct version explicitly. - -Once qmake is found, it is queried for the correct location of all other items. - -Gentoo-bug: 572382 - ---- a/cmake/modules/FindQt4.cmake -+++ b/cmake/modules/FindQt4.cmake -@@ -313,11 +313,10 @@ - - GET_FILENAME_COMPONENT(qt_install_version "[HKEY_CURRENT_USER\\Software\\trolltech\\Versions;DefaultQtVersion]" NAME) - # check for qmake --FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 PATHS -- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" -- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin" -- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]/bin" -- $ENV{QTDIR}/bin -+FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake PATHS -+ /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin -+ /usr/bin -+ NO_DEFAULT_PATH - ) - - IF (QT_QMAKE_EXECUTABLE) diff --git a/app-text/poppler/files/poppler-0.53.0-respect-cflags.patch b/app-text/poppler/files/poppler-0.53.0-respect-cflags.patch deleted file mode 100644 index 3fdd9c20382b..000000000000 --- a/app-text/poppler/files/poppler-0.53.0-respect-cflags.patch +++ /dev/null @@ -1,52 +0,0 @@ -diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake -index 8e3ef399..5c20bf63 100644 ---- a/cmake/modules/PopplerMacros.cmake -+++ b/cmake/modules/PopplerMacros.cmake -@@ -98,45 +98,14 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - set(CMAKE_BUILD_TYPE RelWithDebInfo) - endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - --if(CMAKE_COMPILER_IS_GNUCXX) - if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0.0") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override" ) - endif() - -- # set the default compile warnings - set(DEFAULT_COMPILE_WARNINGS_NO) - set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wcast-align -fno-exceptions -fno-check-new -fno-common") - set(DEFAULT_COMPILE_WARNINGS_KDE "-Wno-long-long -Wundef -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align -Wconversion -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common") - -- set(CMAKE_CXX_FLAGS "-Wnon-virtual-dtor -Woverloaded-virtual ${CMAKE_CXX_FLAGS}") -- set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") -- set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") -- set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") -- set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline") -- set(CMAKE_CXX_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") -- set(CMAKE_C_FLAGS "-std=c99") -- set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") -- set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG") -- set(CMAKE_C_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") -- set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline") -- set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") -- -- poppler_check_link_flag("-Wl,--as-needed" GCC_HAS_AS_NEEDED) -- if(GCC_HAS_AS_NEEDED) -- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed") -- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--as-needed") -- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") -- endif(GCC_HAS_AS_NEEDED) --endif (CMAKE_COMPILER_IS_GNUCXX) -- --if(CMAKE_C_COMPILER MATCHES "icc") -- set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") -- set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") -- set(CMAKE_CXX_FLAGS_DEBUG "-O2 -g -0b0 -noalign") -- set(CMAKE_CXX_FLAGS_DEBUGFULL "-g -Ob0 -noalign") -- set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") -- set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG") -- set(CMAKE_C_FLAGS_DEBUG "-O2 -g -Ob0 -noalign") -- set(CMAKE_C_FLAGS_DEBUGFULL "-g -Ob0 -noalign") --endif(CMAKE_C_COMPILER MATCHES "icc") -+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Woverloaded-virtual") - -+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14517.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14517.patch deleted file mode 100644 index 6a0812cdbe81..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14517.patch +++ /dev/null @@ -1,27 +0,0 @@ -From b524efeffa8d192c2597f4612ca961adc30286f6 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Wed, 13 Sep 2017 22:58:14 +0200 -Subject: [PATCH 1/4] XRef::parseEntry: Fix crash in broken file - -Bug #102687 ---- - poppler/XRef.cc | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/poppler/XRef.cc b/poppler/XRef.cc -index 6ea0fbb6..c74f2f60 100644 ---- a/poppler/XRef.cc -+++ b/poppler/XRef.cc -@@ -1603,6 +1603,9 @@ GBool XRef::parseEntry(Goffset offset, XRefEntry *entry) - { - GBool r; - -+ if (unlikely(entry == nullptr)) -+ return gFalse; -+ - Object obj; - obj.initNull(); - Parser parser = Parser(NULL, new Lexer(NULL, --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14518.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14518.patch deleted file mode 100644 index 9e8f4bfe6246..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14518.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 6ba3bba6447897260bf4117e191e09d89d91ff62 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Wed, 13 Sep 2017 23:09:45 +0200 -Subject: [PATCH 2/4] isImageInterpolationRequired: Fix divide by 0 on broken - documents - -Bug #102688 ---- - splash/Splash.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/splash/Splash.cc b/splash/Splash.cc -index 46b8ce29..39fc7d64 100644 ---- a/splash/Splash.cc -+++ b/splash/Splash.cc -@@ -4134,7 +4134,7 @@ SplashError Splash::arbitraryTransformImage(SplashImageSource src, SplashICCTran - static GBool isImageInterpolationRequired(int srcWidth, int srcHeight, - int scaledWidth, int scaledHeight, - GBool interpolate) { -- if (interpolate) -+ if (interpolate || srcWidth == 0 || srcHeight == 0) - return gTrue; - - /* When scale factor is >= 400% we don't interpolate. See bugs #25268, #9860 */ --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14519.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14519.patch deleted file mode 100644 index bd84e96fba3b..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14519.patch +++ /dev/null @@ -1,100 +0,0 @@ -From 778180c0c09002f6adfc272eba6b0d0e4401c4cc Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Wed, 13 Sep 2017 23:01:03 +0200 -Subject: [PATCH 3/4] Gfx::doShowText: Fix infinite recursion on broken files - -Bug #102701 ---- - poppler/Gfx.cc | 25 +++++++++++++++++++++++-- - poppler/Gfx.h | 1 + - poppler/GfxFont.cc | 9 +++++++++ - poppler/GfxFont.h | 1 + - 4 files changed, 34 insertions(+), 2 deletions(-) - -diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc -index 37220280..9feac54c 100644 ---- a/poppler/Gfx.cc -+++ b/poppler/Gfx.cc -@@ -4031,12 +4031,33 @@ void Gfx::doShowText(GooString *s) { - state->transformDelta(dx, dy, &ddx, &ddy); - if (!out->beginType3Char(state, curX + riseX, curY + riseY, ddx, ddy, - code, u, uLen)) { -- ((Gfx8BitFont *)font)->getCharProc(code, &charProc); -+ ((Gfx8BitFont *)font)->getCharProcNF(code, &charProc); -+ int refNum = -1; -+ if (charProc.isRef()) { -+ refNum = charProc.getRef().num; -+ charProc.fetch(((Gfx8BitFont *)font)->getCharProcs()->getXRef(), &charProc); -+ } - if ((resDict = ((Gfx8BitFont *)font)->getResources())) { - pushResources(resDict); - } - if (charProc.isStream()) { -- display(&charProc, gFalse); -+ std::set<int>::iterator charProcDrawingIt; -+ bool displayCharProc = true; -+ if (refNum != -1) { -+ if (charProcDrawing.find(refNum) == charProcDrawing.end()) { -+ charProcDrawingIt = charProcDrawing.insert(refNum).first; -+ } else { -+ displayCharProc = false; -+ error(errSyntaxError, -1, "CharProc wants to draw a CharProc that is already beign drawn"); -+ } -+ } -+ if (displayCharProc) { -+ display(&charProc, gFalse); -+ -+ if (refNum != -1) { -+ charProcDrawing.erase(charProcDrawingIt); -+ } -+ } - } else { - error(errSyntaxError, getPos(), "Missing or bad Type3 CharProc entry"); - } -diff --git a/poppler/Gfx.h b/poppler/Gfx.h -index a82f9f4a..44adaed5 100644 ---- a/poppler/Gfx.h -+++ b/poppler/Gfx.h -@@ -228,6 +228,7 @@ private: - Parser *parser; // parser for page content stream(s) - - std::set<int> formsDrawing; // the forms that are being drawn -+ std::set<int> charProcDrawing; // the charProc that are being drawn - - GBool // callback to check for an abort - (*abortCheckCbk)(void *data); -diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc -index b59ec06c..bb87c5a0 100644 ---- a/poppler/GfxFont.cc -+++ b/poppler/GfxFont.cc -@@ -1818,6 +1818,15 @@ Object *Gfx8BitFont::getCharProc(int code, Object *proc) { - return proc; - } - -+Object *Gfx8BitFont::getCharProcNF(int code, Object *proc) { -+ if (enc[code] && charProcs.isDict()) { -+ charProcs.dictLookupNF(enc[code], proc); -+ } else { -+ proc->initNull(); -+ } -+ return proc; -+} -+ - Dict *Gfx8BitFont::getResources() { - return resources.isDict() ? resources.getDict() : (Dict *)NULL; - } -diff --git a/poppler/GfxFont.h b/poppler/GfxFont.h -index de7a7464..89a0ca0d 100644 ---- a/poppler/GfxFont.h -+++ b/poppler/GfxFont.h -@@ -353,6 +353,7 @@ public: - - // Return the Type 3 CharProc for the character associated with <code>. - Object *getCharProc(int code, Object *proc); -+ Object *getCharProcNF(int code, Object *proc); - - // Return the Type 3 Resources dictionary, or NULL if none. - Dict *getResources(); --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14520.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14520.patch deleted file mode 100644 index f71ff53f61ac..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14520.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 504b3590182175390f474657a372e78fb1508262 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Thu, 14 Sep 2017 19:14:23 +0200 -Subject: Splash::scaleImage: Do not try to scale if srcHeight or srcWidth are - < 1 - -Bug #102719 - -diff --git a/splash/Splash.cc b/splash/Splash.cc -index 39fc7d6..aba7814 100644 ---- a/splash/Splash.cc -+++ b/splash/Splash.cc -@@ -4152,7 +4152,7 @@ SplashBitmap *Splash::scaleImage(SplashImageSource src, void *srcData, - SplashBitmap *dest; - - dest = new SplashBitmap(scaledWidth, scaledHeight, 1, srcMode, srcAlpha, gTrue, bitmap->getSeparationList()); -- if (dest->getDataPtr() != NULL) { -+ if (dest->getDataPtr() != NULL && srcHeight > 0 && srcWidth > 0) { - if (scaledHeight < srcHeight) { - if (scaledWidth < srcWidth) { - scaleImageYdXd(src, srcData, srcMode, nComps, srcAlpha, --- -cgit v0.10.2 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14617.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14617.patch deleted file mode 100644 index 279479536129..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14617.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 939465c40902d72e0c05d4f3a27ee67e4a007ed7 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Tue, 19 Sep 2017 21:19:03 +0200 -Subject: [PATCH] Fix crash in broken files - -Bug #102854 ---- - poppler/Stream.cc | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/poppler/Stream.cc b/poppler/Stream.cc -index f4eda85b..0ad602c7 100644 ---- a/poppler/Stream.cc -+++ b/poppler/Stream.cc -@@ -454,11 +454,10 @@ ImageStream::ImageStream(Stream *strA, int widthA, int nCompsA, int nBitsA) { - } else { - imgLineSize = nVals; - } -- if (width > INT_MAX / nComps) { -- // force a call to gmallocn(-1,...), which will throw an exception -+ if (nComps <= 0 || width > INT_MAX / nComps) { - imgLineSize = -1; - } -- imgLine = (Guchar *)gmallocn(imgLineSize, sizeof(Guchar)); -+ imgLine = (Guchar *)gmallocn_checkoverflow(imgLineSize, sizeof(Guchar)); - } - imgIdx = nVals; - } --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14926.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14926.patch deleted file mode 100644 index 882cf0e2b8b5..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14926.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 170fe21144d469d3f865eda6e298df440b784499 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Fri, 8 Sep 2017 18:28:15 +0200 -Subject: [PATCH 2/3] Annot: Fix crash on broken files - -Bug #102601 - -(cherry picked from commit 2532df6060092e9fab7f041ae9598aff9cdd94bb) ---- - poppler/Annot.cc | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/poppler/Annot.cc b/poppler/Annot.cc -index 27b698db..643ff12c 100644 ---- a/poppler/Annot.cc -+++ b/poppler/Annot.cc -@@ -6865,13 +6865,13 @@ AnnotRichMedia::Content::Content(Dict *dict) { - assets = (Asset **)gmallocn(nAssets, sizeof(Asset *)); - - int counter = 0; -- for (int i = 0; i < obj2.arrayGetLength(); i += 2) { -+ for (int i = 0; i < nAssets; ++i) { - Object objKey; - - assets[counter] = new AnnotRichMedia::Asset; - -- obj2.arrayGet(i, &objKey); -- obj2.arrayGet(i + 1, &assets[counter]->fileSpec); -+ obj2.arrayGet(i * 2, &objKey); -+ obj2.arrayGet(i * 2 + 1, &assets[counter]->fileSpec); - - assets[counter]->name = new GooString( objKey.getString() ); - ++counter; --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14927.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14927.patch deleted file mode 100644 index 3595345800f0..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14927.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 876e7f76159e2b12ee7d2d396f327dd2cc90bcb0 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Fri, 8 Sep 2017 18:26:05 +0200 -Subject: [PATCH 3/3] SplashOutputDev: Fix crash on broken files - -Bug #102604 - -(cherry picked from commit 6472d8493f7e82cc78b41da20a2bf19fcb4e0a7d) ---- - poppler/SplashOutputDev.cc | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc -index 5502be64..46b55a42 100644 ---- a/poppler/SplashOutputDev.cc -+++ b/poppler/SplashOutputDev.cc -@@ -2714,7 +2714,11 @@ void SplashOutputDev::endType3Char(GfxState *state) { - } - - void SplashOutputDev::type3D0(GfxState *state, double wx, double wy) { -- t3GlyphStack->haveDx = gTrue; -+ if (likely(t3GlyphStack != nullptr)) { -+ t3GlyphStack->haveDx = gTrue; -+ } else { -+ error(errSyntaxWarning, -1, "t3GlyphStack was null in SplashOutputDev::type3D0"); -+ } - } - - void SplashOutputDev::type3D1(GfxState *state, double wx, double wy, --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14928.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14928.patch deleted file mode 100644 index bd2af863423b..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14928.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 6bf7212c44d0131c8f8227a4a4dadc52a3afebd9 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Fri, 8 Sep 2017 18:29:42 +0200 -Subject: [PATCH 1/3] Annot: Fix crash on broken files - -Bug #102607 - -(cherry picked from commit 1316c7a41f4dd7276f404f775ebb5fef2d24ab1c) ---- - poppler/Annot.cc | 42 +++++++++++++++++++++++------------------- - 1 file changed, 23 insertions(+), 19 deletions(-) - -diff --git a/poppler/Annot.cc b/poppler/Annot.cc -index 974b098b..27b698db 100644 ---- a/poppler/Annot.cc -+++ b/poppler/Annot.cc -@@ -6982,26 +6982,30 @@ AnnotRichMedia::Configuration::Configuration(Dict *dict) - } else if (!strcmp(name, "Video")) { - type = typeVideo; - } else { -- // determine from first instance -+ // determine from first non null instance -+ type = typeFlash; // default in case all instances are null - if (instances && nInstances > 0) { -- AnnotRichMedia::Instance *instance = instances[0]; -- switch (instance->getType()) { -- case AnnotRichMedia::Instance::type3D: -- type = type3D; -- break; -- case AnnotRichMedia::Instance::typeFlash: -- type = typeFlash; -- break; -- case AnnotRichMedia::Instance::typeSound: -- type = typeSound; -- break; -- case AnnotRichMedia::Instance::typeVideo: -- type = typeVideo; -- break; -- default: -- type = typeFlash; -- break; -- } -+ for (int i = 0; i < nInstances; ++i) { -+ AnnotRichMedia::Instance *instance = instances[i]; -+ if (instance) { -+ switch (instance->getType()) { -+ case AnnotRichMedia::Instance::type3D: -+ type = type3D; -+ break; -+ case AnnotRichMedia::Instance::typeFlash: -+ type = typeFlash; -+ break; -+ case AnnotRichMedia::Instance::typeSound: -+ type = typeSound; -+ break; -+ case AnnotRichMedia::Instance::typeVideo: -+ type = typeVideo; -+ break; -+ } -+ // break the loop since we found the first non null instance -+ break; -+ } -+ } - } - } - } --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14929.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-14929.patch deleted file mode 100644 index 11745ca5436d..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-14929.patch +++ /dev/null @@ -1,252 +0,0 @@ -From accdc5be215c7ee3223e3ad21dee7708d910ef23 Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Mon, 25 Sep 2017 19:33:44 +0200 -Subject: [PATCH 4/4] Fix infinite recursion on broken files - -Bug #102969 ---- - poppler/Gfx.cc | 46 ++++++++++++++++++++++++++++++++++------------ - poppler/GfxState.cc | 33 ++++++++++++++++++--------------- - poppler/GfxState.h | 15 +++++++++------ - 3 files changed, 61 insertions(+), 33 deletions(-) - -diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc -index 9feac54c..66d0a24c 100644 ---- a/poppler/Gfx.cc -+++ b/poppler/Gfx.cc -@@ -468,8 +468,14 @@ GfxPattern *GfxResources::lookupPattern(char *name, OutputDev *out, GfxState *st - - for (resPtr = this; resPtr; resPtr = resPtr->next) { - if (resPtr->patternDict.isDict()) { -- if (!resPtr->patternDict.dictLookup(name, &obj)->isNull()) { -- pattern = GfxPattern::parse(resPtr, &obj, out, state); -+ if (!resPtr->patternDict.dictLookupNF(name, &obj)->isNull()) { -+ Ref patternRef = { -1, -1 }; -+ if (obj.isRef()) { -+ patternRef = obj.getRef(); -+ obj.fetch(resPtr->patternDict.getDict()->getXRef(), &obj); -+ } -+ -+ pattern = GfxPattern::parse(resPtr, &obj, out, state, patternRef.num); - obj.free(); - return pattern; - } -@@ -2298,18 +2304,34 @@ void Gfx::doTilingPatternFill(GfxTilingPattern *tPat, - xi0, yi0, xi1, yi1, xstep, ystep)) { - goto restore; - } else { -- out->updatePatternOpacity(state); -- for (yi = yi0; yi < yi1; ++yi) { -- for (xi = xi0; xi < xi1; ++xi) { -- x = xi * xstep; -- y = yi * ystep; -- m1[4] = x * m[0] + y * m[2] + m[4]; -- m1[5] = x * m[1] + y * m[3] + m[5]; -- drawForm(tPat->getContentStream(), tPat->getResDict(), -- m1, tPat->getBBox()); -+ bool shouldDrawForm = gTrue; -+ std::set<int>::iterator patternRefIt; -+ const int patternRefNum = tPat->getPatternRefNum(); -+ if (patternRefNum != -1) { -+ if (formsDrawing.find(patternRefNum) == formsDrawing.end()) { -+ patternRefIt = formsDrawing.insert(patternRefNum).first; -+ } else { -+ shouldDrawForm = gFalse; -+ } -+ } -+ -+ if (shouldDrawForm) { -+ out->updatePatternOpacity(state); -+ for (yi = yi0; yi < yi1; ++yi) { -+ for (xi = xi0; xi < xi1; ++xi) { -+ x = xi * xstep; -+ y = yi * ystep; -+ m1[4] = x * m[0] + y * m[2] + m[4]; -+ m1[5] = x * m[1] + y * m[3] + m[5]; -+ drawForm(tPat->getContentStream(), tPat->getResDict(), -+ m1, tPat->getBBox()); -+ } -+ } -+ out->clearPatternOpacity(state); -+ if (patternRefNum != -1) { -+ formsDrawing.erase(patternRefIt); - } - } -- out->clearPatternOpacity(state); - } - - // restore graphics state -diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc -index f61f8124..90030b10 100644 ---- a/poppler/GfxState.cc -+++ b/poppler/GfxState.cc -@@ -3446,14 +3446,17 @@ void GfxPatternColorSpace::getDefaultColor(GfxColor *color) { - // Pattern - //------------------------------------------------------------------------ - --GfxPattern::GfxPattern(int typeA) { -- type = typeA; -+GfxPattern::GfxPattern(int typeA, int patternRefNumA) -+ : type(typeA) -+ , patternRefNum(patternRefNumA) -+{ -+ - } - - GfxPattern::~GfxPattern() { - } - --GfxPattern *GfxPattern::parse(GfxResources *res, Object *obj, OutputDev *out, GfxState *state) { -+GfxPattern *GfxPattern::parse(GfxResources *res, Object *obj, OutputDev *out, GfxState *state, int patternRefNum) { - GfxPattern *pattern; - Object obj1; - -@@ -3466,9 +3469,9 @@ GfxPattern *GfxPattern::parse(GfxResources *res, Object *obj, OutputDev *out, Gf - } - pattern = NULL; - if (obj1.isInt() && obj1.getInt() == 1) { -- pattern = GfxTilingPattern::parse(obj); -+ pattern = GfxTilingPattern::parse(obj, patternRefNum); - } else if (obj1.isInt() && obj1.getInt() == 2) { -- pattern = GfxShadingPattern::parse(res, obj, out, state); -+ pattern = GfxShadingPattern::parse(res, obj, out, state, patternRefNum); - } - obj1.free(); - return pattern; -@@ -3478,7 +3481,7 @@ GfxPattern *GfxPattern::parse(GfxResources *res, Object *obj, OutputDev *out, Gf - // GfxTilingPattern - //------------------------------------------------------------------------ - --GfxTilingPattern *GfxTilingPattern::parse(Object *patObj) { -+GfxTilingPattern *GfxTilingPattern::parse(Object *patObj, int patternRefNum) { - GfxTilingPattern *pat; - Dict *dict; - int paintTypeA, tilingTypeA; -@@ -3555,7 +3558,7 @@ GfxTilingPattern *GfxTilingPattern::parse(Object *patObj) { - obj1.free(); - - pat = new GfxTilingPattern(paintTypeA, tilingTypeA, bboxA, xStepA, yStepA, -- &resDictA, matrixA, patObj); -+ &resDictA, matrixA, patObj, patternRefNum); - resDictA.free(); - return pat; - } -@@ -3563,8 +3566,8 @@ GfxTilingPattern *GfxTilingPattern::parse(Object *patObj) { - GfxTilingPattern::GfxTilingPattern(int paintTypeA, int tilingTypeA, - double *bboxA, double xStepA, double yStepA, - Object *resDictA, double *matrixA, -- Object *contentStreamA): -- GfxPattern(1) -+ Object *contentStreamA, int patternRefNumA) : -+ GfxPattern(1, patternRefNumA) - { - int i; - -@@ -3589,14 +3592,14 @@ GfxTilingPattern::~GfxTilingPattern() { - - GfxPattern *GfxTilingPattern::copy() { - return new GfxTilingPattern(paintType, tilingType, bbox, xStep, yStep, -- &resDict, matrix, &contentStream); -+ &resDict, matrix, &contentStream, getPatternRefNum()); - } - - //------------------------------------------------------------------------ - // GfxShadingPattern - //------------------------------------------------------------------------ - --GfxShadingPattern *GfxShadingPattern::parse(GfxResources *res, Object *patObj, OutputDev *out, GfxState *state) { -+GfxShadingPattern *GfxShadingPattern::parse(GfxResources *res, Object *patObj, OutputDev *out, GfxState *state, int patternRefNum) { - Dict *dict; - GfxShading *shadingA; - double matrixA[6]; -@@ -3629,11 +3632,11 @@ GfxShadingPattern *GfxShadingPattern::parse(GfxResources *res, Object *patObj, O - } - obj1.free(); - -- return new GfxShadingPattern(shadingA, matrixA); -+ return new GfxShadingPattern(shadingA, matrixA, patternRefNum); - } - --GfxShadingPattern::GfxShadingPattern(GfxShading *shadingA, double *matrixA): -- GfxPattern(2) -+GfxShadingPattern::GfxShadingPattern(GfxShading *shadingA, double *matrixA, int patternRefNumA): -+ GfxPattern(2, patternRefNumA) - { - int i; - -@@ -3648,7 +3651,7 @@ GfxShadingPattern::~GfxShadingPattern() { - } - - GfxPattern *GfxShadingPattern::copy() { -- return new GfxShadingPattern(shading->copy(), matrix); -+ return new GfxShadingPattern(shading->copy(), matrix, getPatternRefNum()); - } - - //------------------------------------------------------------------------ -diff --git a/poppler/GfxState.h b/poppler/GfxState.h -index 7bcedf2a..4b13fb2a 100644 ---- a/poppler/GfxState.h -+++ b/poppler/GfxState.h -@@ -762,18 +762,21 @@ private: - class GfxPattern { - public: - -- GfxPattern(int typeA); -+ GfxPattern(int typeA, int patternRefNumA); - virtual ~GfxPattern(); - -- static GfxPattern *parse(GfxResources *res, Object *obj, OutputDev *out, GfxState *state); -+ static GfxPattern *parse(GfxResources *res, Object *obj, OutputDev *out, GfxState *state, int patternRefNum); - - virtual GfxPattern *copy() = 0; - - int getType() { return type; } - -+ int getPatternRefNum() const { return patternRefNum; } -+ - private: - - int type; -+ int patternRefNum; - }; - - //------------------------------------------------------------------------ -@@ -783,7 +786,7 @@ private: - class GfxTilingPattern: public GfxPattern { - public: - -- static GfxTilingPattern *parse(Object *patObj); -+ static GfxTilingPattern *parse(Object *patObj, int patternRefNum); - ~GfxTilingPattern(); - - GfxPattern *copy() override; -@@ -803,7 +806,7 @@ private: - GfxTilingPattern(int paintTypeA, int tilingTypeA, - double *bboxA, double xStepA, double yStepA, - Object *resDictA, double *matrixA, -- Object *contentStreamA); -+ Object *contentStreamA, int patternRefNumA); - - int paintType; - int tilingType; -@@ -821,7 +824,7 @@ private: - class GfxShadingPattern: public GfxPattern { - public: - -- static GfxShadingPattern *parse(GfxResources *res, Object *patObj, OutputDev *out, GfxState *state); -+ static GfxShadingPattern *parse(GfxResources *res, Object *patObj, OutputDev *out, GfxState *state, int patternRefNum); - ~GfxShadingPattern(); - - GfxPattern *copy() override; -@@ -831,7 +834,7 @@ public: - - private: - -- GfxShadingPattern(GfxShading *shadingA, double *matrixA); -+ GfxShadingPattern(GfxShading *shadingA, double *matrixA, int patternRefNumA); - - GfxShading *shading; - double matrix[6]; --- -2.14.1 - diff --git a/app-text/poppler/files/poppler-0.57.0-CVE-2017-15565.patch b/app-text/poppler/files/poppler-0.57.0-CVE-2017-15565.patch deleted file mode 100644 index 7e4db3f04452..000000000000 --- a/app-text/poppler/files/poppler-0.57.0-CVE-2017-15565.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 19ebd40547186a8ea6da08c8d8e2a6d6b7e84f5d Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Fri, 13 Oct 2017 00:55:49 +0200 -Subject: [PATCH] CairoOutputDev: Fix crash in broken files - -Bug #103016 ---- - poppler/CairoOutputDev.cc | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc -index ffd39ef7..80f7a99e 100644 ---- a/poppler/CairoOutputDev.cc -+++ b/poppler/CairoOutputDev.cc -@@ -2714,7 +2714,9 @@ void CairoOutputDev::drawSoftMaskedImage(GfxState *state, Object *ref, Stream *s - for (y = 0; y < maskHeight; y++) { - maskDest = (unsigned char *) (maskBuffer + y * row_stride); - pix = maskImgStr->getLine(); -- maskColorMap->getGrayLine (pix, maskDest, maskWidth); -+ if (likely(pix != nullptr)) { -+ maskColorMap->getGrayLine (pix, maskDest, maskWidth); -+ } - } - - maskImgStr->close(); --- -2.14.1 - diff --git a/app-text/poppler/poppler-0.57.0-r1.ebuild b/app-text/poppler/poppler-0.57.0-r1.ebuild deleted file mode 100644 index 5d861ea5fff1..000000000000 --- a/app-text/poppler/poppler-0.57.0-r1.ebuild +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils toolchain-funcs xdg-utils - -if [[ "${PV}" == "9999" ]] ; then - inherit git-r3 - EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}" - SLOT="0/9999" -else - SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" - KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - SLOT="0/68" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION -fi - -DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" -HOMEPAGE="https://poppler.freedesktop.org/" - -LICENSE="GPL-2" -IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils" - -# No test data provided -RESTRICT="test" - -COMMON_DEPEND=" - >=media-libs/fontconfig-2.6.0 - >=media-libs/freetype-2.3.9 - sys-libs/zlib - cairo? ( - dev-libs/glib:2 - >=x11-libs/cairo-1.10.0 - introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) - ) - curl? ( net-misc/curl ) - jpeg? ( virtual/jpeg:0 ) - jpeg2k? ( media-libs/openjpeg:2= ) - lcms? ( media-libs/lcms:2 ) - nss? ( >=dev-libs/nss-3.19:0 ) - png? ( media-libs/libpng:0= ) - qt4? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtxml:5 - ) - tiff? ( media-libs/tiff:0 ) -" -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig -" -RDEPEND="${COMMON_DEPEND} - cjk? ( >=app-text/poppler-data-0.4.7 ) -" - -DOCS=(AUTHORS NEWS README README-XPDF TODO) - -PATCHES=( - "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch" - "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" - "${FILESDIR}/${PN}-0.53.0-respect-cflags.patch" - "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch" - "${FILESDIR}/${PN}-0.40-FindQt4.patch" - "${FILESDIR}/${P}-disable-internal-jpx.patch" - # Fedora backports from upstream - "${FILESDIR}/${P}-CVE-2017-14517.patch" - "${FILESDIR}/${P}-CVE-2017-14518.patch" - "${FILESDIR}/${P}-CVE-2017-14519.patch" - "${FILESDIR}/${P}-CVE-2017-14520.patch" - "${FILESDIR}/${P}-CVE-2017-14617.patch" - "${FILESDIR}/${P}-CVE-2017-14926.patch" - "${FILESDIR}/${P}-CVE-2017-14927.patch" - "${FILESDIR}/${P}-CVE-2017-14928.patch" - "${FILESDIR}/${P}-CVE-2017-14929.patch" - "${FILESDIR}/${P}-CVE-2017-15565.patch" -) - -src_prepare() { - cmake-utils_src_prepare - - # Clang doesn't grok this flag, the configure nicely tests that, but - # cmake just uses it, so remove it if we use clang - if [[ ${CC} == clang ]] ; then - sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die - fi - - if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then - sed '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \ - -i CMakeLists.txt || die - else - einfo "policy(SET CMP0002 OLD) - workaround can be removed" - fi - - if tc-is-clang && [[ ${CHOST} == *-darwin* ]] ; then - # we need to up the C++ version, bug #622526 - export CXX="$(tc-getCXX) -std=c++11" - fi -} - -src_configure() { - xdg_environment_reset - local mycmakeargs=( - -DBUILD_GTK_TESTS=OFF - -DBUILD_QT4_TESTS=OFF - -DBUILD_QT5_TESTS=OFF - -DBUILD_CPP_TESTS=OFF - -DENABLE_SPLASH=ON - -DENABLE_ZLIB=ON - -DENABLE_ZLIB_UNCOMPRESS=OFF - -DENABLE_XPDF_HEADERS=ON - -DENABLE_LIBCURL="$(usex curl)" - -DENABLE_CPP="$(usex cxx)" - -DENABLE_UTILS="$(usex utils)" - -DSPLASH_CMYK=OFF - -DUSE_FIXEDPOINT=OFF - -DUSE_FLOAT=OFF - -DWITH_Cairo="$(usex cairo)" - -DWITH_GObjectIntrospection="$(usex introspection)" - -DWITH_JPEG="$(usex jpeg)" - -DWITH_NSS3="$(usex nss)" - -DWITH_PNG="$(usex png)" - -DWITH_Qt4="$(usex qt4)" - $(cmake-utils_use_find_package qt5 Qt5Core) - -DWITH_TIFF="$(usex tiff)" - ) - if use jpeg; then - mycmakeargs+=(-DENABLE_DCTDECODER=libjpeg) - else - mycmakeargs+=(-DENABLE_DCTDECODER=none) - fi - if use jpeg2k; then - mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2) - else - mycmakeargs+=(-DENABLE_LIBOPENJPEG=none) - fi - if use lcms; then - mycmakeargs+=(-DENABLE_CMS=lcms2) - else - mycmakeargs+=(-DENABLE_CMS=) - fi - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - # live version doesn't provide html documentation - if use cairo && use doc && [[ ${PV} != 9999 ]]; then - # For now install gtk-doc there - insinto /usr/share/gtk-doc/html/poppler - doins -r "${S}"/glib/reference/html/* - fi -} diff --git a/app-text/poppler/poppler-0.61.1.ebuild b/app-text/poppler/poppler-0.61.1.ebuild deleted file mode 100644 index c4516a9b703e..000000000000 --- a/app-text/poppler/poppler-0.61.1.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils - -if [[ "${PV}" == "9999" ]] ; then - inherit git-r3 - EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}" - SLOT="0/9999" -else - SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - SLOT="0/72" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION -fi - -DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" -HOMEPAGE="https://poppler.freedesktop.org/" - -LICENSE="GPL-2" -IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils" - -# No test data provided -RESTRICT="test" - -COMMON_DEPEND=" - >=media-libs/fontconfig-2.6.0 - >=media-libs/freetype-2.3.9 - sys-libs/zlib - cairo? ( - dev-libs/glib:2 - >=x11-libs/cairo-1.10.0 - introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) - ) - curl? ( net-misc/curl ) - jpeg? ( virtual/jpeg:0 ) - jpeg2k? ( media-libs/openjpeg:2= ) - lcms? ( media-libs/lcms:2 ) - nss? ( >=dev-libs/nss-3.19:0 ) - png? ( media-libs/libpng:0= ) - qt4? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtxml:5 - ) - tiff? ( media-libs/tiff:0 ) -" -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig -" -RDEPEND="${COMMON_DEPEND} - cjk? ( >=app-text/poppler-data-0.4.7 ) -" - -DOCS=(AUTHORS NEWS README README-XPDF) - -PATCHES=( - "${FILESDIR}/${PN}-0.60.1-qt5-dependencies.patch" - "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" - "${FILESDIR}/${PN}-0.61.0-respect-cflags.patch" - "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch" - "${FILESDIR}/${PN}-0.40-FindQt4.patch" - "${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch" -) - -src_prepare() { - cmake-utils_src_prepare - - # Clang doesn't grok this flag, the configure nicely tests that, but - # cmake just uses it, so remove it if we use clang - if [[ ${CC} == clang ]] ; then - sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die - fi - - if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then - sed '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \ - -i CMakeLists.txt || die - else - einfo "policy(SET CMP0002 OLD) - workaround can be removed" - fi - - # we need to up the C++ version, bug #622526, #643278 - append-cxxflags -std=c++11 -} - -src_configure() { - xdg_environment_reset - local mycmakeargs=( - -DBUILD_GTK_TESTS=OFF - -DBUILD_QT4_TESTS=OFF - -DBUILD_QT5_TESTS=OFF - -DBUILD_CPP_TESTS=OFF - -DENABLE_SPLASH=ON - -DENABLE_ZLIB=ON - -DENABLE_ZLIB_UNCOMPRESS=OFF - -DENABLE_XPDF_HEADERS=ON - -DENABLE_LIBCURL="$(usex curl)" - -DENABLE_CPP="$(usex cxx)" - -DENABLE_UTILS="$(usex utils)" - -DSPLASH_CMYK=OFF - -DUSE_FIXEDPOINT=OFF - -DUSE_FLOAT=OFF - -DWITH_Cairo="$(usex cairo)" - -DWITH_GObjectIntrospection="$(usex introspection)" - -DWITH_JPEG="$(usex jpeg)" - -DWITH_NSS3="$(usex nss)" - -DWITH_PNG="$(usex png)" - -DWITH_Qt4="$(usex qt4)" - $(cmake-utils_use_find_package qt5 Qt5Core) - -DWITH_TIFF="$(usex tiff)" - ) - if use jpeg; then - mycmakeargs+=(-DENABLE_DCTDECODER=libjpeg) - else - mycmakeargs+=(-DENABLE_DCTDECODER=none) - fi - if use jpeg2k; then - mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2) - else - mycmakeargs+=(-DENABLE_LIBOPENJPEG=none) - fi - if use lcms; then - mycmakeargs+=(-DENABLE_CMS=lcms2) - else - mycmakeargs+=(-DENABLE_CMS=) - fi - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - # live version doesn't provide html documentation - if use cairo && use doc && [[ ${PV} != 9999 ]]; then - # For now install gtk-doc there - insinto /usr/share/gtk-doc/html/poppler - doins -r "${S}"/glib/reference/html/* - fi -} |