Browse Source

1.21

1.21
master
4679 8 years ago
parent
commit
21afca652f
  1. 17
      .SRCINFO
  2. 52
      PKGBUILD
  3. 17
      silence-dlerror.patch

17
.SRCINFO

@ -1,9 +1,7 @@
# Generated by mksrcinfo v8
# Mon Apr 11 03:08:02 UTC 2016
pkgbase = fakeroot-tcp pkgbase = fakeroot-tcp
pkgdesc = Gives a fake root environment, useful for building packages as a non-privileged user,with tcp ipc pkgdesc = Tool for simulating superuser privileges,with tcp ipc
pkgver = 1.20.2 pkgver = 1.21
pkgrel = 1 pkgrel = 2
url = http://packages.debian.org/fakeroot url = http://packages.debian.org/fakeroot
install = fakeroot.install install = fakeroot.install
arch = i686 arch = i686
@ -11,15 +9,16 @@ pkgbase = fakeroot-tcp
arch = armv7h arch = armv7h
groups = base-devel groups = base-devel
license = GPL license = GPL
makedepends = po4a
depends = glibc depends = glibc
depends = filesystem depends = filesystem
depends = sed depends = sed
depends = util-linux depends = util-linux
depends = sh depends = sh
conflicts = fakeroot source = http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot-tcp_1.21.orig.tar.gz
options = !libtool source = silence-dlerror.patch
source = http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.20.2.orig.tar.bz2 md5sums = be5c9a0e516869fca4a6758105968e5a
md5sums = a4b4564a75024aa96c86e4d1017ac786 md5sums = 5fba0b541b5af39d804265223fda525c
pkgname = fakeroot-tcp pkgname = fakeroot-tcp

52
PKGBUILD

@ -1,37 +1,53 @@
# $Id: PKGBUILD 160938 2012-06-07 07:26:48Z allan $ # Maintainer: 4679 <admin@libnull.com>
# Maintainer: Allan McRae <allan@archlinux.org> # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Jochem Kossen <j.kossen@home.nl> # Contributor: Jochem Kossen <j.kossen@home.nl>
_pkgname=fakeroot
pkgname=fakeroot-tcp pkgname=fakeroot-tcp
pkgver=1.20.2 _pkgname=fakeroot
pkgrel=1 pkgver=1.21
pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user,with tcp ipc" pkgrel=2
pkgdesc='Tool for simulating superuser privileges,with tcp ipc'
arch=('i686' 'x86_64' 'armv7h') arch=('i686' 'x86_64' 'armv7h')
license=('GPL') license=('GPL')
url="http://packages.debian.org/fakeroot" url="http://packages.debian.org/fakeroot"
groups=('base-devel') groups=('base-devel')
install=fakeroot.install install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh') depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
options=('!libtool') makedepends=('po4a')
conflicts=('fakeroot') source=(http://ftp.debian.org/debian/pool/main/f/$_pkgname/${_pkgname}_${pkgver}.orig.tar.gz
source=(http://ftp.debian.org/debian/pool/main/f/${_pkgname}/${_pkgname}_${pkgver}.orig.tar.bz2) silence-dlerror.patch)
md5sums=('a4b4564a75024aa96c86e4d1017ac786') md5sums=('be5c9a0e516869fca4a6758105968e5a'
'5fba0b541b5af39d804265223fda525c')
prepare() {
cd $_pkgname-$pkgver
patch -p1 -i "$srcdir"/silence-dlerror.patch
}
build() { build() {
cd "${srcdir}/${_pkgname}-${pkgver}" cd $_pkgname-$pkgver
./configure --prefix=/usr --libdir=/usr/lib/libfakeroot \
--disable-static --with-ipc=tcp ./bootstrap
./configure --prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \
--with-ipc=tcp
make make
cd doc
po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
} }
package() { package() {
cd "${srcdir}/${_pkgname}-${pkgver}" cd $_pkgname-$pkgver
make DESTDIR=${pkgdir} install make DESTDIR="$pkgdir" install
install -dm755 ${pkgdir}/etc/ld.so.conf.d/ install -dm755 "$pkgdir"/etc/ld.so.conf.d/
echo '/usr/lib/libfakeroot' > ${pkgdir}/etc/ld.so.conf.d/fakeroot.conf echo '/usr/lib/libfakeroot' > "$pkgdir"/etc/ld.so.conf.d/fakeroot.conf
# install README for sysv/tcp usage # install README for sysv/tcp usage
install -Dm644 $srcdir/$_pkgname-$pkgver/README $pkgdir/usr/share/doc/$_pkgname/README install -Dm644 README "$pkgdir"/usr/share/doc/$_pkgname/README
} }

17
silence-dlerror.patch

@ -0,0 +1,17 @@
diff --git a/libfakeroot.c b/libfakeroot.c
index f867758..7ef6e47 100644
--- a/libfakeroot.c
+++ b/libfakeroot.c
@@ -256,10 +256,12 @@ void load_library_symbols(void){
/* clear dlerror() just in case dlsym() legitimately returns NULL */
msg = dlerror();
*(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
+#ifdef LIBFAKEROOT_DEBUGGING
if ( (msg = dlerror()) != NULL){
fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
/* abort ();*/
}
+#endif /* LIBFAKEROOT_DEBUGGING */
}
}
Loading…
Cancel
Save