dev-db/mysql: disable rpm call
authorThomas Deutschmann <whissi@gentoo.org>
Sat, 17 Aug 2019 20:13:10 +0000 (22:13 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sat, 17 Aug 2019 20:13:29 +0000 (22:13 +0200)
Closes: https://bugs.gentoo.org/692368
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
dev-db/mysql/mysql-8.0.17.ebuild

index d2e0717c4ab560588ea88ef90cfb241b30632301..df67c9534ad5b4bf12a20fece171af27488cbe19 100644 (file)
@@ -164,6 +164,11 @@ src_unpack() {
 }
 
 src_prepare() {
+       # Avoid rpm call which would trigger sandbox, #692368
+       sed -i \
+               -e 's/MY_RPM rpm/MY_RPM rpmNOTEXISTENT/' \
+               CMakeLists.txt || die
+
        if use jemalloc ; then
                echo "TARGET_LINK_LIBRARIES(mysqld jemalloc)" >> "${S}/sql/CMakeLists.txt" || die
        fi