On Thu, Mar 26, 2020 at 12:38:19PM +0100, Moises Simon wrote: > On Thu, Mar 26, 2020 at 07:50:27AM -0000, Stuart Henderson wrote: > > Does _pbuild have write access to /usr/obj? If not, either grant it, > > or create /usr/obj/ports yourself and grant _pbuild write access to > > that. > > > this where the permissions: > > drwxrwxr-x 4 build wobj 512 Mar 25 11:03 /usr/obj > > d2d35fe9f62eb1e1.i /usr/obj ffs rw,softdep,noatime,nodev,nosuid 1 2 > > because that is for building base I have changed > > WRKOBJDIR=/usr/ports/obj > > drwxr-xr-x 3 _pbuild _pbuild 512 Mar 26 10:12 /usr/ports/obj/ > > Now its working. > > Thanks! > > Now i'm getting this: > > sirius$ make package > ===> Checking files for dmenu-4.9 > >> Fetch https://dl.suckless.org/tools/dmenu-4.9.tar.gz > dmenu-4.9.tar.gz 100% > |*****************************************************************************************| > 15972 00:00 > >> (SHA256) dmenu-4.9.tar.gz: OK > ===> Verifying specs: X11 Xft Xinerama c fontconfig > ===> found X11.17.0 Xft.12.0 Xinerama.6.0 c.96.0 fontconfig.13.0 > ===> Extracting for dmenu-4.9 > make: don't know how to make do-extract > Stop in . > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2641 > '/usr/ports/obj/dmenu-4.9/.extract_done': @cd /usr/ports/mystuff/x11/dmenu > &...) > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2089 > '/usr/ports/packages/amd64/all/dmenu-4.9.tgz': @cd > /usr/ports/mystuff/x11/dm...) > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2578 > '_internal-package': @case X${_DEPENDS_CACHE} in X) _DEPENDS_CACHE=$(doas > -...) > *** Error 2 in /usr/ports/mystuff/x11/dmenu > (/usr/ports/infrastructure/mk/bsd.port.mk:2557 'package': @lock=dmenu-4.9; > export _LOCKS_HELD="...) > > in ports under /usr/ports/mystuff > I just: > > mkdir /usr/ports/mystuff/x11 > cp -R /usr/ports/x11/dmenu /usr/ports/mystuff/x11/ > cd /usr/ports/mystuff/x11/dmenu > make package >
I'm having lots of problems with permissions under /usr/ports/, I have even delete and fetch new cvs ports following: https://www.openbsd.org/faq/faq5.html#wsrc "Avoid running cvs(1) as root. The /usr/src directory (where your source will typically go) is writable by the wsrc group by default, so add users that need to use cvs(1) to that group. " https://man.openbsd.org/bsd.port.mk#PORTS_PRIVSEP "To work fully, this does require the ports tree to be world- readable, and ${WRKDIR} to be world-readable as well (update-patches and friends won't work otherwise)." doing sirius# find /usr/ports/ -type f -exec chmod 644 {} \+ sirius# find /usr/ports/ -type d -exec chmod 755 {} \+ I get: sirius$ make build ===> Verifying specs: X11 Xft Xinerama c fontconfig ===> found X11.17.0 Xft.12.0 Xinerama.6.0 c.96.0 fontconfig.13.0 ===> Checking files for dmenu-4.9 >> Fetch https://dl.suckless.org/tools/dmenu-4.9.tar.gz dmenu-4.9.tar.gz 100% |*****************************************************************************************| 15972 00:00 >> (SHA256) dmenu-4.9.tar.gz: OK ===> Extracting for dmenu-4.9 make: getcwd: Permission denied *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2648 '/usr/ports/pobj/dmenu-4.9/.extract_done': @cd /usr/ports/mystuff/x11/dmenu ...) *** Error 2 in /usr/ports/mystuff/x11/dmenu (/usr/ports/infrastructure/mk/bsd.port.mk:2564 'build': @lock=dmenu-4.9; export _LOCKS_HELD=" d...) # Doas log showing some comands failed sirius# tail /var/log/doas Mar 30 12:35:27 sirius doas: msv ran command chmod a+rX /tmp/dep_cache.6pG4FlqDv as _pbuild from (failed) Mar 30 12:35:27 sirius doas: msv ran command rm -rf /tmp/dep_cache.6pG4FlqDv as _pbuild from (failed) Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/touch /usr/ports/pobj/dmenu-4.9/.buildwantlibs as _pbuild from (failed) Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/perl /usr/ports/infrastructure/bin/portlock /usr/ports/pobj/locks/dmenu-4.9.tar.gz.dist.lock x11/dmenu, as _pbuild from (failed) Mar 30 12:35:27 sirius doas: msv ran command install -d /usr/ports/distfiles as _pfetch from (failed) Mar 30 12:35:27 sirius doas: msv ran command /usr/bin/ftp -V -m -C -o /usr/ports/distfiles/dmenu-4.9.tar.gz.part https://dl.suckless.org/tools/dmenu-4.9.tar.gz as _pfetch from /usr/ports/distfiles Mar 30 12:35:27 sirius doas: msv ran command mv /usr/ports/distfiles/dmenu-4.9.tar.gz.part /usr/ports/distfiles/dmenu-4.9.tar.gz as _pfetch from /usr/ports/distfiles Mar 30 12:35:27 sirius doas: msv ran command rm -f /usr/ports/pobj/locks/dmenu-4.9.tar.gz.dist.lock as _pbuild from /usr/ports/distfiles Mar 30 12:35:27 sirius doas: msv ran command make do-extract as _pbuild from (failed) Mar 30 12:35:27 sirius doas: msv ran command rm -f /usr/ports/pobj/locks/dmenu-4.9.lock as _pbuild from (failed) sirius# # my full doas.conf as it can the one causing problems: permit msv as root permit keepenv msv as root cmd cabal permit nopass msv as root cmd shutdown permit msv as root cmd pkg_check permit msv as root cmd sysupgrade permit keepenv msv as root cmd mount permit keepenv msv as root cmd simple-mtpfs permit keepenv msv as root cmd ntfs-3g permit nopass keepenv msv as root cmd umount permit nopass msv as root cmd sh args /etc/netstart permit nopass msv as root cmd sh args /etc/netstart em0 permit nopass msv as root cmd sh args /etc/netstart iwn0 permit nopass msv as root cmd sh args /etc/netstart trunk0 permit nopass msv as root cmd zzz permit nopass msv as root cmd ZZZ permit nopass msv as root cmd nice permit nopass msv as root cmd renice permit nopass msv cmd /usr/bin/touch permit nopass setenv { TRUSTED_PKG_PATH TERM } msv cmd /usr/sbin/pkg_add permit nopass setenv { TERM } msv cmd /usr/sbin/pkg_delete permit keepenv nopass msv as _pbuild permit keepenv nopass msv as _pfetch permit nopass setenv { DISPLAY DBUS_SESSION_BUS_ADDRESS } root as msv cmd /usr/local/bin/notify-send permit nopass root as _cron permit nopass _cron as root cmd rcctl args reload unwind