Skip to content

Commit

Permalink
app-misc/bcompare: fixed insecure RUNPATHs and unresolved SONAME
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyongxiang committed Nov 12, 2023
1 parent 14c59a7 commit b9d8f9a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions app-misc/bcompare/bcompare-4.4.6.27483.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,40 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"
RDEPEND=""


# qt4
# libQtCore.so.4
# libQtGui.so.4
# gtk2
# libgtk-x11-2.0.so.0
# kde4
# libkdecore.so.5
# libkio.so.5
# kde5 32bit
# libKF5CoreAddons.so.5
# libKF5I18n.so.5
# libKF5KIOCore.so.5
# libKF5KIOWidgets.so.5
# libKF5Service.so.5
# libQt5Core.so.5
# libQt5Gui.so.5
# libQt5Widgets.so.5
REQUIRES_EXCLUDE="
libQtCore.so.4
libQtGui.so.4
libgtk-x11-2.0.so.0
libkdecore.so.5
libkio.so.5
libKF5CoreAddons.so.5
libKF5I18n.so.5
libKF5KIOCore.so.5
libKF5KIOWidgets.so.5
libKF5Service.so.5
libQt5Core.so.5
libQt5Gui.so.5
libQt5Widgets.so.5
"
QA_PRESTRIPPED="
/opt/${PN}/lib/beyondcompare/lib7z.so
/opt/${PN}/lib/beyondcompare/BCompare
Expand Down Expand Up @@ -58,6 +92,14 @@ src_unpack() {
unpack ${A}
}

src_prepare() {
default

patchelf --remove-rpath ext/bcompare_ext_kde5.amd64.so || die
patchelf --remove-rpath ext/bcompare_ext_kde.amd64.so || die
patchelf --remove-rpath ext/bcompare_ext_kde.i386.so || die
}

src_install() {
local targetdir="/opt/bcompare"
local LAUNCHER="bcompare/bin/bcompare"
Expand Down

0 comments on commit b9d8f9a

Please sign in to comment.