svn commit: r485274 - head/net/nbd-server

Muhammad Moinur Rahman bofh at freebsd.org
Sun Nov 18 21:42:33 UTC 2018


On Mon, Nov 19, 2018 at 3:36 AM Tobias Kortkamp <tobik at freebsd.org> wrote:

> On Sun, Nov 18, 2018, at 22:08, Muhammad Moinur Rahman wrote:
> > Author: bofh
> > Date: Sun Nov 18 21:08:00 2018
> > New Revision: 485274
> > URL: https://svnweb.freebsd.org/changeset/ports/485274
> >
> > Log:
> >   net/nbd-server: Update 3.5=>3.18
> >
> >   - Add LICENSE_FILE
> >   - Add OPTION GNUTLS
> >   - Add USES=gnome
> >   - Pet portlint
> >
> >   PR:         230977
> >   Submitted by:       ndowens at yahoo.com
> >   Reported by:        wouter at grep.be
>
> It fails to build:
>
> nbd-server.c:607:17: warning: implicit declaration of function 'atoll' is
> invalid in C99 [-Wimplicit-function-declaration]
>                                 es = (off_t)atoll(optarg);
>                                             ^
> nbd-server.c:711:9: error: use of undeclared identifier 'DT_UNKNOWN'
>                         case DT_UNKNOWN:
>                              ^
> nbd-server.c:722:9: error: use of undeclared identifier 'DT_REG'
>                         case DT_REG:
>                              ^
> nbd-server.c:3426:5: warning: implicit declaration of function 'daemon' is
> invalid in C99 [-Wimplicit-function-declaration]
>         if(daemon(0,0)<0) {
>            ^
> nbd-server.c:3473:3: warning: implicit declaration of function 'setgroups'
> is invalid in C99 [-Wimplicit-function-declaration]
>                 setgroups(0, NULL);
>                 ^
>
> > Modified:
> >   head/net/nbd-server/Makefile
> >   head/net/nbd-server/distinfo
> >
> > Modified: head/net/nbd-server/Makefile
> >
> ==============================================================================
> > --- head/net/nbd-server/Makefile      Sun Nov 18 20:44:30 2018
> (r485273)
> > +++ head/net/nbd-server/Makefile      Sun Nov 18 21:08:00 2018
> (r485274)
> > @@ -2,8 +2,7 @@
> >  # $FreeBSD$
> >
> >  PORTNAME=    nbd
> > -PORTVERSION= 3.5
> > -PORTREVISION=        1
> > +PORTVERSION= 3.18
> >  PORTEPOCH=   1
> >  CATEGORIES=  net
> >  MASTER_SITES=        SF
> > @@ -13,17 +12,25 @@ MAINTAINER=       bofh at FreeBSD.org
> >  COMMENT=     Server for the Linux network block device (nbd)
> >
> >  LICENSE=     GPLv2
> > +LICENSE_FILE=        ${WRKSRC}/COPYING
> >
> > -USES=                pkgconfig tar:bzip2
> > +USES=                gnome pkgconfig
> >  USE_GNOME=   glib20
> > +
> >  GNU_CONFIGURE=       yes
> >  CONFIGURE_ARGS=      --enable-lfs --enable-syslog
> >  TEST_TARGET= check
> >
> > +OPTIONS_DEFINE=      GNUTLS
> > +GNUTLS_CONFIGURE_WITH=       gnutls
> > +GNUTLS_BUILD_DEPENDS=        gnutls>0:security/gnutls
> > +GNUTLS_RUN_DEPENDS=  gnutls>0:security/gnutls
>
> Did you mean
>
> GNUTLS_LIB_DEPENDS=     libgnutls.so:security/gnutls
>
> ?
>
Noops. Add missing patch files. Fixed @r485279


More information about the svn-ports-all mailing list