Skip to contentSkip to conversation

heimdal 1.6rc2: add buildtool for samba4

RFC PATCH In review Koen Kooi 3 participants 7 messages Aug 9, 2015 – Aug 20, 2015

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

RFC PATCH 1/3 heimdal 1.6rc2: add buildtool for samba4

Samba4 uses ans1_compile and compile_et to build itself, so we need a -native version of it. Heimdal is the external upstream variant of the tools samba bundles.

---
 ...dm5-fix-race-in-Makefile-with-kadm5_err.h.patch | 34 ++++++++++++++++
 .../recipes-connectivity/samba/heimdal_1.6rc2.bb   | 45 ++++++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb
meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch new file +34 -0
new file mode 100644
index 0000000..bab933c
@@ -0,0 +1,34 @@
+From 18fe7d300f133c2b9eb93bb4bd81e4644979a74b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <[email protected]>
+Date: Tue, 1 Jul 2014 13:13:43 -0600
+Subject: [PATCH] kadm5: fix race in Makefile with kadm5_err.h
+
+When running make with -j4, occasionally kadm5 fails due to a missing
+header file kadm5_err.h. Fix the race condition.
+
+Reported at https://bugzilla.redhat.com/1115164
+
+Reviewed-by: Ken Dreyer <[email protected]>
+
+Upstream-status: Backport [upstream commit 6affa4cceceaa1369dd895f8acdd7a883ee65674]
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ lib/kadm5/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/kadm5/Makefile.am b/lib/kadm5/Makefile.am
+index f8be3b1..1b399b1 100644
+--- a/lib/kadm5/Makefile.am
++++ b/lib/kadm5/Makefile.am
+@@ -155,6 +155,7 @@ iprop-commands.c iprop-commands.h: iprop-commands.in
+ 	$(SLC) $(srcdir)/iprop-commands.in
+ 
+ $(libkadm5srv_la_OBJECTS): kadm5_err.h
++$(libkadm5clnt_la_OBJECTS): kadm5_err.h
+ $(iprop_log_OBJECTS): iprop-commands.h
+ 
+ client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
+-- 
+2.4.5
+
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.0.1
author
#1 lore raw

RFC PATCH 2/3 samba: add 4.2.3

Samba is now waf based so this recipe has been written from scratch and will need more review than the usual version bump.

Waf allows two methods for site files:

1) Run qemu against sysroot
2) cross-answers.txt

I've opted for 2) and split the answers in a generic and arch section. I'm not sure of the arch stuff is really arch specific, but that's what review is for :)

Another change is that when using systemd the daemons will run in the foreground instead of forking.

Build tested on x86_64 and armv7a with the Angstrom Distribution. Runtime tested on x86_64 and armv7a with the Angstrom Distribution.

---
 .../samba/samba/cross-answers-arm.txt              |   6 +
 .../samba/samba/cross-answers-x86_64.txt           |   4 +
 .../samba/samba/cross-answers.txt                  |  35 ++++
 .../recipes-connectivity/samba/samba/nmb.service   |   3 +-
 .../recipes-connectivity/samba/samba/smb.service   |   3 +-
 .../samba/samba/winbind.service                    |   5 +-
 meta-oe/recipes-connectivity/samba/samba_git.bb    | 187 +++++++++++++++++++++
 7 files changed, 236 insertions(+), 7 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/samba/samba/cross-answers-arm.txt
 create mode 100644 meta-oe/recipes-connectivity/samba/samba/cross-answers-x86_64.txt
 create mode 100644 meta-oe/recipes-connectivity/samba/samba/cross-answers.txt
 create mode 100644 meta-oe/recipes-connectivity/samba/samba_git.bb
meta-oe/recipes-connectivity/samba/samba/cross-answers-arm.txt new file +6 -0
new file mode 100644
index 0000000..3652966
@@ -0,0 +1,6 @@
+Checking value of NSIG: "65"
+Checking value of _NSIG: "65"
+Checking value of SIGRTMAX: "64"
+Checking value of SIGRTMIN: "34"
+Checking whether we can use Linux thread-specific credentials with 32-bit system calls: OK
+
meta-oe/recipes-connectivity/samba/samba/cross-answers-x86_64.txt new file +4 -0
new file mode 100644
index 0000000..7dff9ef
@@ -0,0 +1,4 @@
+Checking value of NSIG: "65"
+Checking value of _NSIG: "65"
+Checking value of SIGRTMAX: "64"
+Checking value of SIGRTMIN: "34"
meta-oe/recipes-connectivity/samba/samba/cross-answers.txt new file +35 -0
new file mode 100644
index 0000000..d185fa0
@@ -0,0 +1,35 @@
+Checking uname sysname type: "Linux"
+Checking uname release type: "3.0.0"
+Checking uname version type: "#1 Tue Nov 1 12:34:56 UTC 2013"
+Checking simple C program: OK
+rpath library support: OK
+-Wl,--version-script support: OK
+Checking getconf LFS_CFLAGS: NO
+Checking for large file support without additional flags: OK
+Checking for -D_LARGE_FILES: OK
+Checking correct behavior of strtoll: NO
+Checking for working strptime: OK
+Checking for C99 vsnprintf: OK
+Checking for HAVE_SHARED_MMAP: OK
+Checking for HAVE_MREMAP: OK
+Checking for HAVE_INCOHERENT_MMAP: OK
+Checking for HAVE_SECURE_MKSTEMP: OK
+Checking for HAVE_IFACE_GETIFADDRS: OK
+Checking for kernel change notify support: OK
+Checking for Linux kernel oplocks: OK
+Checking for kernel share modes: OK
+Checking whether POSIX capabilities are available: OK
+Checking whether we can use Linux thread-specific credentials: OK
+Checking whether setreuid is available: OK
+Checking whether setresuid is available: OK
+Checking whether seteuid is available: OK
+Checking whether fcntl locking is available: OK
+Checking for the maximum value of the 'time_t' type: OK
+Checking whether the realpath function allows a NULL argument: OK
+Checking for ftruncate extend: OK
+getcwd takes a NULL argument: OK
+Checking if can we convert from CP850 to UCS-2LE: OK
+Checking if can we convert from IBM850 to UCS-2LE: OK
+Checking if can we convert from UTF-8 to UCS-2LE: OK
+Checking if can we convert from UTF8 to UCS-2LE: OK
+vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
meta-oe/recipes-connectivity/samba/samba/nmb.service +1 -2
index 91b9975..64cefb6 100644
@@ -3,9 +3,8 @@ Description=Samba NMB Daemon
 After=syslog.target network.target
 
 [Service]
