From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Koen Kooi <koen@dominion.thruhere.net>
Subject: Re: [meta-oe][RFC][PATCH 1/3] heimdal 1.6rc2: add buildtool for samba4
Date: Tue, 18 Aug 2015 12:35:19 +0200 [thread overview]
Message-ID: <20150818103519.GA13732@jama> (raw)
In-Reply-To: <1439110446-22189-1-git-send-email-koen@dominion.thruhere.net>
[-- Attachment #1: Type: text/plain, Size: 4585 bytes --]
On Sun, Aug 09, 2015 at 10:54:04AM +0200, Koen Kooi wrote:
> 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,
>
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
> ...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
>
> diff --git a/meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch b/meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-in-Makefile-with-kadm5_err.h.patch
> new file mode 100644
> index 0000000..bab933c
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/samba/heimdal/0002-kadm5-fix-race-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?= <jcajka@redhat.com>
> +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 <ktdreyer@ktdreyer.com>
> +
> +Upstream-status: Backport [upstream commit 6affa4cceceaa1369dd895f8acdd7a883ee65674]
> +
> +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> +---
> + 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
> +
> diff --git a/meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb b/meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb
> new file mode 100644
> index 0000000..7245d14
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/samba/heimdal_1.6rc2.bb
> @@ -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"
> +
> --
> 2.0.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2015-08-18 10:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 8:54 [meta-oe][RFC][PATCH 1/3] heimdal 1.6rc2: add buildtool for samba4 Koen Kooi
2015-08-09 8:54 ` [meta-oe][RFC][PATCH 2/3] samba: add 4.2.3 Koen Kooi
2015-08-09 8:54 ` [meta-oe][RFC][PATCH 3/3] samba: remove samba 3 Koen Kooi
2015-08-18 10:35 ` Martin Jansa [this message]
2015-08-18 10:51 ` [meta-oe][RFC][PATCH 1/3] heimdal 1.6rc2: add buildtool for samba4 Koen Kooi
2015-08-19 3:01 ` Bian, Naimeng
2015-08-20 16:00 ` Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150818103519.GA13732@jama \
--to=martin.jansa@gmail.com \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.