[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build failure under pkgsrc
From: |
Greg Troxel |
Subject: |
Re: build failure under pkgsrc |
Date: |
Sat, 31 Jul 2021 20:40:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) |
I cleaned and rebuilt; the --debug=explain,prepare is now in the build
recipe.
(I suspect this is a latent problem exposed by pkgsrc and thus it will be
good to fix it for everyone. But as always we'll see when we find it.)
The invocation of scons has a ton of env vars to set things up, but the
basic invocation is:
/usr/pkg/bin/scons prefix=/usr/pkg mandir=/usr/pkg/man leapfetch=no
python_shebang=/usr/pkg/bin/python3.8 target_python=/usr/pkg/bin/python3.8
manbuild=yes docdir=share/doc/gpsd --debug=explain,prepare -j1
and then all seems normal and finally:
scons: building `gpsd-3.23~rc1/www/troubleshooting.html' because it doesn't
exist
Preparing target gpsd-3.23~rc1/www/troubleshooting.html...
Creating 'gpsd-3.23~rc1/www/troubleshooting.html'
chmod -w gpsd-3.23~rc1/www/troubleshooting.html
scons: building `gpsd-3.23~rc1/www/NEWS' because it doesn't exist
Preparing target gpsd-3.23~rc1/www/NEWS...
cp gpsd-3.23~rc1/NEWS gpsd-3.23~rc1/www/NEWS
scons: building `gpsd-3.23~rc1/www/TODO' because it doesn't exist
Preparing target gpsd-3.23~rc1/www/TODO...
cp gpsd-3.23~rc1/TODO gpsd-3.23~rc1/www/TODO
scons: building `gpsd-3.23~rc1/www/gpsdebuginfo' because it doesn't exist
Preparing target gpsd-3.23~rc1/www/gpsdebuginfo...
cp gpsd-3.23~rc1/clients/gpsdebuginfo gpsd-3.23~rc1/www/gpsdebuginfo
scons: building `gpsd-3.23~rc1/gps-3.23~rc1.egg-info' because it doesn't exist
Preparing target gpsd-3.23~rc1/gps-3.23~rc1.egg-info...
Creating 'gpsd-3.23~rc1/gps-3.23~rc1.egg-info'
scons: Cannot explain why `/usr/pkg/include/gps.h' is being rebuilt: No
previous build information found
Preparing target /usr/pkg/include/gps.h...
scons: *** [/usr/pkg/include/gps.h] /usr/pkg/include/gps.h: Permission denied
scons: building terminated because of errors.
Ensure your PYTHONPATH includes /usr/pkg/lib/python3.8/site-packages/
*** Error code 2
What I don't understand is why scons is trying to do what is an
installation step during the build step, and I can't find any reference
in SConscript.
Tracing the system calls of scons, it seems to be trying to unlink the
installed header:
21199 1 python3.8 CALL write(1,0x7025c9131800,0x69)
21199 1 python3.8 GIO fd 1 wrote 105 bytes
"scons: Cannot explain why `/usr/pkg/include/gps.h' is being rebuilt:
No previous build information found\n"
21199 1 python3.8 RET write 105/0x69
21199 1 python3.8 CALL write(1,0x7025c9131800,0x2a)
21199 1 python3.8 GIO fd 1 wrote 42 bytes
"Preparing target /usr/pkg/include/gps.h..."
21199 1 python3.8 RET write 42/0x2a
21199 1 python3.8 CALL write(1,0x7025c9131800,1)
21199 1 python3.8 GIO fd 1 wrote 1 bytes
"\n"
21199 1 python3.8 RET write 1
21199 1 python3.8 CALL unlink(0x7025c409b860)
21199 1 python3.8 NAMI "/usr/pkg/include/gps.h"
21199 1 python3.8 RET unlink -1 errno 13 Permission denied
When I build gpsd without pkgsrc, I haven't been passing prefix=/usr/pkg
(because I don't intend to install from that build), but it's still
calling stat on /usr/pkg/include/gps.h
Probably next I'll bisect some.
signature.asc
Description: PGP signature