-Type=forking
 PIDFile=/var/run/nmbd.pid
-ExecStart=@SBINDIR@/nmbd
+ExecStart=@SBINDIR@/nmbd -F
 ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
 
 [Install]
meta-oe/recipes-connectivity/samba/samba/smb.service +1 -2
index bc0707a..685480e 100644
@@ -3,10 +3,9 @@ Description=Samba SMB Daemon
 After=syslog.target network.target nmb.service winbind.service
 
 [Service]
-Type=forking
 PIDFile=/var/run/smbd.pid
 LimitNOFILE=16384
-ExecStart=@SBINDIR@/smbd
+ExecStart=@SBINDIR@/smbd -F
 ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
 
 [Install]
meta-oe/recipes-connectivity/samba/samba/winbind.service +2 -3
index bff6fb8..ebcb230 100644
@@ -1,11 +1,10 @@
-i[Unit]
+[Unit]
 Description=Samba Winbind Daemon
 After=syslog.target network.target nmb.service
 
 [Service]
-Type=forking
 PIDFile=/var/run/winbindd.pid
-ExecStart=@SBINDIR@/winbindd
+ExecStart=@SBINDIR@/winbindd -F
 ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID
 
 [Install]
meta-oe/recipes-connectivity/samba/samba_git.bb new file +187 -0

187 lines not on this page · raw message

Signature · 1 line
2.0.1
author
#2 lore raw

RFC PATCH 3/3 samba: remove samba 3

