glibc: memleak patch via Arch; systemd build option for nscd; 3.17 linux headers rebuild.
This commit is contained in:
parent
85062c6664
commit
bf86b6c016
2 changed files with 20 additions and 5 deletions
12
srcpkgs/glibc/patches/glibc-2.20-do_ftell_wide-memleak.patch
Normal file
12
srcpkgs/glibc/patches/glibc-2.20-do_ftell_wide-memleak.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/libio/wfileops.c b/libio/wfileops.c
|
||||||
|
index f123add..ebc06e8 100644
|
||||||
|
--- libio/wfileops.c
|
||||||
|
+++ libio/wfileops.c
|
||||||
|
@@ -711,6 +711,7 @@ do_ftell_wide (_IO_FILE *fp)
|
||||||
|
return WEOF;
|
||||||
|
|
||||||
|
offset += outstop - out;
|
||||||
|
+ free (out);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We don't trust _IO_read_end to represent the current file offset
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'glibc'
|
# Template file for 'glibc'
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
version=2.20
|
version=2.20
|
||||||
revision=3
|
revision=4
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
short_desc="The GNU C library"
|
short_desc="The GNU C library"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -30,7 +30,8 @@ force_debug_pkgs=yes
|
||||||
if [ "$CHROOT_READY" ]; then
|
if [ "$CHROOT_READY" ]; then
|
||||||
hostmakedepends="bison perl"
|
hostmakedepends="bison perl"
|
||||||
fi
|
fi
|
||||||
makedepends="kernel-libc-headers"
|
makedepends="kernel-libc-headers>=3.17"
|
||||||
|
build_options="systemd"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
mkdir build
|
mkdir build
|
||||||
|
@ -128,7 +129,7 @@ do_install() {
|
||||||
glibc-devel_package() {
|
glibc-devel_package() {
|
||||||
lib32depends="glibc>=${version}_${revision}"
|
lib32depends="glibc>=${version}_${revision}"
|
||||||
lib32files="/usr/include/gnu/stubs-32.h"
|
lib32files="/usr/include/gnu/stubs-32.h"
|
||||||
depends="kernel-libc-headers glibc>=${version}_${revision}"
|
depends="${makedepends} glibc>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
@ -152,8 +153,10 @@ nscd_package() {
|
||||||
short_desc+=" - Name Service Cache Daemon"
|
short_desc+=" - Name Service Cache Daemon"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/sbin/nscd
|
vmove usr/sbin/nscd
|
||||||
vinstall ${wrksrc}/nscd/nscd.service 644 usr/lib/systemd/system
|
if [ "$build_option_systemd" ]; then
|
||||||
vinstall ${wrksrc}/nscd/nscd.tmpfiles 644 usr/lib/tmpfiles.d nscd.conf
|
vinstall ${wrksrc}/nscd/nscd.service 644 usr/lib/systemd/system
|
||||||
|
vinstall ${wrksrc}/nscd/nscd.tmpfiles 644 usr/lib/tmpfiles.d nscd.conf
|
||||||
|
fi
|
||||||
vinstall ${wrksrc}/nscd/nscd.conf 644 etc
|
vinstall ${wrksrc}/nscd/nscd.conf 644 etc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue