[alpine-devel] [PATCH] unmaintained/mailx-support: build fix
Export this patch
lockspool failed to build because it needed sys/file.h.
---
unmaintained/mailx-support/APKBUILD | 20 +++++++++++++++++ ---
unmaintained/mailx-support/include-sys-file.patch | 10 ++++++++++
2 files changed, 27 insertions(+), 3 deletions(-)
create mode 100644 unmaintained/mailx-support/include-sys-file.patch
I think we go for helix mailx as you proposed in later email.
Thanks!
-nc
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
diff --git a/unmaintained/mailx-support/APKBUILD b/unmaintained/mailx-support/APKBUILD
index 503f203..fdeb19b 100644
--- a/unmaintained/mailx-support/APKBUILD
+++ b/unmaintained/mailx-support/APKBUILD
@@ -5,25 +5,39 @@ pkgver=20060102
pkgrel=0
pkgdesc="Provides lockspool utility"
url="http://www.openbsd.org"
+ arch="all"
license="BSD"
depends=""
makedepends=""
install=
subpackages="$pkgname-doc"
source="http://gentoo.osuosl.org/distfiles/$pkgname-$pkgver.tar.bz2
- mailx-support-ldflags.patch"
+ mailx-support-ldflags.patch
+ include-sys-file.patch"
- build() {
+ prepare() {
cd "$srcdir"/$pkgname-$pkgver
for i in ../*.patch; do
msg "Appling $i..."
patch -p1 < $i || return 1
done
+ }
+ build() {
make || return 1
+ }
+
+ package() {
install -m755 -D "$srcdir"/"$pkgname-$pkgver"/lockspool "$pkgdir"/usr/libexec/lockspool
install -m644 -D "$srcdir"/"$pkgname-$pkgver"/lockspool.1 "$pkgdir"-doc/usr/share/man/man1/lockspool.1
}
md5sums="3f671fe4368a5b536e8384980a9a5c80 mailx-support-20060102.tar.bz2
- 32a98aee973db8860f1f53a9297b8dd9 mailx-support-ldflags.patch"
+ 32a98aee973db8860f1f53a9297b8dd9 mailx-support-ldflags.patch
+ 47de91b42ab72a38ab0c775b32eebd7c include-sys-file.patch"
+ sha256sums="e962d12116a99ab72cc04304cc0f9b86dce2ab84c5028599e052c21930fc4d62 mailx-support-20060102.tar.bz2
+ 543147f90765b6466ec2669354a4b1816da193f029f5120a409ea0e1a16a70ee mailx-support-ldflags.patch
+ 437ee9b39ef9b916258b8ee9b76cc332aa60bdf818f5f362d8eae85b8935057d include-sys-file.patch"
+ sha512sums="a4bd84253fcb5a97119e75290dfda01004115c3eb5898bb792c75f7b01c7e48fa1189b9ec4ed195c404196893af8b9390062f2f258da68889b464b53aa0ecbc2 mailx-support-20060102.tar.bz2
+ 7272c36ceb7ba971522cdeabf880bff22d6a02abdb1413e8cfdcc68fa1532cb1919442f031736ad16f6597bd9c0e362704a8d9fb58d15d47ef49686d69a06b5a mailx-support-ldflags.patch
+ 2e417f7d59106073f490f7d6ae539552e7698fbb7a0ea1147a1061321fb5030bb59d356228c980f5e6e8e8e29cb1a75614703c9d6d9b6b61885ba5ed32b6c34e include-sys-file.patch"
diff --git a/unmaintained/mailx-support/include-sys-file.patch b/unmaintained/mailx-support/include-sys-file.patch
new file mode 100644
index 0000000..069e118
--- /dev/null
+++ b/unmaintained/mailx-support/include-sys-file.patch
@@ -0,0 +1,10 @@
+ diff --git a/open_with_exlock.c b/open_with_exlock.c
+ index b844d20..89aa4f3 100644
+ --- a/open_with_exlock.c
+ +++ b/open_with_exlock.c
+ @@ -1,4 +1,5 @@
+ #include <fcntl.h>
+ +#include <sys/file.h>
+
+ int open_with_exlock(const char *path, int flags, mode_t mode)
+ {
--
2.1.0
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---