In reply to Koen Kooi
---
 .../bug_221618_precise-64bit-prototype.patch       |    20 -
 ...4104_mention-kerberos-in-smbspool-manpage.patch |    34 -
 ...m_7499-nss_wins-dont-clobber-daemons-logs.patch |    47 -
 .../bug_601406_fix-perl-path-in-example.patch      |    15 -
 ...04768_upstream_7826_drop-using-samba-link.patch |    21 -
 ...ug_604768_upstream_7826_fix-WHATSNEW-link.patch |    18 -
 ...onfigure-disable-core_pattern-cross-check.patch |    20 -
 .../configure-disable-getaddrinfo-cross.patch      |    11 -
 .../samba/samba-3.6.24/configure-libunwind.patch   |    82 -
 .../samba/samba-3.6.24/documentation.patch         |   302 -
 .../samba/samba-3.6.24/documentation2.patch        |   314 -
 .../samba-3.6.24/dont-build-VFS-examples.patch     |    31 -
 .../samba/samba-3.6.24/fhs-filespaths.patch        |    65 -
 .../samba/samba-3.6.24/installswat.sh.patch        |    23 -
 .../samba-3.6.24/libutil_drop_AI_ADDRCONFIG.patch  |    54 -
 .../samba-3.6.24/only_export_public_symbols.patch  |    21 -
 .../samba/samba-3.6.24/pam-examples.patch          |    17 -
 .../samba/samba-3.6.24/shadow_copy2_backport.patch |  2101 ---
 .../samba/samba-3.6.24/smbclient-pager.patch       |    18 -
 .../samba/samba-3.6.24/smbtar-bashism.patch        |    19 -
 .../samba/samba-3.6.24/smbtorture-manpage.patch    |    94 -
 .../samba/samba-3.6.24/undefined-symbols.patch     |    24 -
 .../samba/samba-3.6.24/usershare.patch             |    38 -
 .../samba/samba-3.6.24/waf-as-source.patch         | 18534 -------------------
 meta-oe/recipes-connectivity/samba/samba-basic.inc |    55 -
 meta-oe/recipes-connectivity/samba/samba.inc       |   159 -
 ...arsing-linemarkers-in-preprocessor-output.patch |    68 -
 .../samba/samba/Managing-Samba.txt                 |    40 -
 .../recipes-connectivity/samba/samba/cifs.patch    |    10 -
 .../samba/samba/config-h.patch                     |    12 -
 .../samba/samba/config-lfs.patch                   |    47 -
 .../samba/samba/configure-3.3.0.patch              |    85 -
 .../recipes-connectivity/samba/samba/mtab.patch    |    11 -
 .../recipes-connectivity/samba/samba/quota.patch   |    11 -
 .../samba/samba/tdbheaderfix.patch                 |    14 -
 meta-oe/recipes-connectivity/samba/samba_3.6.24.bb |    67 -
 36 files changed, 22502 deletions(-)
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_221618_precise-64bit-prototype.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_387266_upstream_4104_mention-kerberos-in-smbspool-manpage.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_598313_upstream_7499-nss_wins-dont-clobber-daemons-logs.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_601406_fix-perl-path-in-example.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_604768_upstream_7826_drop-using-samba-link.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_604768_upstream_7826_fix-WHATSNEW-link.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-disable-core_pattern-cross-check.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-disable-getaddrinfo-cross.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/documentation.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/documentation2.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/dont-build-VFS-examples.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/installswat.sh.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/libutil_drop_AI_ADDRCONFIG.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/only_export_public_symbols.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/pam-examples.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/shadow_copy2_backport.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/smbclient-pager.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/smbtar-bashism.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/smbtorture-manpage.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/undefined-symbols.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.24/waf-as-source.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba-basic.inc
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba.inc
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/0001-PIDL-fix-parsing-linemarkers-in-preprocessor-output.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/Managing-Samba.txt
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/cifs.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/config-h.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/config-lfs.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/configure-3.3.0.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/mtab.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/quota.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba/tdbheaderfix.patch
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba_3.6.24.bb
meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_221618_precise-64bit-prototype.patch deleted +0 -20
deleted file mode 100644
index 31108f2..0000000
@@ -1,20 +0,0 @@
-Description: 64 bit fix for libsmbclient
-Author: Christian Perrier <[email protected]>
-Bug-Debian: http://bugs.debian.org/221618
-Forwarded: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=221618#27
-
-Index: samba/source3/include/libsmbclient.h
-===================================================================
---- samba.orig/source3/include/libsmbclient.h
-+++ samba/source3/include/libsmbclient.h
-@@ -79,6 +79,10 @@
- #include <fcntl.h>
- #include <utime.h>
- 
-+  /* Debian bug #221618 */
-+#define _LARGEFILE64_SOURCE
-+#define _FILE_OFFSET_BITS 64
-+
- #define SMBC_BASE_FD        10000 /* smallest file descriptor returned */
- 
- #define SMBC_WORKGROUP      1
meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_387266_upstream_4104_mention-kerberos-in-smbspool-manpage.patch deleted +0 -34
deleted file mode 100644
index d9cc633..0000000
@@ -1,34 +0,0 @@
-Description: Add mention about some user for user information in smbspool manpage
-Author: Christian Perrier <[email protected]>
-Bug-Debian: http://bugs.debian.org/387266
-Forwarded: yes
-Bug: https://bugzilla.samba.org/show_bug.cgi?id=4104
-
-Index: samba/docs-xml/manpages-3/smbspool.8.xml
-===================================================================
---- samba.orig/docs-xml/manpages-3/smbspool.8.xml
-+++ samba/docs-xml/manpages-3/smbspool.8.xml
-@@ -73,7 +73,9 @@
- 		</para></listitem>
- 
- 		<listitem><para>The user argument (argv[2]) contains the 
--		print user's name and is presently not used by smbspool.
-+		print user's name and is presently not used by smbspool
-+		except in Kerberos environments to access the user's
-+		ticket cache.
- 		</para></listitem>
- 
- 		<listitem><para>The title argument (argv[3]) contains the 
-Index: samba/docs/manpages/smbspool.8
-===================================================================
---- samba.orig/docs/manpages/smbspool.8
-+++ samba/docs/manpages/smbspool.8
-@@ -114,7 +114,7 @@
- .sp -1
- .IP \(bu 2.3
- .\}
--The user argument (argv[2]) contains the print user\*(Aqs name and is presently not used by smbspool\&.
-+The user argument (argv[2]) contains the print user\*(Aqs name and is presently not used by smbspool except in Kerberos environments to access the user\'s ticket cache\&.
- .RE
- .sp
- .RS 4
meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_598313_upstream_7499-nss_wins-dont-clobber-daemons-logs.patch deleted +0 -47

47 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_601406_fix-perl-path-in-example.patch deleted +0 -15
deleted file mode 100644
index ba8b1f4..0000000
@@ -1,15 +0,0 @@
-Description: Fix path to perl binary in example file
-Author: Christian Perrier <[email protected]>
-Bug-Debian: http://bugs.debian.org/601406
-Forwarded: not-needed
-
-Index: samba/examples/misc/wall.perl
-===================================================================
---- samba.orig/examples/misc/wall.perl
-+++ samba/examples/misc/wall.perl
-@@ -1,4 +1,4 @@
--#!/usr/local/bin/perl
-+#!/usr/bin/perl
- # 
- #@(#) smb-wall.pl Description:
- #@(#) A perl script which allows you to announce whatever you choose to
meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_604768_upstream_7826_drop-using-samba-link.patch deleted +0 -21
deleted file mode 100644
index 0c54b6b..0000000
@@ -1,21 +0,0 @@
-Description: Drop Using Samba link in HTML documentation summary
-Author: Christian Perrier <[email protected]>
-Bug-Debian: http://bugs.debian.org/604768
-Forwarded: yes
-Bug: https://bugzilla.samba.org/show_bug.cgi?id=7826
-
-Index: samba/docs/htmldocs/index.html
-===================================================================
---- samba.orig/docs/htmldocs/index.html
-+++ samba/docs/htmldocs/index.html
-@@ -23,10 +23,6 @@
-  <td valign="top">This book provides example configurations, it documents key aspects of Microsoft Windows networking, provides in-depth insight into the important configuration of Samba-3, and helps to put all of these into a useful framework.</td>
- </tr>
- <tr>
-- <td valign="top"><a href="using_samba/toc.html">Using Samba</a>, 2nd Edition</td>
-- <td valign="top"><i>Using Samba</i>, Second Edition is a comprehensive guide to Samba administration. It covers all versions of Samba from 2.0 to 2.2, including selected features from an alpha version of 3.0, as well as the SWAT graphical configuration tool. Updated for Windows 2000, ME, and XP, the book also explores Samba's new role as a primary domain controller and domain member server, its support for the use of Windows NT/2000/XP authentication and filesystem security on the host Unix system, and accessing shared files and printers from Unix clients.</td>
--</tr>
--<tr>
-  <td valign="top"><a href="manpages/index.html">Man pages</a></td>
-  <td valign="top">The Samba man pages in HTML.</td>
- </tr>
meta-oe/recipes-connectivity/samba/samba-3.6.24/bug_604768_upstream_7826_fix-WHATSNEW-link.patch deleted +0 -18
deleted file mode 100644
index c7dd043..0000000
@@ -1,18 +0,0 @@
-Description: Fix WHATSNEW.txt link in HTML documentation summary to fit Debian files organization
-Author: Christian Perrier <[email protected]>
-Bug-Debian: http://bugs.debian.org/604768
-Forwarded: not-needed
-
-Index: samba/docs/htmldocs/index.html
-===================================================================
---- samba.orig/docs/htmldocs/index.html
-+++ samba/docs/htmldocs/index.html
-@@ -27,7 +27,7 @@
-  <td valign="top">The Samba man pages in HTML.</td>
- </tr>
- <tr>
-- <td valign="top"><a href="../../WHATSNEW.txt">WHATSNEW</a></td>
-+ <td valign="top"><a href="../WHATSNEW.txt">WHATSNEW</a></td>
-   <td valign="top">Samba Release Notes.</td>
- </tr>
- </table></body></html>
meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-disable-core_pattern-cross-check.patch deleted +0 -20
deleted file mode 100644
index 2d96189..0000000
@@ -1,20 +0,0 @@
---- samba-3.6.8/source3/configure.orig	2012-10-01 16:28:17.559074996 -0300
-+++ samba-3.6.8/source3/configure	2012-10-01 16:39:07.747700087 -0300
-@@ -16718,7 +16718,7 @@
- #################################################
- # Check to see if core dump directory is defined in linux
- # with /proc/sys/kernel/core_pattern
--
-+if false; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/sys/kernel/core_pattern" >&5
- $as_echo_n "checking for /proc/sys/kernel/core_pattern... " >&6; }
- if ${ac_cv_file__proc_sys_kernel_core_pattern+:} false; then :
-@@ -16739,7 +16739,7 @@
- $as_echo "#define HAVE_SYS_KERNEL_PROC_CORE_PATTERN 1" >>confdefs.h
- 
- fi
--
-+fi
- 
- #############################
- # check if building with gpfs
meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-disable-getaddrinfo-cross.patch deleted +0 -11
deleted file mode 100644
index 84ecd49..0000000
@@ -1,11 +0,0 @@
---- samba-3.6.6/source3/configure.orig	2012-10-01 15:50:15.371574883 -0300
-+++ samba-3.6.6/source3/configure	2012-10-01 15:50:35.563699659 -0300
-@@ -13302,7 +13302,7 @@
- 	# getaddrinfo is broken on some AIX systems
- 	# see bug 5910, use our replacements if we detect
- 	# a broken system.
--	if test "$cross_compiling" = yes; then :
-+	if test "$cross_compiling" = foo; then :
-   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error "cannot run test program while cross compiling
meta-oe/recipes-connectivity/samba/samba-3.6.24/configure-libunwind.patch deleted +0 -82

82 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/documentation.patch deleted +0 -302

302 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/documentation2.patch deleted +0 -314

314 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/dont-build-VFS-examples.patch deleted +0 -31
deleted file mode 100644
index beff7db..0000000
@@ -1,31 +0,0 @@
-Description: Do not build VFS examples
-Author: Christian Perrier <[email protected]>
-Forwarded: not-needed
-
-Index: samba/source3/Makefile.in
-===================================================================
---- samba.orig/source3/Makefile.in
-+++ samba/source3/Makefile.in
-@@ -1616,8 +1616,7 @@
- 
- 
- everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
--	$(EVERYTHING_PROGS) \
--	vfs_examples
-+	$(EVERYTHING_PROGS)
- 
- .SUFFIXES:
- .SUFFIXES: .c .o .lo
-@@ -3552,12 +3551,3 @@
- bin/ndrdump4: $(BINARY_PREREQS)
- 	$(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
- 
--.PHONY: vfs_examples
--
--vfs_examples:
--	( \
--	cd ../examples/VFS && \
--	./configure && \
--	make clean && \
--	make \
--	)
meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch deleted +0 -65

65 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/installswat.sh.patch deleted +0 -23
deleted file mode 100644
index 3f08e49..0000000
@@ -1,23 +0,0 @@
-Description: Do not install the Using Samba book when installing SWAT
- Using Samba is packaged in samba-doc, however upstream also
- installs it in SWAT install dirs
-Author: Christian Perrier <[email protected]>
-Forwarded: not-needed
-
-Index: experimental/source3/script/installswat.sh
-===================================================================
---- experimental.orig/source3/script/installswat.sh
-+++ experimental/source3/script/installswat.sh
-@@ -198,7 +198,11 @@
- 
- # Install/ remove Using Samba book (but only if it is there)
- 
--if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; then
-+# Under Debian we don't actually install the book. The book is part of
-+# the samba-doc package, so we just provide a symlink that points to
-+# where the book is actually installed. The symlink is created in
-+# debian/rules.
-+if /bin/false; then
- 
-     # Create directories
- 
meta-oe/recipes-connectivity/samba/samba-3.6.24/libutil_drop_AI_ADDRCONFIG.patch deleted +0 -54

54 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/only_export_public_symbols.patch deleted +0 -21
deleted file mode 100644
index f4fbd56..0000000
@@ -1,21 +0,0 @@
-Description: only export public symbols
- Force usage of the symbols list when linking shared libraries. Otherwise,
- private symbols get exported in libsmbclient and libwbclient.
-Forwarded: no
-Author: Ivo De Decker <[email protected]>
-Last-Update: 2012-06-27
-
---- samba-3.6.6.orig/source3/Makefile.in
-+++ samba-3.6.6/source3/Makefile.in
-@@ -28,8 +28,9 @@ SHLD=@SHLD@
- LIB_PATH_VAR=@LIB_PATH_VAR@
- 
- ## Dynamic shared libraries build settings
--DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
--DSO_EXPORTS=@DSO_EXPORTS@
-+# force using syms file
-+DSO_EXPORTS=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
-+#DSO_EXPORTS=@DSO_EXPORTS@
- SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
- 
- # The MODULE_EXPORTS variable contains the platform-specific linker flags
meta-oe/recipes-connectivity/samba/samba-3.6.24/pam-examples.patch deleted +0 -17
deleted file mode 100644
index 9b36e14..0000000
@@ -1,17 +0,0 @@
-Description: Fix examples directory location  in pam_smbpass README
-Author: Christian Perrier <[email protected]>
-Forwarded: not-needed
-
-Index: experimental/source3/pam_smbpass/README
-===================================================================
---- experimental.orig/source3/pam_smbpass/README
-+++ experimental/source3/pam_smbpass/README
-@@ -37,7 +37,7 @@
- 	smbconf=<file>	-	specify an alternate path to the smb.conf
- 				file.
- 
--See the samples/ directory for example PAM configurations using this
-+See the examples/ directory for example PAM configurations using this
- module.
- 
- Thanks go to the following people:
meta-oe/recipes-connectivity/samba/samba-3.6.24/shadow_copy2_backport.patch deleted +0 -2101

1,905 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/smbclient-pager.patch deleted +0 -18
deleted file mode 100644
index 429f2ce..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.24/smbtar-bashism.patch deleted +0 -19
deleted file mode 100644
index 27a47cb..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.24/smbtorture-manpage.patch deleted +0 -94

94 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.24/undefined-symbols.patch deleted +0 -24
deleted file mode 100644
index 5babc1e..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.24/usershare.patch deleted +0 -38
deleted file mode 100644
index 3673db7..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.24/waf-as-source.patch deleted +0 -18534

18,534 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-basic.inc deleted +0 -55

55 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba.inc deleted +0 -159

159 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba/0001-PIDL-fix-parsing-linemarkers-in-preprocessor-output.patch deleted +0 -68

68 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba/Managing-Samba.txt deleted +0 -40
deleted file mode 100644
index 01f7592..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba/cifs.patch deleted +0 -10
deleted file mode 100644
index ee6dab5..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba/config-h.patch deleted +0 -12
deleted file mode 100644
index eeb2268..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba/config-lfs.patch deleted +0 -47

47 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba/configure-3.3.0.patch deleted +0 -85

85 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba/mtab.patch deleted +0 -11
deleted file mode 100644
index 2ee8ba0..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba/quota.patch deleted +0 -11
deleted file mode 100644
index 6f42ff8..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba/tdbheaderfix.patch deleted +0 -14
deleted file mode 100644
index e37c9b0..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba_3.6.24.bb deleted +0 -67

67 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.0.1

Part of the diff is not shown here. View the raw message.

#3 lore raw
In reply to Koen Kooi
Quoted 3 lines · Koen Kooi

Samba4 uses ans1_compile and compile_et to build itself, so we need a -native version of it. Heimdal is the external upstream variant of the tools samba bundles.

Can you please compare with implementation from Bian:
http://lists.openembedded.org/pipermail/openembedded-devel/2015-August/102571.html

and consolidate into one patchsets which will work for both?

Thanks,

Quoted 108 lines
---
 ...dm5-fix-race-in-Makefile-with-kadm5_err.h.patch | 34 ++++++++++++++++
 .../recipes-connectivity/samba/heimdal_1.6rc2.bb   | 45 ++++++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb
meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch new file +34 -0
new file mode 100644
index 0000000..bab933c
@@ -0,0 +1,34 @@
+From 18fe7d300f133c2b9eb93bb4bd81e4644979a74b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <[email protected]>
+Date: Tue, 1 Jul 2014 13:13:43 -0600
+Subject: [PATCH] kadm5: fix race in Makefile with kadm5_err.h
+
+When running make with -j4, occasionally kadm5 fails due to a missing
+header file kadm5_err.h. Fix the race condition.
+
+Reported at https://bugzilla.redhat.com/1115164
+
+Reviewed-by: Ken Dreyer <[email protected]>
+
+Upstream-status: Backport [upstream commit 6affa4cceceaa1369dd895f8acdd7a883ee65674]
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ lib/kadm5/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/kadm5/Makefile.am b/lib/kadm5/Makefile.am
+index f8be3b1..1b399b1 100644
+--- a/lib/kadm5/Makefile.am
++++ b/lib/kadm5/Makefile.am
+@@ -155,6 +155,7 @@ iprop-commands.c iprop-commands.h: iprop-commands.in
+ 	$(SLC) $(srcdir)/iprop-commands.in
+ 
+ $(libkadm5srv_la_OBJECTS): kadm5_err.h
++$(libkadm5clnt_la_OBJECTS): kadm5_err.h
+ $(iprop_log_OBJECTS): iprop-commands.h
+ 
+ client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
+-- 
+2.4.5
+
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +45 -0
new file mode 100644
index 0000000..7245d14
@@ -0,0 +1,45 @@
+SUMMARY = "The Heimdal Kerberos 5, PKIX, CMS, GSS-API, SPNEGO, NTLM, Digest-MD5 and, SASL implementation."
+
+DEPENDS = "e2fsprogs ncurses"
+
+LICENSE = "BSD-3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d2c6f8cfe82d4fdd74355866f0c14d3f"
+
+PV = "1.5+1.6rc2"
+
+SRC_URI = "http://www.h5l.org/dist/src/heimdal-1.6rc2.tar.gz \
+           file://0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch \
+          "
+S = "${WORKDIR}/heimdal-1.6rc2"
+SRC_URI[md5sum] = "152ca82660864acf7f712ae1a57e6795"
+SRC_URI[sha256sum] = "8fe19e0f12ff0d0c2f20a6cf56727deaabd89db9c197288022fb489e103b730d"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " \
+	--disable-shared \
+	--enable-static \
+	--without-openldap \
+	--without-capng \
+	--without-sqlite3 \
+	--without-libintl \
+	--without-openssl \
+	--without-berkeley-db \
+	--without-readline \
+	--without-libedit \
+	--without-hesiod \
+	--without-x \
+	--disable-heimdal-documentation \
+       "
+
+# Even with the makefile patch parallel make fails 8 out of 10 times with -j8 
+PARALLEL_MAKE = ""
+
+# Put both compile tools together in $PATH and libexecdir in order to build samba4
+do_install_append() {
+    ln -sf ${libexecdir}/heimdal/asn1_compile ${D}${bindir}/
+    ln -sf ${bindir}/compile_et ${D}${libexecdir}/heimdal/
+}
+
+BBCLASSEXTEND = "native"
+
Signature · 7 lines
2.0.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#4 lore raw
Quoted 10 lines

Op 18 aug. 2015, om 12:35 heeft Martin Jansa <[email protected]> het volgende geschreven:

Quoted 3 lines · Koen Kooi

Samba4 uses ans1_compile and compile_et to build itself, so we need a -native version of it. Heimdal is the external upstream variant of the tools samba bundles.

Can you please compare with implementation from Bian:
http://lists.openembedded.org/pipermail/openembedded-devel/2015-August/102571.html

Bians version has some shiny features, like qemu support, but has some other issues, style violations being the most obvious.

Quoted 1 line

and consolidate into one patchsets which will work for both?

I’ll take Bians set and fix up the support recipes and try to consolidate the samba recipes. After I get back from vacation, so that will take a few weeks.

regards,

Koen

Quoted 114 lines

Thanks,

Quoted 108 lines

---
...dm5-fix-race-in-Makefile-with-kadm5_err.h.patch | 34 ++++++++++++++++
.../recipes-connectivity/samba/heimdal_1.6rc2.bb | 45 ++++++++++++++++++++++

2 files changed, 79 insertions(+)

create mode 100644 meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch create mode 100644 meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb

meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch new file +34 -0
new file mode 100644
index 0000000..bab933c
@@ -0,0 +1,34 @@
+From 18fe7d300f133c2b9eb93bb4bd81e4644979a74b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <[email protected]>
+Date: Tue, 1 Jul 2014 13:13:43 -0600
+Subject: [PATCH] kadm5: fix race in Makefile with kadm5_err.h
+
+When running make with -j4, occasionally kadm5 fails due to a missing
+header file kadm5_err.h. Fix the race condition.
+
+Reported at https://bugzilla.redhat.com/1115164
+
+Reviewed-by: Ken Dreyer <[email protected]>
+
+Upstream-status: Backport [upstream commit 6affa4cceceaa1369dd895f8acdd7a883ee65674]
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ lib/kadm5/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/kadm5/Makefile.am b/lib/kadm5/Makefile.am
+index f8be3b1..1b399b1 100644
+--- a/lib/kadm5/Makefile.am
++++ b/lib/kadm5/Makefile.am
+@@ -155,6 +155,7 @@ iprop-commands.c iprop-commands.h: iprop-commands.in
+ 	$(SLC) $(srcdir)/iprop-commands.in
+ 
+ $(libkadm5srv_la_OBJECTS): kadm5_err.h
++$(libkadm5clnt_la_OBJECTS): kadm5_err.h
+ $(iprop_log_OBJECTS): iprop-commands.h
+ 
+ client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
+-- 
+2.4.5
+
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +45 -0
new file mode 100644
index 0000000..7245d14
@@ -0,0 +1,45 @@
+SUMMARY = "The Heimdal Kerberos 5, PKIX, CMS, GSS-API, SPNEGO, NTLM, Digest-MD5 and, SASL implementation."
+
+DEPENDS = "e2fsprogs ncurses"
+
+LICENSE = "BSD-3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d2c6f8cfe82d4fdd74355866f0c14d3f"
+
+PV = "1.5+1.6rc2"
+
+SRC_URI = "http://www.h5l.org/dist/src/heimdal-1.6rc2.tar.gz \
+           file://0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch \
+          "
+S = "${WORKDIR}/heimdal-1.6rc2"
+SRC_URI[md5sum] = "152ca82660864acf7f712ae1a57e6795"
+SRC_URI[sha256sum] = "8fe19e0f12ff0d0c2f20a6cf56727deaabd89db9c197288022fb489e103b730d"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " \
+	--disable-shared \
+	--enable-static \
+	--without-openldap \
+	--without-capng \
+	--without-sqlite3 \
+	--without-libintl \
+	--without-openssl \
+	--without-berkeley-db \
+	--without-readline \
+	--without-libedit \
+	--without-hesiod \
+	--without-x \
+	--disable-heimdal-documentation \
+       "
+
+# Even with the makefile patch parallel make fails 8 out of 10 times with -j8 
+PARALLEL_MAKE = ""
+
+# Put both compile tools together in $PATH and libexecdir in order to build samba4
+do_install_append() {
+    ln -sf ${libexecdir}/heimdal/asn1_compile ${D}${bindir}/
+    ln -sf ${bindir}/compile_et ${D}${libexecdir}/heimdal/
+}
+
+BBCLASSEXTEND = "native"
+
Signature · 7 lines
2.0.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw
Quoted 19 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Tuesday, August 18, 2015 6:51 PM
To: Martin Jansa
Cc: [email protected]
Subject: Re: [oe] [meta-oe][RFC][PATCH 1/3] heimdal 1.6rc2: add buildtool for samba4

Quoted 1 line

Op 18 aug. 2015, om 12:35 heeft Martin Jansa <[email protected]> het

volgende geschreven:

Quoted 6 lines · Koen Kooi
Quoted 3 lines

Samba4 uses ans1_compile and compile_et to build itself, so we need a -native version of it. Heimdal is the external upstream variant of the tools samba bundles.

Quoted 7 lines
Quoted 3 lines

Can you please compare with implementation from Bian:
http://lists.openembedded.org/pipermail/openembedded-devel/2015-August
/102571.html

Bians version has some shiny features, like qemu support, but has some other issues, style violations being the most obvious.

Thanks for your comments, I will try to fix them after you told me what they are.

Quoted 5 lines
Quoted 1 line

and consolidate into one patchsets which will work for both?

I’ll take Bians set and fix up the support recipes and try to consolidate the samba recipes. After I get back from vacation, so that will take a few weeks.

Hope to work with you together to consolidate the samba recipe. And enjoy your vacation! ^_^

Thanks
Bian

Quoted 139 lines

regards,

Koen

Quoted 8 lines

Thanks,

Quoted 5 lines

---
...dm5-fix-race-in-Makefile-with-kadm5_err.h.patch | 34 ++++++++++++++++
.../recipes-connectivity/samba/heimdal_1.6rc2.bb | 45

++++++++++++++++++++++

Quoted 54 lines
Quoted 54 lines
2 files changed, 79 insertions(+)

create mode 100644 meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Mak efile-with-kadm5_err.h.patch create mode 100644 meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb

diff --git a/meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-M akefile-with-kadm5_err.h.patch b/meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-M akefile-with-kadm5_err.h.patch
new file mode 100644
index 0000000..bab933c

meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race- new file +38 -0
+++ in-Makefile-with-kadm5_err.h.patch
@@ -0,0 +1,34 @@
+From 18fe7d300f133c2b9eb93bb4bd81e4644979a74b Mon Sep 17 00:00:00
+2001
+From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <[email protected]>
+Date: Tue, 1 Jul 2014 13:13:43 -0600
+Subject: [PATCH] kadm5: fix race in Makefile with kadm5_err.h
+
+When running make with -j4, occasionally kadm5 fails due to a
+missing header file kadm5_err.h. Fix the race condition.
+
+Reported at https://bugzilla.redhat.com/1115164
+
+Reviewed-by: Ken Dreyer <[email protected]>
+
+Upstream-status: Backport [upstream commit
+6affa4cceceaa1369dd895f8acdd7a883ee65674]
+
+Signed-off-by: Thomas Petazzoni
+<[email protected]>
+---
+ lib/kadm5/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/kadm5/Makefile.am b/lib/kadm5/Makefile.am index
+f8be3b1..1b399b1 100644
+--- a/lib/kadm5/Makefile.am
++++ b/lib/kadm5/Makefile.am
+@@ -155,6 +155,7 @@ iprop-commands.c iprop-commands.h: iprop-commands.in
+ 	$(SLC) $(srcdir)/iprop-commands.in
+
+ $(libkadm5srv_la_OBJECTS): kadm5_err.h
++$(libkadm5clnt_la_OBJECTS): kadm5_err.h
+ $(iprop_log_OBJECTS): iprop-commands.h
+
+ client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
+--
+2.4.5
+
Quoted 8 lines

meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb line 1

Quoted 8 lines
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +1 -0
new file mode 100644
index 0000000..7245d14
@@ -0,0 +1,45 @@
+SUMMARY = "The Heimdal Kerberos 5, PKIX, CMS, GSS-API, SPNEGO, NTLM,

Digest-MD5 and, SASL implementation."

Quoted 10 lines

meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb line 16

Quoted 10 lines
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +10 -0
+
+DEPENDS = "e2fsprogs ncurses"
+
+LICENSE = "BSD-3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d2c6f8cfe82d4fdd74355866f0c14d3f"
+
+PV = "1.5+1.6rc2"
+
+SRC_URI = "http://www.h5l.org/dist/src/heimdal-1.6rc2.tar.gz \
+

file://0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch \

Quoted 4 lines

meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb

Quoted 4 lines
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +4 -0
+          "
+S = "${WORKDIR}/heimdal-1.6rc2"
+SRC_URI[md5sum] = "152ca82660864acf7f712ae1a57e6795"
+SRC_URI[sha256sum] =

"8fe19e0f12ff0d0c2f20a6cf56727deaabd89db9c197288022fb489e103b730d"

Quoted 33 lines
Quoted 33 lines
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +30 -1
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " \
+	--disable-shared \
+	--enable-static \
+	--without-openldap \
+	--without-capng \
+	--without-sqlite3 \
+	--without-libintl \
+	--without-openssl \
+	--without-berkeley-db \
+	--without-readline \
+	--without-libedit \
+	--without-hesiod \
+	--without-x \
+	--disable-heimdal-documentation \
+       "
+
+# Even with the makefile patch parallel make fails 8 out of 10 times
+with -j8 PARALLEL_MAKE = ""
+
+# Put both compile tools together in $PATH and libexecdir in order
+to build samba4
+do_install_append() {
+    ln -sf ${libexecdir}/heimdal/asn1_compile ${D}${bindir}/
+    ln -sf ${bindir}/compile_et ${D}${libexecdir}/heimdal/ }
+
+BBCLASSEXTEND = "native"
+
--

2.0.1

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#6 lore raw
In reply to Martin Jansa
Quoted 4 lines

Op 18 aug. 2015, om 12:35 heeft Martin Jansa <[email protected]> het volgende geschreven:

On Sun, Aug 09, 2015 at 10:54:04AM +0200, Koen Kooi wrote:

Quoted 8 lines
Quoted 3 lines

Samba4 uses ans1_compile and compile_et to build itself, so we need a -native version of it. Heimdal is the external upstream variant of the tools samba bundles.

Can you please compare with implementation from Bian:
http://lists.openembedded.org/pipermail/openembedded-devel/2015-August/102571.html

and consolidate into one patchsets which will work for both?

I’ve sent my WIP patchset to the list just now. It’s not working reliably, but it’s close :)

Quoted 114 lines

Thanks,

Quoted 108 lines

---
...dm5-fix-race-in-Makefile-with-kadm5_err.h.patch | 34 ++++++++++++++++
.../recipes-connectivity/samba/heimdal_1.6rc2.bb | 45 ++++++++++++++++++++++

2 files changed, 79 insertions(+)

create mode 100644 meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch create mode 100644 meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb

meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch new file +34 -0
new file mode 100644
index 0000000..bab933c
@@ -0,0 +1,34 @@
+From 18fe7d300f133c2b9eb93bb4bd81e4644979a74b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <[email protected]>
+Date: Tue, 1 Jul 2014 13:13:43 -0600
+Subject: [PATCH] kadm5: fix race in Makefile with kadm5_err.h
+
+When running make with -j4, occasionally kadm5 fails due to a missing
+header file kadm5_err.h. Fix the race condition.
+
+Reported at https://bugzilla.redhat.com/1115164
+
+Reviewed-by: Ken Dreyer <[email protected]>
+
+Upstream-status: Backport [upstream commit 6affa4cceceaa1369dd895f8acdd7a883ee65674]
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ lib/kadm5/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/kadm5/Makefile.am b/lib/kadm5/Makefile.am
+index f8be3b1..1b399b1 100644
+--- a/lib/kadm5/Makefile.am
++++ b/lib/kadm5/Makefile.am
+@@ -155,6 +155,7 @@ iprop-commands.c iprop-commands.h: iprop-commands.in
+ 	$(SLC) $(srcdir)/iprop-commands.in
+ 
+ $(libkadm5srv_la_OBJECTS): kadm5_err.h
++$(libkadm5clnt_la_OBJECTS): kadm5_err.h
+ $(iprop_log_OBJECTS): iprop-commands.h
+ 
+ client_glue.lo server_glue.lo: $(srcdir)/common_glue.c
+-- 
+2.4.5
+
meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb new file +45 -0
new file mode 100644
index 0000000..7245d14
@@ -0,0 +1,45 @@
+SUMMARY = "The Heimdal Kerberos 5, PKIX, CMS, GSS-API, SPNEGO, NTLM, Digest-MD5 and, SASL implementation."
+
+DEPENDS = "e2fsprogs ncurses"
+
+LICENSE = "BSD-3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d2c6f8cfe82d4fdd74355866f0c14d3f"
+
+PV = "1.5+1.6rc2"
+
+SRC_URI = "http://www.h5l.org/dist/src/heimdal-1.6rc2.tar.gz \
+           file://0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch \
+          "
+S = "${WORKDIR}/heimdal-1.6rc2"
+SRC_URI[md5sum] = "152ca82660864acf7f712ae1a57e6795"
+SRC_URI[sha256sum] = "8fe19e0f12ff0d0c2f20a6cf56727deaabd89db9c197288022fb489e103b730d"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " \
+	--disable-shared \
+	--enable-static \
+	--without-openldap \
+	--without-capng \
+	--without-sqlite3 \
+	--without-libintl \
+	--without-openssl \
+	--without-berkeley-db \
+	--without-readline \
+	--without-libedit \
+	--without-hesiod \
+	--without-x \
+	--disable-heimdal-documentation \
+       "
+
+# Even with the makefile patch parallel make fails 8 out of 10 times with -j8 
+PARALLEL_MAKE = ""
+
+# Put both compile tools together in $PATH and libexecdir in order to build samba4
+do_install_append() {
+    ln -sf ${libexecdir}/heimdal/asn1_compile ${D}${bindir}/
+    ln -sf ${bindir}/compile_et ${D}${libexecdir}/heimdal/
+}
+
+BBCLASSEXTEND = "native"
+
Signature · 7 lines
2.0.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]