I have an RPi v3 and am using it as a 'build machine' to build some AUR packages and a few others. I use makepkg exclusively to build packages. I used to have all the repositories on a USB fob and previously built all the files on the fob. Well, the USB flash drive finally quit. I almost lost some stuff, but was able to recover. So, I have a FreeNAS setup and decided to put all the build files on a NFS share on the NAS. Well, I can build some packages, but if there are patches to the src or if the PKGFILE is set up a bit differently (tar fails, some install commands fail). I cannot build the PKGFILE to completion. To build, I have to move the directory back to the root file system natively mounted on the RPi and build it there. The problems all seem to be with chown or chgrp -ing files either with tar or patch or install.
I have my export on the FreeNAS set to be mappall user/group as myuser:wheel (also tried root:wheel and nyuser:mygroup with the same result)
I mount it from fstab on the RPi with a line like this:
$this->bbcode_second_pass_code('', '192.168.2.198:/mnt/first_NAS/Rune_dev /Rune_dev nfs user=myuser,sec=sys,vers=4.1,rw 0 0')
On the RPI the alarm user is 1001 and on the NAS, myuser is 1001
What I get are errors like this:
$this->bbcode_second_pass_code('', 'tar: web/static/style.css: Cannot change ownership to uid 1000, gid 1000: Invalid argument
tar: web/static: Cannot change ownership to uid 1000, gid 1000: Invalid argument
tar: web/init/default-scweb: Cannot change ownership to uid 1000, gid 1000: Invalid argument
tar: web/init/scweb-service: Cannot change ownership to uid 1000, gid 1000: Invalid argument
tar: web/init: Cannot change ownership to uid 1000, gid 1000: Invalid argument
tar: web/scweb.py: Cannot change ownership to uid 1000, gid 1000: Invalid argument
tar: web: Cannot change ownership to uid 1000, gid 1000: Invalid argument
')
or
$this->bbcode_second_pass_code('', '/AUR/aixlog]$ makepkg
==> Making package: aixlog 1.2.1-2 (Sun 04 Aug 2019 12:10:04 PM CDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found v1.2.1.tar.gz
==> Validating source files with sha256sums...
v1.2.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting v1.2.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
install: cannot change ownership of '/Rune_dev/AUR/aixlog/pkg/aixlog/usr/include/aixlog.hpp': Invalid argument
==> ERROR: A failure occurred in package().
Aborting...
')
or
$this->bbcode_second_pass_code('', '...
patching file Makefile
patch: **** Failed to set the owning group of file ./Makefile.oRgGY8H : Invalid argument
==> ERROR: A failure occurred in prepare().
Aborting...
')
Any help?
Keith