View previous topic :: View next topic |
Author |
Message |
est921 n00b

Joined: 20 Dec 2015 Posts: 28
|
Posted: Fri Feb 23, 2018 5:34 pm Post subject: qtcore-5.9.4-r2 build fails almost instantly |
|
|
The error seems to be
Quote: | find: The relative path ‘$ROOTPATH’ is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove that entry from $PATH |
My PATH variable only contains Quote: | /sbin:/bin:/usr/sbin:/usr/bin | , but I'm guessing that gets changed somehow when emerge is run.
Does anyone know how to fix this? Here is the full build log, in case that helps https://paste.pound-python.org/show/cGm61zKCMUYaA3WmIEgD/ |
|
Back to top |
|
 |
mike155 Advocate

Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Feb 27, 2018 10:30 am Post subject: |
|
|
Please show us the output of:
Code: | grep "PATH=" /var/tmp/portage/dev-qt/qtcore-5.9.4-r2/temp/environment |
|
|
Back to top |
|
 |
est921 n00b

Joined: 20 Dec 2015 Posts: 28
|
Posted: Thu Mar 01, 2018 1:52 pm Post subject: |
|
|
Thank you. The output is:
Code: | declare -x PATH="/usr/lib/portage/python2.7/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:\$ROOTPATH:/lib64/rc/bin"
declare -x WINDOWPATH="3"
export PKG_CONFIG_PATH=${EPREFIX}/usr/share/pkgconfig;
export LD_LIBRARY_PATH="${QT5_BUILD_DIR}/lib:${QT5_LIBDIR}"
|
|
|
Back to top |
|
 |
mike155 Advocate

Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Mar 01, 2018 2:52 pm Post subject: |
|
|
The output shows the PATH variable which is used when emerge starts to compile qtcore. Your output shows that PATH contains "\$ROOTPATH", which should not be there.
Try to find out why "\$ROOTPATH" is in the PATH variable and fix it. Depending on the configuration file where it is set, you should either remove it or replace it with something like "${ROOTPATH}".
If you don't now what to do, you could start with: cd /etc; grep -r ROOTPATH * |
|
Back to top |
|
 |
|