From bdf2ad10c54256f9277232fe7c23cd3e9b38abd8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 15 Jan 2010 04:40:03 +0100 Subject: [PATCH] Added fakechroot-2.9 build template. --HG-- extra : convert_revision : 42fc1180fe175ce67e6399b97449b440edfe0ca0 --- .../patches/scandir_glibc_2.10.diff | 20 +++++++++++++++++++ srcpkgs/fakechroot/template | 13 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/fakechroot/patches/scandir_glibc_2.10.diff create mode 100644 srcpkgs/fakechroot/template diff --git a/srcpkgs/fakechroot/patches/scandir_glibc_2.10.diff b/srcpkgs/fakechroot/patches/scandir_glibc_2.10.diff new file mode 100644 index 00000000000..3f54f4960c5 --- /dev/null +++ b/srcpkgs/fakechroot/patches/scandir_glibc_2.10.diff @@ -0,0 +1,20 @@ +--- src/libfakechroot.c ++++ src/libfakechroot.c +@@ -2619,7 +2619,7 @@ + + #ifdef HAVE_SCANDIR + /* #include */ +-int scandir (const char *dir, struct dirent ***namelist, SCANDIR_TYPE_ARG3, int(*compar)(const void *, const void *)) ++int scandir (const char *dir, struct dirent ***namelist, SCANDIR_TYPE_ARG3, int(*compar)(const struct dirent **, const struct dirent **)) + { + char *fakechroot_path, *fakechroot_ptr, fakechroot_buf[FAKECHROOT_MAXPATH]; + expand_chroot_path(dir, fakechroot_path, fakechroot_ptr, fakechroot_buf); +@@ -2631,7 +2631,7 @@ + + #ifdef HAVE_SCANDIR64 + /* #include */ +-int scandir64 (const char *dir, struct dirent64 ***namelist, int(*filter)(const struct dirent64 *), int(*compar)(const void *, const void *)) ++int scandir64 (const char *dir, struct dirent64 ***namelist, int(*filter)(const struct dirent64 *), int(*compar)(const struct dirent64 **, const struct dirent64 **)) + { + char *fakechroot_path, *fakechroot_ptr, fakechroot_buf[FAKECHROOT_MAXPATH]; + expand_chroot_path(dir, fakechroot_path, fakechroot_ptr, fakechroot_buf); diff --git a/srcpkgs/fakechroot/template b/srcpkgs/fakechroot/template new file mode 100644 index 00000000000..be200abeedb --- /dev/null +++ b/srcpkgs/fakechroot/template @@ -0,0 +1,13 @@ +# Template file for 'fakechroot' +pkgname=fakechroot +version=2.9 +distfiles="${DEBIAN_SITE}/main/f/$pkgname/${pkgname}_${version}.orig.tar.gz" +build_style=gnu_configure +short_desc="Gives a fake chroot environment" +maintainer="Juan RP " +checksum=bfccb079d2d247b05d5f82473beca0043ddfc51a6ed595541575893fa3ab6c3e +long_desc=" + This package provides a library which overrides libc functions, so it is + possible to use root-specific tools without root privileges." + +Add_dependency run glibc