Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nfs-utils
02-15-2013, 05:09 PM
Post: #1
nfs-utils
Hello!
I tend to use my DeLi(cate)-based machine as a headless server, thus I need it to act as an NFS-server also. So I tried to build the nfs-utils package myself. Everything seemed to be ok, however, I was not able to install this package because of the following error:

error: unsatisfied dependencies:
nfs-utils: requires keyutils

After that I decided to build the 'keyutils' package also. And this turned out to be a kind of problem I cannot solve just by myself. First of all, it gave me the following error message:

Quote:keyutils.c: In function `add_key':
keyutils.c:43: error: `__NR_add_key' undeclared (first use in this function)
keyutils.c:43: error: (Each undeclared identifier is reported only once
keyutils.c:43: error: for each function it appears in.)
keyutils.c: In function `request_key':
keyutils.c:52: error: `__NR_request_key' undeclared (first use in this function)
keyutils.c: In function `__keyctl':
keyutils.c:62: error: `__NR_keyctl' undeclared (first use in this function)
but I managed to get rid of this using the suggestion from this post.
After that some other errors left:
Quote:keyutils.c: In function `__glibc_strerror_r':
keyutils.c:492: error: `ENOKEY' undeclared (first use in this function)
keyutils.c:496: error: `EKEYEXPIRED' undeclared (first use in this function)
keyutils.c:500: error: `EKEYREVOKED' undeclared (first use in this function)
keyutils.c:504: error: `EKEYREJECTED' undeclared (first use in this function)
keyutils.c: In function `perror':
keyutils.c:589: error: `ENOKEY' undeclared (first use in this function)
keyutils.c:593: error: `EKEYEXPIRED' undeclared (first use in this function)
keyutils.c:597: error: `EKEYREVOKED' undeclared (first use in this function)
keyutils.c:601: error: `EKEYREJECTED' undeclared (first use in this function)
which I cannot get rid of.
Some people suggest upgrading the headers and libc, but I am not sure this suggestion has something to do with uClibc though.

So what do you think? How can we get nfs-utils into DeLi(cate)?
Find all posts by this user
Quote this message in a reply
02-15-2013, 11:58 PM (This post was last modified: 02-15-2013 11:59 PM by tavvva.)
Post: #2
RE: nfs-utils
Hi :]

It is definitely some kind of glibc VS. uclibc issue. What versions of nfs-utils and keyutils do you want to introduce? I could try to solve the build issue.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2013, 12:14 AM
Post: #3
RE: nfs-utils
Funny thing is, that the package Makefile expects RPM build environment. We'll see if that could be modified to work without ...
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2013, 12:48 AM
Post: #4
RE: nfs-utils
It has no sense to build such recent version of keyutils, that contains syscalls unsupported by the kernel. I need to investigate if this part of the code is important or not. We have two options. To patch the latest version or to use the latest suitable version, that can be built with the headers from our kernel.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2013, 12:56 AM
Post: #5
RE: nfs-utils
Btw. this is apparently needed for Kerberos authentication only. I would cut that part out completely. You don't need kerberos.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2013, 01:02 AM
Post: #6
RE: nfs-utils
Start with the following version .... newer ones won't work without patching ...

Code:
# $Id$
# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>

pkgname=nfs-utils
pkgver=1.1.6
pkgrel=1
pkgdesc="Support programs for Network File Systems"
arch=('i686' 'x86_64')
url='http://nfs.sourceforge.net'
license=('GPL')
backup=('etc/exports' 'etc/conf.d/nfs')
depends=('glibc' 'tcp_wrappers' 'e2fsprogs' 'portmap' 'nfsidmap' 'libevent>=1.3e')
source=(http://downloads.sourceforge.net/nfs/${pkgname}-${pkgver}.tar.bz2
    nfsd
    nfslock
    exports
    nfs.conf.d
    start-statd.patch)
