Mail archive
alpine-aports

Re: [alpine-aports] [PATCH v2] testing/opensmtpd: new aport

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Tue, 15 Sep 2015 15:47:52 +0200

On Thu, 10 Sep 2015 21:01:14 +0000
Jonathan Curran <jonathan_at_curran.in> wrote:

> This aport provides the portable version of OpenSMTPD patched to work
> with musl.
>
> Parts of the patch will be submitted upstream soon.
>
> https://opensmtpd.org
> ---
> Changes v1 -> v2:
> - updated smtpd.initd


Thanks!

checking compiler and flags for sanity... no
configure: error: *** compiler cannot create working executables, check
config.log ***

from config.log:


configure:13867: gcc -o conftest -Os -fomit-frame-pointer -fPIC -DPIC -Wall -Wp
ointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-m
emaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-
memset -Os -fomit-frame-pointer -Wl,--as-needed conftest.c -lfts >&5
conftest.c: In function 'main':
conftest.c:46:2: warning: implicit declaration of function 'exit' [-Wimplicit-fu
nction-declaration]
  exit(0);
  ^
conftest.c:46:2: warning: incompatible implicit declaration of built-in function 'exit'
conftest.c:46:2: note: include '<stdlib.h>' or provide a declaration of 'exit'
/usr/lib/gcc/x86_64-alpine-linux-musl/5.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lfts
collect2: error: ld returned 1 exit status
configure:13867: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "opensmtpd"
| #define PACKAGE_TARNAME "opensmtpd"
| #define PACKAGE_VERSION "portable"
| #define PACKAGE_STRING "opensmtpd portable"
| #define PACKAGE_BUGREPORT "bugs_at_opensmtpd.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define PACKAGE "opensmtpd"
| #define VERSION "portable"
| #define HAVE_ATTRIBUTE__NONNULL__ 1
| #define HAVE_CRYPT_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_SHADOW_H 1
| #define HAVE_SYS_DIR_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_STATFS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define SPT_TYPE SPT_REUSEARGV
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| exit(0);
| ;
| return 0;
| }
configure:13872: result: no
configure:13874: error: *** compiler cannot create working executables, check config.log ***



After adding fts-dev to makedepeneds it fails on missing yacc:

make[3]: Entering directory '/home/ncopa/aports/testing/opensmtpd/src/opensmtpd-5.7.1p1/mk/smtpd'
/bin/bash ../../ylwrap ../../smtpd/parse.y y.tab.c ../../smtpd/parse.c y.tab.h `echo ../../smtpd/parse.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output ../../smtpd/parse.output -- yacc
../../ylwrap: line 175: yacc: command not found

I applied you patch and added the following fix:

diff --git a/testing/opensmtpd/APKBUILD b/testing/opensmtpd/APKBUILD
index 555e043..a250d60 100644
--- a/testing/opensmtpd/APKBUILD
+++ b/testing/opensmtpd/APKBUILD
_at_@ -9,7 +9,8 @@ arch="all"
 license="ISC"
 depends=""
 depends_dev=""
-makedepends="automake autoconf libtool mdocml db-dev libasr libevent-dev openssl-dev"
+makedepends="automake autoconf libtool mdocml db-dev libasr-dev libevent-dev
+ fts-dev openssl-dev bison flex-dev"
 install="$pkgname.pre-install $pkgname.post-install"
 subpackages="$pkgname-doc"
 source="https://www.opensmtpd.org/archives/opensmtpd-${pkgver}.tar.gz


thanks!

-nc


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Sep 15 2015 - 15:47:52 GMT