NFS mount and makepkg problems

Development on core packages and the distribution goes on in here.

NFS mount and makepkg problems

Postby keithspg » Mon Aug 05, 2019 12:49 am

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
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: NFS mount and makepkg problems

Postby keithspg » Mon Aug 12, 2019 8:56 pm

this is related to nfs4. I poked around for a couple hours and got nowhere. I added vers=3 to my mount options and now things work. Need to learn how to really use nfs4...

Keith
keithspg
 
Posts: 221
Joined: Mon Feb 23, 2015 4:14 pm

Re: NFS mount and makepkg problems

Postby graysky » Mon Aug 12, 2019 9:57 pm

I have tmpfs on an x86_64 machine shared out as nfs and build on it all the time.

On the x86_64:
$this->bbcode_second_pass_code('', '% cat /etc/exports
/srv/nfs 10.1.1.0/24(fsid=0,no_subtree_check,sync,ro)
/srv/nfs/scratch 10.1.1.0/24(fsid=2,no_subtree_check,sync,no_root_squash,rw)')

$this->bbcode_second_pass_code('', '
% grep scratch /etc/fstab
tmpfs /scratch tmpfs size=27G,nodev,lazytime 0 0
/scratch /srv/nfs/scratch none bind 0 0')

On the Arch ARM machine it's a simple:
$this->bbcode_second_pass_code('', 'mount build.lan:/scratch /scratch')
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 3 guests