...
 
Commits (7)
# Autotools
*.log
Makefile
Makefile.in
/aclocal.m4
/autom4te.cache
/build-aux/
/config.cache
/config.guess
/config.h
/config.h.in
/config.log
/config.sh
/config.status
/config.sub
/configure
/install-sh
/m4/libtool.m4
/m4/ltoptions.m4
/m4/ltsugar.m4
/m4/ltversion.m4
/m4/lt~obsolete.m4
/missing
/stamp-h1
# Libtool
*.la
*.lo
*.o
.deps/
.libs/
/libtool
/ltmain.sh
# pod2man
*.1
*.8
# scripts
/scripts/*.env
/scripts/*.fakechroot
/scripts/fakechroot
# Tests
*.trs
.proverc
/test/*.debs.tgz
/test/*.rpms.tgz
/test/rinse-cache/
/test/src/test-*
!/test/src/test-*.c
/test/testtree/
/test/testtree-*/
# Java
*.class
*.jar
# Dist
*.gz
# quilt
/.pc
# gtags
GPATH
GRTAGS
GTAGS
# Editors
*~
*.orig
.vstags
/.autotools
/.cproject
/.project
/.settings/
/.vscode/
image: debian:stretch
before_script:
- export LC_ALL=C LC_TYPE=C LANG=
- sudo apt-get install debian-archive-keyring
- echo 'deb http://deb.debian.org/debian/ sid main' | sudo tee -a /etc/apt/sources.list
- sudo apt-get update
- sudo apt-get -o Dpkg::Options::="--force-overwrite" install -y build-essential colorgcc dpkg-dev debhelper dh-autoreconf fakeroot git-buildpackage libjemalloc-dev
- git fetch origin +upstream:upstream
- git fetch origin +pristine-tar:pristine-tar
test:
script:
- gbp buildpackage --git-builder="debuild --set-envvar=CC=$TEST_CC --no-lintian -i'^\.git/|^\.gitignore$|^\.travis.yml$|^README\.md$' -I" -uc -us
- cat ../*.changes
- debc
- lintian --dont-check-part standards-version --fail-on-warnings --color always --info ../*.changes
- sudo dpkg --install ../*.deb
variables:
TEST_CC: colorgcc
DEB_BUILD_OPTIONS: parallel=4
LINTIAN_PROFILE: debian
/*.debhelper
/*.log
/*.substvars
/*-stamp
/autoreconf.*
/files
/tmp/
/fakechroot/
/libfakechroot/
fakechroot (2.20-1) unstable; urgency=medium
* New upstream version 2.20:
- Added renameat2 function which is used by coreutils 8.30 and mv command.
- Extra directory /lib/systemd is added to library path. Closes: #855234.
- Can chroot to chroot. Closes: #855237.
- Removed bugs related to using variables out of scope. Closes: #914995.
- ldd wrapper doesn't lose a leading slash. Closes: #855236.
- Fixed crash when CDPATH was set. Closes: #855238.
- fakeroot command can be used before fakechroot. Closes: #855240.
- Fixed manpage for fakechroot about ldconfig. Closes: #745083.
* Removed all Debian patches that was applied by upstream.
* Reenabled jemalloc test: Closes: #903488.
-- Piotr Roszatycki <dexter@debian.org> Sun, 17 Mar 2019 12:18:04 +0100
fakechroot (2.19-3.2) unstable; urgency=medium
* Non-maintainer upload.
......
......@@ -9,8 +9,8 @@ Build-Depends:
libjemalloc-dev <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/dex4er/fakechroot
VCS-Git: https://anonscm.debian.org/git/collab-maint/fakechroot.git
VCS-Browser: https://anonscm.debian.org/git/collab-maint/fakechroot.git
VCS-Git: https://salsa.debian.org/dexter/pkg-fakechroot.git
VCS-Browser: https://salsa.debian.org/dexter/pkg-fakechroot
Package: fakechroot
Architecture: all
......
......@@ -4,11 +4,11 @@ Upstream-Contact: Piotr Roszatycki <dexter@debian.org>
Source: https://github.com/fakechroot/fakechroot/downloads
Files: *
Copyright: 2003-2015 Piotr Roszatycki <dexter@debian.org>
Copyright: 2003-2017, 2019 Piotr Roszatycki <dexter@debian.org>
License: LGPL-2.1+
Files: debian/*
Copyright: 2003-2015, Piotr Roszatycki <dexter@debian.org>
Copyright: 2003-2015, 2019 Piotr Roszatycki <dexter@debian.org>
License: GPL-2+
Files: src/__opendir2.c
......@@ -63,6 +63,10 @@ Copyright: 1990, 1993, 1994 The Regents of the University of California.
2010-2015 Piotr Roszatycki <dexter@debian.org>
License: BSD-3-clause
Files: src/fts64.c
Copyright: 2015-2017 Free Software Foundation, Inc.
License: LGPL-2.1+
Files: src/ftw.c src/ftw64.c
Copyright: 1996-2004, 2006-2008, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
......
binary-without-manpage *.fakechroot
uses-dpkg-database-directly etc/fakechroot/debootstrap.env
[DEFAULT]
pristine-tar = True
ignore-branch = True
builder = debuild -i'^\.git/|^\.gitignore$|^\.travis.yml$|^README\.md$' -I
builder = debuild -i'^\.git/|^\.gitignore$|^\.gitlab-ci.yml$|^README\.md$' -I
--- a/test/t/jemalloc.t
+++ b/test/t/jemalloc.t
@@ -9,6 +9,9 @@ libjemalloc=`
done
echo no
`
+# temporarily disable
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918742
+libjemalloc=no
test $libjemalloc = "no" && skip_all 'jemalloc library is missing (sudo apt-get install libjemalloc1)'
prepare 1
From: Johannes 'josch' Schauer <josch@debian.org>
Date: Tue, 01 Jan 2019 08:05:21 +0100
Subject: add support for renameat2 system call
--- a/config.h.in
+++ b/config.h.in
@@ -526,6 +526,9 @@
/* Define to 1 if you have the `renameat' function. */
#undef HAVE_RENAMEAT
+/* Define to 1 if you have the `renameat2' function. */
+#undef HAVE_RENAMEAT2
+
/* Define to 1 if you have the `revoke' function. */
#undef HAVE_REVOKE
--- a/configure.ac
+++ b/configure.ac
@@ -252,6 +252,7 @@ AC_CHECK_FUNCS(m4_normalize([
removexattr
rename
renameat
+ renameat2
revoke
rmdir
scandir
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -135,6 +135,7 @@ libfakechroot_la_SOURCES = \
removexattr.c \
rename.c \
renameat.c \
+ renameat2.c \
revoke.c \
rmdir.c \
rpl_lstat.c \
--- /dev/null
+++ b/src/renameat2.c
@@ -0,0 +1,42 @@
+/*
+ libfakechroot -- fake chroot environment
+ Copyright (c) 2010, 2013 Piotr Roszatycki <dexter@debian.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+
+#include <config.h>
+
+#ifdef HAVE_RENAMEAT2
+
+#define _ATFILE_SOURCE
+#include "libfakechroot.h"
+
+
+wrapper(renameat2, int, (int olddirfd, const char * oldpath, int newdirfd, const char * newpath, unsigned int flags))
+{
+ char tmp[FAKECHROOT_PATH_MAX];
+ debug("renameat2(%d, \"%s\", %d, \"%s\", %d)", olddirfd, oldpath, newdirfd, newpath, flags);
+ expand_chroot_path_at(olddirfd, oldpath);
+ strcpy(tmp, oldpath);
+ oldpath = tmp;
+ expand_chroot_path_at(newdirfd, newpath);
+ return nextcall(renameat2)(olddirfd, oldpath, newdirfd, newpath, flags);
+}
+
+#else
+typedef int empty_translation_unit;
+#endif
renameat2.patch
disable-jemalloc-test
#!/usr/bin/make -f
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
include /usr/share/dpkg/architecture.mk
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PARALLEL := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PARALLEL ?= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
PROVEFLAGS += -j$(PARALLEL)
endif
......@@ -21,6 +21,7 @@ override_dh_auto_configure:
ac_cv_path_LDCONFIG=/sbin/ldconfig \
ac_cv_path_LDD=/usr/bin/ldd \
ac_cv_path_PERL=/usr/bin/perl \
ac_cv_path_SEQ=/usr/bin/seq \
ac_cv_path_SHELL=/bin/bash
override_dh_auto_install-arch:
......
version=3
https://github.com/dex4er/fakechroot/releases /dex4er/fakechroot/archive/([0-9a-z.-]*)\.tar\.gz
https://github.com/dex4er/fakechroot/releases /dex4er/fakechroot/releases/download/([0-9a-z.-]*)/fakechroot-[0-9a-z.-]*\.tar\.gz