void-packages/srcpkgs/musl-legacy-compat/template
Érico Rolim 900bdf655b musl-legacy-compat: add fflush call to error().
The testsuite for elfutils expects things printed to stdout before
calling error() to appear before the error message; glibc implements
this by calling fflush(stdout) after checking the stream is still valid.
Here, we will simply flush all output streams.
2021-02-08 22:35:36 -03:00

24 lines
639 B
Bash

# Template file for 'musl-legacy-compat'
pkgname=musl-legacy-compat
version=0.4
revision=2
archs="*-musl"
bootstrap=yes
short_desc="Legacy compatibility headers for the musl libc"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause, BSD-3-Clause"
homepage="http://www.voidlinux.org"
do_install() {
for f in ${FILESDIR}/{cdefs,queue,tree}.h
do
vinstall ${f} 644 usr/include/sys
done
vinstall ${FILESDIR}/error.h 644 usr/include
sed -n '3,32p' < ${FILESDIR}/queue.h > LICENSE.BSD-3-Clause
sed -n '2,26p' < ${FILESDIR}/tree.h > LICENSE.BSD-2-Clause
vlicense LICENSE.BSD-3-Clause
vlicense LICENSE.BSD-2-Clause
}