Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2011 16:41:44 GMT
From:      daniele <danielependenza@yahoo.fr>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/159531: [net][samba4-devel] build stops during configure and, later, compiling
Message-ID:  <201108051641.p75GfiYE096851@red.freebsd.org>
Resent-Message-ID: <201108051650.p75Go8ep098378@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159531
>Category:       ports
>Synopsis:       [net][samba4-devel] build stops during configure and, later, compiling
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 05 16:50:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     daniele
>Release:        8.2-RELEASE
>Organization:
>Environment:
8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 *:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
System is building samba4-devel as it is required to build gnome.

The following problems occur:

* Samba4-devel's configure script stops the execution because tevent-0.9.8 (recently updated to .13) is not found. [A patch need to be applied]

* Samba4-devel's build stops several times because py_talloc_dealloc is not found  (talloc being updated to version 2.0.5). [Several patches need to be applied]

>How-To-Repeat:
make the port
>Fix:
In this system I applied several patches on the run. I am attaching them in case you would like to take a look; I made the best to adhere to the developers team's guidelines.

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	patch-source4-auth-credentials-pycredentials.h
#	patch-source4-auth-gensec-pygensec.c
#	patch-source4-auth-pyauth.h
#	patch-source4-lib-registry-pyregistry.c
#	patch-source4-min__versions.m4
#	patch-source4-param-pyparam.c
#
echo x - patch-source4-auth-credentials-pycredentials.h
sed 's/^X//' >patch-source4-auth-credentials-pycredentials.h << 'd9f3b3cba2b573b3af1675870563c528'
X--- ./source4/auth/credentials/pycredentials.h.orig	2010-01-11 06:35:28.000000000 +0100
X+++ ./source4/auth/credentials/pycredentials.h	2011-08-05 17:40:27.000000000 +0200
X@@ -20,7 +20,7 @@
X #define _PYCREDENTIALS_H_
X 
X #include "auth/credentials/credentials.h"
X-#include "pytalloc.h"
X+#include "lib/talloc/pytalloc.h"
X 
X PyAPI_DATA(PyTypeObject) PyCredentials;
X #define PyCredentials_Check(py_obj) PyObject_TypeCheck(py_obj, &PyCredentials)
d9f3b3cba2b573b3af1675870563c528
echo x - patch-source4-auth-gensec-pygensec.c
sed 's/^X//' >patch-source4-auth-gensec-pygensec.c << '47c68c793f7ece39993a8ea8cc9e38dc'
X--- ./source4/auth/gensec/pygensec.c.orig	2010-01-11 06:35:28.000000000 +0100
X+++ ./source4/auth/gensec/pygensec.c	2011-08-05 17:51:42.000000000 +0200
X@@ -22,7 +22,7 @@
X #include "auth/gensec/gensec.h"
X #include "libcli/util/pyerrors.h"
X #include "scripting/python/modules.h"
X-#include "pytalloc.h"
X+#include "lib/talloc/pytalloc.h"
X #include <tevent.h>
X 
X #ifndef Py_RETURN_NONE
47c68c793f7ece39993a8ea8cc9e38dc
echo x - patch-source4-auth-pyauth.h
sed 's/^X//' >patch-source4-auth-pyauth.h << '43e25aea7884426d38543a4047d376ac'
X--- ./source4/auth/pyauth.h.orig	2010-01-11 06:35:28.000000000 +0100
X+++ ./source4/auth/pyauth.h	2011-08-05 17:45:16.000000000 +0200
X@@ -20,7 +20,7 @@
X #ifndef _PYAUTH_H_
X #define _PYAUTH_H_
X 
X-#include "pytalloc.h"
X+#include "lib/talloc/pytalloc.h"
X #include "auth/session.h"
X 
X PyAPI_DATA(PyTypeObject) PyAuthSession;
43e25aea7884426d38543a4047d376ac
echo x - patch-source4-lib-registry-pyregistry.c
sed 's/^X//' >patch-source4-lib-registry-pyregistry.c << '126ca60dd855922b693e051258d6df3f'
X--- ./source4/lib/registry/pyregistry.c.orig	2010-01-11 06:35:28.000000000 +0100
X+++ ./source4/lib/registry/pyregistry.c	2011-08-05 17:48:51.000000000 +0200
X@@ -23,7 +23,7 @@
X #include "libcli/util/pyerrors.h"
X #include "lib/registry/registry.h"
X #include "scripting/python/modules.h" /* for py_iconv_convenience() */
X-#include <pytalloc.h>
X+#include "lib/talloc/pytalloc.h"
X #include "auth/credentials/pycredentials.h"
X #include "param/pyparam.h"
X 
126ca60dd855922b693e051258d6df3f
echo x - patch-source4-min__versions.m4
sed 's/^X//' >patch-source4-min__versions.m4 << '5f9d8edcacdb0617ce4e8f0766d79617'
X--- ./source4/min_versions.m4.orig	2010-01-11 06:35:28.000000000 +0100
X+++ ./source4/min_versions.m4	2011-08-05 17:15:56.000000000 +0200
X@@ -3,4 +3,4 @@
X define(TDB_MIN_VERSION,1.2.0)
X define(TALLOC_MIN_VERSION,2.0.1)
X define(LDB_REQUIRED_VERSION,0.9.10)
X-define(TEVENT_REQUIRED_VERSION,0.9.8)
X+define(TEVENT_REQUIRED_VERSION,0.9.13)
5f9d8edcacdb0617ce4e8f0766d79617
echo x - patch-source4-param-pyparam.c
sed 's/^X//' >patch-source4-param-pyparam.c << '1199bc364cfd21e75b4ab23688a5150a'
X--- ./source4/param/pyparam.c.orig	2011-08-05 17:33:17.000000000 +0200
X+++ ./source4/param/pyparam.c	2011-08-05 17:33:48.000000000 +0200
X@@ -21,7 +21,7 @@
X #include "includes.h"
X #include "param/param.h"
X #include "param/loadparm.h"
X-#include "pytalloc.h"
X+#include "lib/talloc/pytalloc.h"
X 
X /* There's no Py_ssize_t in 2.4, apparently */
X #if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
1199bc364cfd21e75b4ab23688a5150a
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108051641.p75GfiYE096851>