Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qtcore-5.9.4-r2 build fails almost instantly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
est921
n00b
n00b


Joined: 20 Dec 2015
Posts: 28

PostPosted: Fri Feb 23, 2018 5:34 pm    Post subject: qtcore-5.9.4-r2 build fails almost instantly Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Feb 27, 2018 10:30 am    Post subject: Reply with quote

Please show us the output of:
Code:
grep "PATH=" /var/tmp/portage/dev-qt/qtcore-5.9.4-r2/temp/environment
Back to top
View user's profile Send private message
est921
n00b
n00b


Joined: 20 Dec 2015
Posts: 28

PostPosted: Thu Mar 01, 2018 1:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Mar 01, 2018 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum