[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2018-04-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #8 from bluescreenaven...@gmail.com ---
I have tried again, to no avail... I wonder if I am doing something wrong. I
have no Qt5 under /usr, only the one and Frameworks I built in /opt

This is what I tried to change for Kwin's cmake options (where
$INSTALLDIR=/opt)
cmake -Wno-dev .. -DCMAKE_INSTALL_PREFIX=$INSTALLDIR
-DCMAKE_PREFIX_PATH=$INSTALLDIR  -DCMAKE_BUILD_TYPE=Release 
-DCMAKE_INSTALL_RPATH=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
-DCMAKE_SKIP_BUILD_RPATH=FALSE
-DLIB_INSTALL_DIR=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2018-01-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #7 from bluescreenaven...@gmail.com ---
OK... I made some tweaks, and set kwin's RPATH... ...it looks like RPATHs are
not handled recursively though, so for every kf5 library, I might need to add 
-DCMAKE_INSTALL_RPATH=/opt/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2017-10-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #6 from bluescreenaven...@gmail.com ---
Maybe I need a cmake argument, objdump and readelf seen to imply there's not
RPATH set

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2017-10-20 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #5 from Martin Flöser  ---
I guess it's some RPATH setting. I know that I haven't used LD_LIBRARY_PATH for
years and rpath was just being used by default.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2017-10-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #4 from bluescreenaven...@gmail.com ---
I'll have to look at my configuration maybe... 
My Kwin cmake line is
cmake -Wno-dev .. -DCMAKE_INSTALL_PREFIX=$INSTALLDIR
-DCMAKE_PREFIX_PATH=$INSTALLDIR  -DCMAKE_BUILD_TYPE=Release 

...and the libraries are installed in
/opt/lib/(i386-linux-gnu|x86_64-linux-gnu)
I do specify some things to be installed there, mostly Frameworks, but I'm not
sure how that was automatically inherited... 

I also don't have anything /opt in /etc/environment or my ld.conf

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2017-10-19 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #3 from Martin Flöser  ---
I have KWin compiled into a non standard path. Everything works fine. So it is
possible.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2017-10-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=385930

--- Comment #2 from bluescreenaven...@gmail.com ---
Could the RPATH attribute be set on the kwin_* binaries so they can run without
the LD_LIBRARY_PATH having to be set?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 385930] kwin_* binaries when setcap'ed lose $LD_LIBRARY_PATH

2017-10-19 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=385930

Martin Flöser  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Martin Flöser  ---
This is expected. All LD_* variables are ignored when an executable with
capabilities is launched.

-- 
You are receiving this mail because:
You are watching all bug changes.