proplib: backport patch from master for fdatasync(2).
This commit is contained in:
parent
11bf0ca19c
commit
8f90157562
3 changed files with 15 additions and 1 deletions
11
srcpkgs/proplib/patches/switch_to_fdatasync.patch
Normal file
11
srcpkgs/proplib/patches/switch_to_fdatasync.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/prop_object.c.orig 2012-05-15 16:34:56.968699452 +0200
|
||||||
|
+++ src/prop_object.c 2012-05-15 16:35:58.796906967 +0200
|
||||||
|
@@ -858,7 +858,7 @@ _prop_object_externalize_write_file(cons
|
||||||
|
goto bad;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (fsync(fd) == -1)
|
||||||
|
+ if (fdatasync(fd) == -1)
|
||||||
|
goto bad;
|
||||||
|
|
||||||
|
myumask = umask(0);
|
|
@ -5,8 +5,10 @@ long_desc="${long_desc}
|
||||||
|
|
||||||
This package contains files for development, headers, static libs, etc."
|
This package contains files for development, headers, static libs, etc."
|
||||||
|
|
||||||
|
revision=1
|
||||||
|
|
||||||
Add_dependency run zlib-devel
|
Add_dependency run zlib-devel
|
||||||
Add_dependency run proplib
|
Add_dependency run proplib ">=${version}"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'proplib'
|
# Template file for 'proplib'
|
||||||
pkgname=proplib
|
pkgname=proplib
|
||||||
version=0.6.1
|
version=0.6.1
|
||||||
|
revision=1
|
||||||
homepage="http://code.google.com/p/portableproplib"
|
homepage="http://code.google.com/p/portableproplib"
|
||||||
distfiles="http://portableproplib.googlecode.com/files/$pkgname-$version.tar.xz"
|
distfiles="http://portableproplib.googlecode.com/files/$pkgname-$version.tar.xz"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
|
Loading…
Reference in a new issue