Skip to contentSkip to conversation

cyrus-sasl: use autotools-brokensep to build in sources

PATCH In review Hongxu Jia 2 participants 6 messages Sep 12, 2018

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

PATCH 1/1 cyrus-sasl: use autotools-brokensep to build in sources

The makefile of cyrus-sasl does not support build out of tree very well, while using `--enable-ldapdb', there is a compile failure [snip]
| powerpc-wrs-linux-gcc [snip] -I../common |../../git/saslauthd/lak.c:58:10: fatal error: crypto-compat.h:
No such file or directory
[snip]

The crypto-compat.h locates in git/common/, it should be `-I../../git/common'

---
 meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb +1 -1
index a03712c..4c26989 100644
@@ -20,7 +20,7 @@ UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives"
 
 S = "${WORKDIR}/git"
 
-inherit autotools pkgconfig useradd systemd
+inherit autotools-brokensep pkgconfig useradd systemd
 
 EXTRA_OECONF += "--with-dblib=berkeley \
                  --with-plugindir='${libdir}/sasl2' \
Signature · 1 line
2.10.2
author
#1 lore raw

Sorry for missing prefix `meta-networking' in subject

//Hongxu

Quoted 29 lines · Hongxu Jia

The makefile of cyrus-sasl does not support build out of tree very well, while using `--enable-ldapdb', there is a compile failure [snip]
| powerpc-wrs-linux-gcc [snip] -I../common |../../git/saslauthd/lak.c:58:10: fatal error: crypto-compat.h:
No such file or directory
[snip]

The crypto-compat.h locates in git/common/, it should be `-I../../git/common'

---
  meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb +1 -1
index a03712c..4c26989 100644
@@ -20,7 +20,7 @@ UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives"
 
  S = "${WORKDIR}/git"
 
-inherit autotools pkgconfig useradd systemd
+inherit autotools-brokensep pkgconfig useradd systemd
 
  EXTRA_OECONF += "--with-dblib=berkeley \
                   --with-plugindir='${libdir}/sasl2' \
#2 lore raw
Quoted 16 lines · Hongxu Jia

Sorry for missing prefix `meta-networking' in subject

//Hongxu

Quoted 10 lines · Hongxu Jia

The makefile of cyrus-sasl does not support build out of tree very well, while using `--enable-ldapdb', there is a compile failure [snip]
| powerpc-wrs-linux-gcc [snip] -I../common |../../git/saslauthd/lak.c:58:10: fatal error: crypto-compat.h:
No such file or directory
[snip]

The crypto-compat.h locates in git/common/, it should be `-I../../git/common'

this should b fixable in source Makefile.am to use $(srcdir) in that -I spec it might be either missing or ignoring the fact that S can be different then B

Quoted 21 lines
Quoted 19 lines
---
  meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb +1 -1
index a03712c..4c26989 100644
@@ -20,7 +20,7 @@ UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives"
 
  S = "${WORKDIR}/git"
 
-inherit autotools pkgconfig useradd systemd
+inherit autotools-brokensep pkgconfig useradd systemd
 
  EXTRA_OECONF += "--with-dblib=berkeley \
                   --with-plugindir='${libdir}/sasl2' \
author
#3 lore raw
Quoted 6 lines · Khem Raj
Quoted 2 lines
Quoted 2 lines

The crypto-compat.h locates in git/common/, it should be `-I../../git/common'

this should b fixable in source Makefile.am to use $(srcdir) in that -I spec it might be either missing or ignoring the fact that S can be different then B

Yes, I will try send the fix on Makefile.am to upstream and wait their reply

This patch is a quick fix to OE

//Hongxu

#4 lore raw
Quoted 12 lines · Hongxu Jia

On 2018年09月12日 22:12, Khem Raj wrote:

The crypto-compat.h locates in git/common/, it should be `-I../../git/common'

this should b fixable in source Makefile.am to use $(srcdir) in that -I spec it might be either missing or ignoring the fact that S can be different then B

Yes, I will try send the fix on Makefile.am to upstream and wait their reply

thanks

Quoted 2 lines

This patch is a quick fix to OE

I will wait for real fix

Quoted 1 line

//Hongxu

author
#5 lore raw

PATCH v2 1/1 cyrus-sasl: fix build out of source tree failed while configuring with `--enable-ldapdb'

In reply to Hongxu Jia

[snip]
| powerpc-wrs-linux-gcc [snip] -I../common |../../git/saslauthd/lak.c:58:10: fatal error: crypto-compat.h:
No such file or directory
[snip]

The crypto-compat.h locates in git/common/, it should be |
`-I../../git/common'

---
 ...uthd-to-be-built-outside-of-source-tree-w.patch | 41 ++++++++++++++++++++++
 .../cyrus-sasl/cyrus-sasl_2.1.27.bb                |  1 +
 2 files changed, 42 insertions(+)
 create mode 100644 meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/0001-Allow-saslauthd-to-be-built-outside-of-source-tree-w.patch
meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/0001-Allow-saslauthd-to-be-built-outside-of-source-tree-w.patch new file +41 -0
new file mode 100644
index 0000000..c89822c
@@ -0,0 +1,41 @@
+From 6515f3e7656d97d40a6a1cf4eb3ada193a698309 Mon Sep 17 00:00:00 2001
+From: Hongxu Jia <[email protected]>
+Date: Wed, 12 Sep 2018 23:18:12 +0800
+Subject: [PATCH] Allow saslauthd to be built outside of source tree while
+ configuring with `--enable-ldapdb'
+
+[snip]
+| powerpc-wrs-linux-gcc [snip] -I../common
+|../../git/saslauthd/lak.c:58:10: fatal error: crypto-compat.h:
+No such file or directory
+[snip]
+
+The crypto-compat.h locates in git/common/, it should be                                                                                                                           |
+`-I../../git/common'
+
+Remove useless `-I$(top_srcdir)/../include' which was incorrectly
+added by commit `faae590 cleanup misc INCLUDES for different build paths'
+
+Upstream-Status: Submitted [https://github.com/cyrusimap/cyrus-sasl]
+
+Signed-off-by: Hongxu Jia <[email protected]>
+---
+ saslauthd/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/saslauthd/Makefile.am b/saslauthd/Makefile.am
+index d7244be..864b29b 100644
+--- a/saslauthd/Makefile.am
++++ b/saslauthd/Makefile.am
+@@ -34,7 +34,7 @@ saslcache_SOURCES = saslcache.c
+ 
+ EXTRA_DIST	= saslauthd.8 saslauthd.mdoc include \
+ 		  getnameinfo.c getaddrinfo.c LDAP_SASLAUTHD
+-AM_CPPFLAGS	= -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/../include -I$(top_builddir)/common
++AM_CPPFLAGS	= -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir)/common -I$(top_srcdir)/common
+ DEFS            = @DEFS@ -DSASLAUTHD_CONF_FILE_DEFAULT=\"@sysconfdir@/saslauthd.conf\" -I. -I$(srcdir) -I..
+ 
+ 
+-- 
+2.7.4
+
meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl_2.1.27.bb +1 -0
index a03712c..573f822 100644
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/cyrusimap/cyrus-sasl;protocol=https \
            file://saslauthd.service \
            file://saslauthd.conf \
            file://0004-configure.ac-fix-condition-for-suppliment-snprintf-i.patch \
+           file://0001-Allow-saslauthd-to-be-built-outside-of-source-tree-w.patch \
            "
 
 UPSTREAM_CHECK_URI = "https://github.com/cyrusimap/cyrus-sasl/archives"
Signature · 1 line
2.7.4