From 28c8838d9a7be50f580bc6418d1258f81e7125a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 6 Dec 2020 10:41:29 +0100 Subject: [PATCH] bin86: fix build for i686-musl; distfile; xlintify --- srcpkgs/bin86/patches/musl.patch | 15 +++++++++++++++ srcpkgs/bin86/template | 12 ++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/bin86/patches/musl.patch diff --git a/srcpkgs/bin86/patches/musl.patch b/srcpkgs/bin86/patches/musl.patch new file mode 100644 index 00000000000..49835461cc6 --- /dev/null +++ b/srcpkgs/bin86/patches/musl.patch @@ -0,0 +1,15 @@ +--- ld/bindef.h 2013-10-29 16:44:51.000000000 +0100 ++++ ld/bindef.h 2020-12-06 10:32:54.142813154 +0100 +@@ -13,8 +13,12 @@ + #ifdef DETECTAOUT + /* Ok, I'm just gonna make it simple ... override this if you like. */ + #ifndef A_OUT_INCL ++#ifndef __GLIBC__ ++#define A_OUT_INCL ++#else + #define A_OUT_INCL + #endif ++#endif + + #include A_OUT_INCL + diff --git a/srcpkgs/bin86/template b/srcpkgs/bin86/template index 8d711210193..dd359ba7a53 100644 --- a/srcpkgs/bin86/template +++ b/srcpkgs/bin86/template @@ -2,13 +2,13 @@ pkgname=bin86 version=0.16.21 revision=4 -short_desc="A complete 8086 assembler and loader" -maintainer="Orphaned " -homepage="http://v3.sk/~lkundrak/dev86/" -license="GPL-2" -distfiles="http://v3.sk/~lkundrak/dev86/bin86-${version}.tar.gz" -checksum=021e37cde3a20632c4c9000993cb4aa9f58cb82b1d3c26b9aeb62d6566925738 archs="i686* x86_64*" +short_desc="Complete 8086 assembler and loader" +maintainer="Orphaned " +license="GPL-2.0-only" +homepage="https://github.com/lkundrak/dev86" +distfiles="https://github.com/lkundrak/dev86/archive/v${version}.tar.gz" +checksum=49c7ee9102d45c2eef072bfb8a49ba3821c9fe3ef31ccd3290f658b667b579a8 do_build() { make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" PREFIX=/usr