NetBSD Problem Report #53196

From john@stgeorge.klos.com  Wed Apr 18 19:41:43 2018
Return-Path: <john@stgeorge.klos.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CC2217A221
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 18 Apr 2018 19:41:43 +0000 (UTC)
Message-Id: <201804181941.w3IJfetA010338@stgeorge.klos.com>
Date: Wed, 18 Apr 2018 19:41:40 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: net/samba4 fails to update
X-Send-Pr-Version: 3.95

>Number:         53196
>Category:       pkg
>Synopsis:       net/samba4 fails to update
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 18 19:45:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Wed Dec 26 15:35:00 +0000 2018
>Originator:     John Klos
>Release:        NetBSD 7.1_STABLE
>Organization:

>Environment:


System: NetBSD stgeorge.klos.com 7.1_STABLE NetBSD 7.1_STABLE (STGEORGE) #0: Tue Dec 5 02:42:16 UTC 2017 john@stgeorge.klos.com:/usr/release/obj-amd64/sys/arch/amd64/compile/STGEORGE amd64
Architecture: x86_64
Machine: amd64
>Description:

Trying to update (via pkg_rolling-replace) net/samba4 fails first with:

=> Creating binary package /usr/pkgsrc/devel/talloc/work/.packages/talloc-2.1.13.tgz
===> package-message [talloc-2.1.13 samba-4.6.8nb6] ===> Building binary package for talloc-2.1.13
=> Creating binary package /usr/pkgsrc/packages/All/talloc-2.1.13.tgz
===> su-real-package-install [talloc-2.1.13 samba-4.6.8nb6] ===> Installing binary package of talloc-2.1.13
pkg_add: Package `talloc-2.1.13' conflicts with `samba<=4.6.8nb3', and `samba-4.6.8nb3' is installed.
pkg_add: 1 package addition failed
*** Error code 1

Stop.
make[3]: stopped in /usr/pkgsrc/devel/talloc
*** Error code 1


After manually deleting samba and installing talloc, samba then fails with:

Checking for gnutls >= 3.0.0s                                                     : not found 
Checking for gnutls >= 1.4.0 and broken versions                                  : not found 
/usr/pkgsrc/net/samba4/work/samba-4.6.8/source4/lib/tls/wscript:51: error: Building the AD DC requires GnuTLS (eg libgnutls-dev, gnutls-devel) for ldaps:// support and for the BackupKey protocol
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/net/samba4
*** Error code 1
>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: adam@NetBSD.org
State-Changed-When: Wed, 26 Dec 2018 11:00:07 +0000
State-Changed-Why:
Does it still occur with samba-4.9.4nb1? Please, check.


From: John Klos <john@ziaspace.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
        adam@NetBSD.org
Subject: Re: pkg/53196 (net/samba4 fails to update)
Date: Wed, 26 Dec 2018 15:31:12 +0000 (UTC)

 > Does it still occur with samba-4.9.4nb1? Please, check.

 Now I get a completely different and very strange failure. Again, this is 
 with NetBSD 7.1_STABLE on amd64:

 ===> build-message [samba-4.9.4nb1] ===> Building for samba-4.9.4nb1
 WAF_MAKE=1 /usr/local/bin/python2.7 ./buildtools/bin/waf build
 Waf: Entering directory `/usr/pkgsrc/net/samba4/work/samba-4.9.4/bin'
 /usr/pkgsrc/net/samba4/work/samba-4.9.4/wscript: error: Traceback (most 
 recent call last):
    File 
 "/usr/pkgsrc/net/samba4/work/samba-4.9.4/third_party/waf/wafadmin/Utils.py", 
 line 669, in recurse
      exec(compile(txt, file_path, 'exec'), dc)
    File "/usr/pkgsrc/net/samba4/work/samba-4.9.4/wscript_build", line 41, 
 in <module>
      bld.RECURSE('lib/replace')
    File "./buildtools/wafsamba/samba_utils.py", line 454, in RECURSE
      return ctx.add_subdirs(relpath)
    File 
 "/usr/pkgsrc/net/samba4/work/samba-4.9.4/third_party/waf/wafadmin/Build.py", 
 line 997, in add_subdirs
      self.recurse(dirs, 'build')
    File 
 "/usr/pkgsrc/net/samba4/work/samba-4.9.4/third_party/waf/wafadmin/Utils.py", 
 line 656, in recurse
      f(self)
    File "/usr/pkgsrc/net/samba4/work/samba-4.9.4/lib/replace/wscript", line 
 755, in build
      bld.RECURSE('buildtools/wafsamba')
    File "./buildtools/wafsamba/samba_utils.py", line 454, in RECURSE
      return ctx.add_subdirs(relpath)
    File 
 "/usr/pkgsrc/net/samba4/work/samba-4.9.4/third_party/waf/wafadmin/Build.py", 
 line 997, in add_subdirs
      self.recurse(dirs, 'build')
    File 
 "/usr/pkgsrc/net/samba4/work/samba-4.9.4/third_party/waf/wafadmin/Utils.py", 
 line 656, in recurse
      f(self)
    File 
 "/usr/pkgsrc/net/samba4/work/samba-4.9.4/lib/replace/../../buildtools/wafsamba/wscript", 
 line 619, in build
      bld.CHECK_MAKEFLAGS()
    File "./buildtools/wafsamba/samba_utils.py", line 507, in 
 CHECK_MAKEFLAGS
      Options.options.jobs = int(jobs)
 ValueError: invalid literal for int() with base 10: 
 '_PATH_ORIG=/home/john/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin'

 gmake: *** [Makefile:8: all] Error 1
 *** Error code 2

 Stop.
 make[1]: stopped in /usr/pkgsrc/net/samba4
 *** Error code 1

 Stop.
 make: stopped in /usr/pkgsrc/net/samba4

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.