Web lists-archives.com

Re: [Samba] build problem with 4.10.0

On Wed, 2019-03-20 at 15:39 +0100, Peter Varkoly via samba wrote:
> Hi
> I want to build samba-4.10.0 for SUSE openLeap 15.1. Config and make 
> works fine but make install sucks:
> ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc 
> --libdir=/usr/lib64 --libexecdir=/usr/lib64 
> --with-cachedir=/var/lib/samba --with-lockdir=/var/lib/samba/lock 
> --with-logfilebase=/var/log/samba --with-modulesdir=/usr/lib64/samba 
> --disable-rpath --disable-rpath-install --enable-debug --enable-pmda 
> --enable-fhs --with-cluster-support 
> --with-socketpath=/var/lib/ctdb/ctdb.socket --with-pam 
> --with-pammodulesdir=lib64/security --with-piddir=/run/samba 
> --with-relro --enable-avahi --with-systemd 
> --with-shared-
> modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,aut
> h_samba4,vfs_cacheprime,vfs_readahead,pdb_tdbsam,pdb_ldap,pdb_ads,pdb
> _smbpasswd,pdb_wbc_sam,pdb_samba4,idmap_ad,idmap_adex,idmap_hash,idma
> p_ldap,idmap_rfc2307,idmap_rid,idmap_tdb2 
> --without-gpgme '--bundled-libraries=!tdb,!talloc,!tevent,ALL'

Try the attached.  If this fixes it file a bug and we can backport it.
 I've invited you to our bugzilla.

The pre-generated docs in the tarball are likely the proximate cause of
the issue, which is why it isn't noticed on git builds.

Andrew Bartlett

Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

From 8e7b63a17112c012652d0c85ef8a45870e83d589 Mon Sep 17 00:00:00 2001
From: David Mulder <dmulder@xxxxxxxx>
Date: Sat, 26 Jan 2019 08:53:18 -0700
Subject: [PATCH] 'articles' variable causes a dependency loop

This 'articles' variable contains
'smbdotconf/parameters.all.xml' and causes a
dependency loop when creating parameters.all.xml

Signed-off-by: David Mulder <dmulder@xxxxxxxx>
Reviewed-by: Andrew Bartlet <abartlet@xxxxxxxxx>
Reviewed-by: Noel Power <noel.power@xxxxxxxx>
Reviewed-by: Andreas Schneider <asn@xxxxxxxxx>
 docs-xml/wscript_build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs-xml/wscript_build b/docs-xml/wscript_build
index 86600ae..796b685 100644
--- a/docs-xml/wscript_build
+++ b/docs-xml/wscript_build
@@ -140,11 +140,11 @@ def smbdotconf_generate_parameter_list(task):
 # Since nothing really forces sorting in glob, we have to sort by file name
 # POSIX file systems aren't required to return sorted content but we want
 # smb.conf parameters to be sorted alphabetically
-sources = bld.path.ant_glob("smbdotconf/**/*.xml", flat=False)
+parameter_all = 'smbdotconf/parameters.all.xml'
+sources = bld.path.ant_glob("smbdotconf/**/*.xml", flat=False, excl=parameter_all)
 articles = " ".join(sorted([x.path_from(bld.path) for x in sources],
                            key=lambda m: m.split(os.sep)[-1]))
-parameter_all = 'smbdotconf/parameters.all.xml'

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba