summaryrefslogblamecommitdiff
path: root/system/bison/APKBUILD
blob: c8e2b971079d630fc0993b2251ff34a6da2e1036 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                   
                                                 
             
          
        

                                                  



                                                                    
                  
                                                   
            
                                      
                  
                   
                                        


                                                                 
 



                      
         










                                           
                                                  
                                                           

                                                 



                  




                                                      

                                                                                                                                                              
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=bison
pkgver=3.7
pkgrel=0
pkgdesc="The GNU general-purpose parser generator"
arch="all"
# iconv issue:
# https://lists.gnu.org/archive/html/bug-bison/2020-07/msg00001.html
# https://www.openwall.com/lists/musl/2020/07/29/2
options="!check"  # see above
license="GPL-3.0+"
url="https://www.gnu.org/software/bison/bison.html"
depends="m4"
checkdepends="bison flex musl-locales"
makedepends="perl"
provider_priority=1
subpackages="$pkgname-doc $pkgname-lang"
source="https://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz
	uaf.patch
	"

# secfixes:
#   3.5.4-r0:
#     - CVE-2020-14150

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man
	make
}

check() {
	# Work around for Bison 3.4.x test failure
	for _calc in calc lexcalc mfcalc reccalc rpcalc; do
		make -j1 examples/c/$_calc/$_calc
	done
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
}

sha512sums="f6c8f1522849b65046844bd51953b4f1e2c32818d8bca0b8e4a1035e72d6731d8a66bc307d4b20d1a576cac6cbe10aa1c66829112327f37938ace165e154ba6a  bison-3.7.tar.xz
4a4e22589cd02fb301fdff98078a551f97967dd7add935341f47d0df3acd95827661633ff6489d1ae36730eed8ddec1c2a8ded054628abb839feda79feae4be0  uaf.patch"