X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 61B62DC1449; Tue, 15 Sep 2015 13:47:56 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id BC96CDC0114; Tue, 15 Sep 2015 13:47:55 +0000 (UTC) Date: Tue, 15 Sep 2015 15:47:52 +0200 From: Natanael Copa To: Jonathan Curran Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH v2] testing/opensmtpd: new aport Message-ID: <20150915154752.7eeb92f0@ncopa-desktop.alpinelinux.org> In-Reply-To: <1441918874-31745-1-git-send-email-jonathan@curran.in> References: <1441830663-23827-1-git-send-email-jonathan@curran.in> <1441918874-31745-1-git-send-email-jonathan@curran.in> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Thu, 10 Sep 2015 21:01:14 +0000 Jonathan Curran 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 '' 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@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 | 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 @@ -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@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---