install=nfs-utils.install
md5sums=('b0d1b8ec5c8c081a340cfc77bb8670cd'
         '5a9436e492e68efaf801b9c496684541'
         '5d0d31f27f2319747d4499df11485ae7'
         '1358d29a549dfc37b522c35e823c6813'
         'b4aae6963ec25d226eb2d97214f5bb18'
         '9c8aeff40ca25312328afe3b7fad293f')

build() {
  cd $srcdir/${pkgname}-${pkgver}
  
  # arch specific patch
  patch -Np0 -i $srcdir/start-statd.patch || return 1
  
  ./configure --prefix=/usr --enable-nfsv3 --disable-gss \
    --with-statedir=/var/lib/nfs --sysconfdir=/etc
  
  make || return 1
  make DESTDIR=$pkgdir install || return 1

  install -D -m 755 $srcdir/nfsd $pkgdir/etc/rc.d/nfsd
  install -D -m 755 $srcdir/nfslock $pkgdir/etc/rc.d/nfslock
  install -D -m 644 $srcdir/exports $pkgdir/etc/exports
  install -D -m 644 $srcdir/nfs.conf.d $pkgdir/etc/conf.d/nfs
  
  install -d $pkgdir/var/lib/nfs/v4recovery
}
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2013, 01:04 AM
Post: #7
RE: nfs-utils
And one hint .... NEVER EVER USE GLIBC HEADERS Big Grin
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2013, 02:51 PM
Post: #8
RE: nfs-utils
Hello!
I tried to use the PKGBUILD you suggested above, but It says:
Quote:time makepkg -d
==> ERROR: install scriptlet (nfs-utils.install) does not exist.
Where can I obtain this file from? Thanks!

(02-16-2013 01:04 AM)tavvva Wrote:  And one hint .... NEVER EVER USE GLIBC HEADERS Big Grin
Well, I would be very thankful if you point me to a guide on building packages for the uClibc-based system, because I have been using DeLi and now DeLi(cate) for several years and constantly experienced the problems trying to build this of that package. And also it would be just great if I could contribute some packages to DeLi(cate) repository, since I often build some packages that are not there in repo. So, is there such kind of a guide for DeLi(cate) packager already?
Find all posts by this user
Quote this message in a reply
02-16-2013, 03:14 PM
Post: #9
RE: nfs-utils
(02-16-2013 02:51 PM)v_2e Wrote:  Hello!
I tried to use the PKGBUILD you suggested above, but It says:
Quote:time makepkg -d
==> ERROR: install scriptlet (nfs-utils.install) does not exist.
Where can I obtain this file from? Thanks!

(02-16-2013 01:04 AM)tavvva Wrote:  And one hint .... NEVER EVER USE GLIBC HEADERS Big Grin
Well, I would be very thankful if you point me to a guide on building packages for the uClibc-based system, because I have been using DeLi and now DeLi(cate) for several years and constantly experienced the problems trying to build this of that package. And also it would be just great if I could contribute some packages to DeLi(cate) repository, since I often build some packages that are not there in repo. So, is there such kind of a guide for DeLi(cate) packager already?

I've found the .install file here: https://github.com/jensp/Arch-Linux-on-i...ls.install

As far as PKGBUILDs go, check out the wikipage on creating packages: http://delicate-linux.net/wiki/index.php...g_packages The page is far from being completed, but it's an outline.

My Delicate Linux repository
Find all posts by this user
Quote this message in a reply
02-16-2013, 03:24 PM
Post: #10
RE: nfs-utils
(02-16-2013 03:14 PM)snacsnoc Wrote:  I've found the .install file here: https://github.com/jensp/Arch-Linux-on-i...ls.install
All right, I found it. But what about these files?
Quote: nfsd
nfslock
exports
nfs.conf.d
start-statd.patch

P.S. I ususally took the initial files from CRUX when I built packages.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | DeLi(cate) Linux | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication