Commit 0ce27661 authored by Piotr Roszatycki's avatar Piotr Roszatycki

New upstream version 2.19

parent 86a2debb
Copyright (c) 2003-2016 Piotr Roszatycki <dexter@debian.org>
fakechroot is distributed under the GNU Lesser General Public License (LGPL
2.1 or greater).
Additional copyrights:
src/libfakechroot.c file
Copyright (c) 2003-2015 Piotr Roszatycki <dexter@debian.org>
Copyright (c) 2007 Mark Eichin <eichin@metacarta.com>
Copyright (c) 2006, 2007 Alexander Shishkin <virtuoso@slind.org>
Copyright (c) 2006, 2007 Lionel Tricon <lionel.tricon@free.fr>
audit_log_acct_message function taken from Debian bug #745082.
Copyright (c) 2015 JH Chatenet <jhcha54008@free.fr>
dedotdot function taken from mini_httpd - small HTTP server
Copyright (C) 1999,2000 by Jef Poskanzer <jef@mail.acme.com>.
dl_iterate_phdr, dladdr and dlopen functions
Copyright (c) 2014 Robin McCorkell <rmccorkell@karoshi.org.uk>
execl function taken from GNU C Library.
Copyright (C) 1991,92,94,97,98,99,2002,2005 Free Software Foundation, Inc.
......@@ -48,6 +59,10 @@ This software is distributed under the BSD-style license.
popen function taken from OpenBSD.
Copyright (c) 1988, 1993 The Regents of the University of California.
posix_spawnp function taken from the execvp function in the GNU C Library.
Copyright (C) 1991,92, 1995-99, 2002, 2004, 2005, 2007, 2009
Free Software Foundation, Inc.
rawmemchr function taken from uClibc
Copyright (C) 2002 Manuel Novoa III
Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
......
......@@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = man src scripts test
EXTRA_DIST = COPYING LICENSE NEWS.md README.md THANKS autogen.sh makedist.sh
EXTRA_DIST = COPYING LICENSE NEWS.md README.md THANKS.md autogen.sh makedist.sh
prove: all
cd test && $(MAKE) $(AM_MAKEFLAGS) prove
......
......@@ -110,7 +110,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_FILES = config.sh
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
......@@ -170,13 +170,13 @@ CTAGS = ctags
CSCOPE = cscope
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(top_srcdir)/build-aux/compile \
$(srcdir)/config.sh.in $(top_srcdir)/build-aux/compile \
$(top_srcdir)/build-aux/config.guess \
$(top_srcdir)/build-aux/config.sub \
$(top_srcdir)/build-aux/install-sh \
$(top_srcdir)/build-aux/ltmain.sh \
$(top_srcdir)/build-aux/missing COPYING THANKS \
build-aux/compile build-aux/config.guess build-aux/config.sub \
$(top_srcdir)/build-aux/missing COPYING build-aux/compile \
build-aux/config.guess build-aux/config.sub \
build-aux/install-sh build-aux/ltmain.sh build-aux/missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
......@@ -237,6 +237,7 @@ CHROOT = @CHROOT@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEBOOTSTRAP = @DEBOOTSTRAP@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
......@@ -251,6 +252,7 @@ ENV = @ENV@
EXEEXT = @EXEEXT@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
FAKEROOT = @FAKEROOT@
FGREP = @FGREP@
GREP = @GREP@
HAVE_VISIBILITY = @HAVE_VISIBILITY@
......@@ -270,6 +272,7 @@ LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
......@@ -359,7 +362,7 @@ top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = man src scripts test
EXTRA_DIST = COPYING LICENSE NEWS.md README.md THANKS autogen.sh makedist.sh
EXTRA_DIST = COPYING LICENSE NEWS.md README.md THANKS.md autogen.sh makedist.sh
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
......@@ -412,6 +415,8 @@ $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
distclean-hdr:
-rm -f config.h stamp-h1
config.sh: $(top_builddir)/config.status $(srcdir)/config.sh.in
cd $(top_builddir) && $(SHELL) ./config.status $@
mostlyclean-libtool:
-rm -f *.lo
......
## Version 2.19
20 Nov 2016
* The `FAKECHROOT_EXCLUDE_PATH` list has to contain at most 100 elements.
* The `env`(1) wrapper works with dash.
* The `fakeroot`(1) works if `chroot`(8) is invoked twice.
* Fixes were made for `chdir`(2). It was possible to change to a directory
outside of fakechroot.
* The `fakechroot`(1) command sets `FAKECHROOT_CMD_ORIG` environment variable
for wrapped command.
* The `ldd`(1) wrapper distinguishes different paths with the same beginning.
* The `ldd`(1) wrapper does not fail if the path is not existing outside
fakechroot.
* Can be compiled with clang 4.0.
## Version 2.18
26 Oct 2015
......@@ -45,7 +61,7 @@
linker. The `fakechroot` script provides `--elfloader` option.
* The `FAKECHROOT_EXCLUDE_PATH` environment variable overrides the default
settings.
* The `ldd`(1) wrapper can work if overriden with `FAKECHROOT_CMD_SUBST`
* The `ldd`(1) wrapper can work if overridden with `FAKECHROOT_CMD_SUBST`
environment variable.
* New `env`(1) wrapper was added. It preserves fakechroot environment even
for `--ignore-environment` option.
......
......@@ -73,7 +73,8 @@ Where is it used?
fakechroot is mainly used as:
* a variant of [debootstrap](http://code.erisian.com.au/Wiki/debootstrap), the tool which can set up new Debian or Ubuntu system.
* a supporter for [debirf](http://cmrg.fifthhorseman.net/wiki/debirf), DEBian on Initial Ram Filesystem
* a variant of [debootstrap](http://code.erisian.com.au/Wiki/debootstrap), the tool which can set up new Debian or Ubuntu system
fakechroot had found another purposes:
......@@ -81,6 +82,6 @@ fakechroot had found another purposes:
* to be a supporter for [pbuilder](http://pbuilder.alioth.debian.org/) building system
* to be a supporter for [Apport](https://wiki.ubuntu.com/Apport) retracer
* to be a supporter for [libguestfs tools](http://libguestfs.org/) for accessing and modifying virtual machine disk images
* to be a supporter for [febootstrap](http://et.redhat.com/~rjones/febootstrap/), the tool which can set up new Fedora system.
* to be a supporter for [febootstrap](http://et.redhat.com/~rjones/febootstrap/), the tool which can set up new Fedora system
* to be a part of [cuntubuntu](https://play.google.com/store/apps/details?id=com.cuntubuntu) - Ubuntu for Android without root
* to be a supporter for [selenium-chroot](https://github.com/gagern/selenium-chroot) setup
The fakechroot project was started as dirty hack because I've got an access
to some system without root privileges. I really wanted to install additional
software and I imagined that no access to the root account should be no
problem at all.
I'm glad to see that fakechroot had found another purposes:
* to be a part of Klik application installer (http://klik.atekon.de)
* to be a supporter for pbuilder building system
(http://pbuilder.alioth.debian.org/)
* to be a supporter for febootstrap - a tool for bootstraping Fedora system
(http://people.redhat.com/~rjones/febootstrap/)
* to be a supporter for Apport retracer
(https://wiki.ubuntu.com/Apport)
* to be a part of Slind - a minimal Debian-based distro for embedded devices
(https://www.slind.org/Main_Page)
* to be a part of scratchbox - the cross-compilation toolkit project
(http://freedesktop.org/wiki/Software/sbox2)
* to be a part of cuntubuntu - Ubuntu for Android without root
(https://play.google.com/store/apps/details?id=com.cuntubuntu)
I would like to thank to:
* Marcin Jakubowski <user@debian.pl>, for an inspiration
* joost witteveen <joost@rulcmc.leidenuniv.nl>, for its fakeroot
* Lionel Tricon <lionel.tricon@free.fr>, for an exclude path list feature
* Mark Eichin <eichin@metacarta.com>, for countless patches with bugfixes
* Martin Pitt <martin.pitt@ubuntu.com>, for great Ubuntu support
* Daniel Kahn Gillmor <dkg-debian.org@fifthhorseman.net>, for testing
-- Piotr Roszatycki <dexter@debian.org> Wed, 25 Aug 2010 15:08:20 +0200
The fakechroot project was started as dirty hack because I've got an access
to some system without root privileges. I really wanted to install additional
software and I imagined that no access to the root account should be no
problem at all.
For years, more and more people started to use the fakechroot.
I would like to thank to:
* Marcin Jakubowski, for an inspiration
* Joost Witteveen, for his fakeroot
* Lionel Tricon, for an exclude path list feature
* Mark Eichin, for countless patches with bugfixes
* Martin Pitt, for great Ubuntu support
* Daniel Kahn Gillmor, for testing
And to contributors (alphabetically):
* Andreas Jochens
* Andrew Gregory
* Brian Silverman
* Christopher Meng
* Colin Watson
* Daniel Kahn Gillmor
* Daniel Tschan
* Geert Stappers
* Guido Günther
* JH Chatenet
* Johannes Schauer
* Juan Romero Pardines
* Kurt Roeckx
* Lucas Nussbaum
* Luk Claes
* Marc 'HE' Brockschmidt
* Mario Iseli
* Martin von Gagern
* Oleksandr Usov
* Raúl Sánchez Siles
* Robert Blair Mason Jr.
* Robert Spanton
* Robin McCorkell
* Santiago Vila
* Sune Vuorela
* Sven Ulland
This diff is collapsed.
#! /bin/sh
# Configuration validation subroutine script.
# Copyright 1992-2015 Free Software Foundation, Inc.
# Copyright 1992-2016 Free Software Foundation, Inc.
timestamp='2015-08-20'
timestamp='2016-11-04'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
......@@ -33,7 +33,7 @@ timestamp='2015-08-20'
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
......@@ -53,8 +53,7 @@ timestamp='2015-08-20'
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
$0 [OPTION] ALIAS
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
Canonicalize a configuration name.
......@@ -68,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright 1992-2015 Free Software Foundation, Inc.
Copyright 1992-2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
......@@ -118,7 +117,7 @@ case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
kopensolaris*-gnu* | \
kopensolaris*-gnu* | cloudabi*-eabi* | \
storm-chaos* | os2-emx* | rtmk-nova*)
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
......@@ -302,6 +301,7 @@ case $basic_machine in
| open8 | or1k | or1knd | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pru \
| pyramid \
| riscv32 | riscv64 \
| rl78 | rx \
......@@ -429,6 +429,7 @@ case $basic_machine in
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
| pru-* \
| pyramid-* \
| riscv32-* | riscv64-* \
| rl78-* | romp-* | rs6000-* | rx-* \
......@@ -521,7 +522,7 @@ case $basic_machine in
basic_machine=i386-pc
os=-aros
;;
asmjs)
asmjs)
basic_machine=asmjs-unknown
;;
aux)
......@@ -644,6 +645,14 @@ case $basic_machine in
basic_machine=m68k-bull
os=-sysv3
;;
e500v[12])
basic_machine=powerpc-unknown
os=$os"spe"
;;
e500v[12]-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
os=$os"spe"
;;
ebmon29k)
basic_machine=a29k-amd
os=-ebmon
......@@ -1023,7 +1032,7 @@ case $basic_machine in
ppc-* | ppcbe-*)
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppcle | powerpclittle | ppc-le | powerpc-little)
ppcle | powerpclittle)
basic_machine=powerpcle-unknown
;;
ppcle-* | powerpclittle-*)
......@@ -1033,7 +1042,7 @@ case $basic_machine in
;;
ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
;;
ppc64le | powerpc64little | ppc64-le | powerpc64-little)
ppc64le | powerpc64little)
basic_machine=powerpc64le-unknown
;;
ppc64le-* | powerpc64little-*)
......@@ -1383,14 +1392,14 @@ case $os in
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
| -bitrig* | -openbsd* | -solidbsd* \
| -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
| -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
| -linux-newlib* | -linux-musl* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
......@@ -1399,7 +1408,8 @@ case $os in
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos* | -phoenix* | -fuchsia*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
......@@ -1531,6 +1541,8 @@ case $os in
;;
-nacl*)
;;
-ios)
;;
-none)
;;
*)
......
This diff is collapsed.
......@@ -84,6 +84,9 @@
*/
#undef HAVE_ALLOCA_H
/* Define to 1 if you have the `audit_log_acct_message' function. */
#undef HAVE_AUDIT_LOG_ACCT_MESSAGE
/* Define to 1 if you have the `bind' function. */
#undef HAVE_BIND
......@@ -828,8 +831,7 @@
slash. */
#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* Define to 1 if opendir function calls __open function internally. */
......
# config.sh Generated from config.sh.in by configure.
POD2MAN=@POD2MAN@
PROVE=@PROVE@
SEQ=@SEQ@
CHROOT=@CHROOT@
DEBOOTSTRAP=@DEBOOTSTRAP@
ECHO=@ECHO@
ENV=@ENV@
FAKEROOT=@FAKEROOT@
ISCHROOT=@ISCHROOT@
LDCONFIG=@LDCONFIG@
LDD=@LDD@
PERL=@PERL@
SHELL=@SHELL@
This diff is collapsed.
AC_PREREQ(2.64)
AC_INIT([fakechroot], [2.18], [dexter@debian.org], [fakechroot], [http://fakechroot.alioth.debian.org/])
AC_INIT([fakechroot], [2.19], [dexter@debian.org], [fakechroot], [https://github.com/dex4er/fakechroot])
AC_CONFIG_SRCDIR([src/libfakechroot.c])
AC_CONFIG_AUX_DIR([build-aux])
......@@ -45,15 +45,17 @@ AC_CHECK_PROGS([POD2MAN], [pod2man])
AC_CHECK_PROGS([PROVE], [prove])
AC_CHECK_PROGS([SEQ], [seq gseq])
AC_PATH_PROG([CHROOT], [chroot], [/usr/sbin/chroot], [/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([DEBOOTSTRAP], [debootstrap], [/usr/sbin/debootstrap], [/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([ECHO], [echo], [/bin/echo], [/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([ENV], [env], [/usr/bin/env], [/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([FAKEROOT], [fakeroot], [/usr/bin/fakeroot], [/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([ISCHROOT], [ischroot], [/usr/bin/ischroot], [/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([LDCONFIG], [ldconfig], [/sbin/chroot], [/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([LDD], [ldd], [/usr/bin/ldd], [/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([PERL], [perl], [/usr/bin/perl], [/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([SHELL], [bash ksh sh], [/bin/sh], [/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:$PATH])
AC_PATH_PROG([SHELL], [bash dash sh], [/bin/sh], [/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/usr/local/sbin:$PATH])
# Checks for compilator features
# Checks for compiler features
ACX_CHECK_C_ALIGNOF
ACX_CHECK_C_ATTRIBUTE([constructor])
ACX_CHECK_C_ATTRIBUTE_SECTION([data.fakechroot])
......@@ -151,6 +153,7 @@ AC_CHECK_FUNCS(m4_normalize([
_xftw64
access
acct
audit_log_acct_message
bind
bindtextdomain
canonicalize_file_name
......@@ -363,6 +366,7 @@ ACX_CHECK_FUNC_ARGTYPES([utimes],
# List of Makefiles
AC_CONFIG_FILES(m4_normalize([
config.sh
Makefile
man/Makefile
src/Makefile
......
This diff is collapsed.
This diff is collapsed.
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
# Foundation, Inc.
# Written by Gary V. Vaughan, 2004
#
# This file is free software; the Free Software Foundation gives
......@@ -33,7 +34,7 @@ m4_define([_lt_join],
# ------------
# Manipulate m4 lists.
# These macros are necessary as long as will still need to support
# Autoconf-2.59 which quotes differently.
# Autoconf-2.59, which quotes differently.
m4_define([lt_car], [[$1]])
m4_define([lt_cdr],
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
......@@ -44,7 +45,7 @@ m4_define([lt_unquote], $1)
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
# ------------------------------------------
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
# Note that neither SEPARATOR nor STRING are expanded; they are appended
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
......
# ltversion.m4 -- version numbers -*- Autoconf -*-
#
# Copyright (C) 2004 Free Software Foundation, Inc.
# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004
#
# This file is free software; the Free Software Foundation gives
......@@ -9,15 +9,15 @@
# @configure_input@
# serial 3337 ltversion.m4
# serial 4179 ltversion.m4
# This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [2.4.2])
m4_define([LT_PACKAGE_REVISION], [1.3337])
m4_define([LT_PACKAGE_VERSION], [2.4.6])
m4_define([LT_PACKAGE_REVISION], [2.4.6])
AC_DEFUN([LTVERSION_VERSION],
[macro_version='2.4.2'
macro_revision='1.3337'
[macro_version='2.4.6'
macro_revision='2.4.6'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0)
])
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
# Foundation, Inc.
# Written by Scott James Remnant, 2004.
#
# This file is free software; the Free Software Foundation gives
......@@ -11,7 +12,7 @@
# These exist entirely to fool aclocal when bootstrapping libtool.
#
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
# which have later been changed to m4_define as they aren't part of the
# exported API, or moved to Autoconf or Automake where they belong.
#
......@@ -25,7 +26,7 @@
# included after everything else. This provides aclocal with the
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
# because those macros already exist, or will be overwritten later.
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
#
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
# Yes, that means every name once taken will need to remain here until
......
......@@ -179,6 +179,7 @@ CHROOT = @CHROOT@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEBOOTSTRAP = @DEBOOTSTRAP@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
......@@ -193,6 +194,7 @@ ENV = @ENV@
EXEEXT = @EXEEXT@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
FAKEROOT = @FAKEROOT@
FGREP = @FGREP@
GREP = @GREP@
HAVE_VISIBILITY = @HAVE_VISIBILITY@
......@@ -212,6 +214,7 @@ LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
......
.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28)
.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32)
.\"
.\" Standard preamble:
.\" ========================================================================
......@@ -46,7 +46,7 @@
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
......@@ -54,20 +54,16 @@
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{
. if \nF \{
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
.if !\nF .nr F 0
.if \nF>0 \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{
. nr % 0
. nr F 2
. \}
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
.\}
.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
......@@ -133,7 +129,7 @@
.\" ========================================================================
.\"
.IX Title "FAKECHROOT 1"
.TH FAKECHROOT 1 "29 Nov 2013" "fakechroot" " "
.TH FAKECHROOT 1 "17 Nov 2016" "fakechroot" " "
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
......@@ -187,7 +183,7 @@ directly.
.IP "\fB\-s\fR|\fB\-\-use\-system\-libs\fR" 4
.IX Item "-s|--use-system-libs"
Use system libraries before chroot's libraries. This might be a workaround if
system dynamic linker can not load \fIlibc.so\fR from fake chroot.
system dynamic linker cannot load \fIlibc.so\fR from fake chroot.
.Sp
Try this setting if you noticed following errors:
.Sp
......@@ -234,7 +230,7 @@ By default they are distributed over the
but sometimes a fixed location at build time is not feasible.
.IP "[\fB\-\-\fR] \fIcommand\fR" 4
.IX Item "[--] command"
Any command you want to be ran as fakechroot. Use '\fB\-\-\fR' if in the command
Any command you want to be run as fakechroot. Use '\fB\-\-\fR' if in the command
you have other options that may confuse fakechroot's option parsing.
.IP "\fB\-h\fR" 4
.IX Item "-h"
......@@ -341,6 +337,8 @@ of list are separated with colon.
.Sp
The \fI/dev\fR, \fI/proc\fR and \fI/sys\fR directories are excluded by default if this
environment variable is not set.
.Sp
This list has to contain at most 100 elements.
.IP "\fB\s-1FAKECHROOT_ELFLOADER\s0\fR" 4
.IX Item "FAKECHROOT_ELFLOADER"
A path to another dynamic linker (i.e. \fI/lib/ld\-linux.so.2\fR for i386
......@@ -458,7 +456,7 @@ If you find the bug or want to implement new features, please report it at
<https://github.com/fakechroot/fakechroot/issues>
.SH "AUTHORS"
.IX Header "AUTHORS"
Copyright (c) 2003, 2005, 2007\-2011, 2013 Piotr Roszatycki <dexter@debian.org>
Copyright (c) 2003\-2016 Piotr Roszatycki <dexter@debian.org>
.PP
Copyright (c) 2007 Mark Eichin <eichin@metacarta.com>
.PP
......
# pod2man --section=1 --release="fakechroot" --center=" " --date="29 Nov 2013"
# pod2man --section=1 --release="fakechroot" --center=" " --date="17 Nov 2016"
#
=head1 NAME
......@@ -58,7 +58,7 @@ directly.
=item B<-s>|B<--use-system-libs>
Use system libraries before chroot's libraries. This might be a workaround if
system dynamic linker can not load F<libc.so> from fake chroot.
system dynamic linker cannot load F<libc.so> from fake chroot.
Try this setting if you noticed following errors:
......@@ -107,7 +107,7 @@ but sometimes a fixed location at build time is not feasible.
=item [B<-->] I<command>
Any command you want to be ran as fakechroot. Use 'B<-->' if in the command
Any command you want to be run as fakechroot. Use 'B<-->' if in the command
you have other options that may confuse fakechroot's option parsing.
=item B<-h>
......@@ -230,6 +230,8 @@ of list are separated with colon.
The F</dev>, F</proc> and F</sys> directories are excluded by default if this
environment variable is not set.
This list has to contain at most 100 elements.
=item B<FAKECHROOT_ELFLOADER>
A path to another dynamic linker (i.e. F</lib/ld-linux.so.2> for i386
......@@ -388,7 +390,7 @@ L<https://github.com/fakechroot/fakechroot/issues>
=head1 AUTHORS
Copyright (c) 2003, 2005, 2007-2011, 2013 Piotr Roszatycki <dexter@debian.org>
Copyright (c) 2003-2016 Piotr Roszatycki <dexter@debian.org>
Copyright (c) 2007 Mark Eichin <eichin@metacarta.com>
......
......@@ -181,6 +181,7 @@ CHROOT = @CHROOT@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEBOOTSTRAP = @DEBOOTSTRAP@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
......@@ -195,6 +196,7 @@ ENV = @ENV@
EXEEXT = @EXEEXT@
EXTRA_CFLAGS = @EXTRA_CFLAGS@
EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
FAKEROOT = @FAKEROOT@
FGREP = @FGREP@
GREP = @GREP@
HAVE_VISIBILITY = @HAVE_VISIBILITY@
......@@ -214,6 +216,7 @@ LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
......
......@@ -6,7 +6,7 @@
# chroot environment. It copies original LD_LIBRARY_PATH and adds prefix to
# each directory for this variable.
#
# (c) 2011, 2013 Piotr Roszatycki <dexter@debian.org>, LGPL
# (c) 2011, 2013, 2016 Piotr Roszatycki <dexter@debian.org>, LGPL
fakechroot_chroot_load_ldsoconf () {
......@@ -39,43 +39,55 @@ fakechroot_chroot_chroot="${FAKECHROOT_CMD_ORIG:-chroot}"
fakechroot_chroot_base="$FAKECHROOT_BASE_ORIG"
fakechroot_chroot_n=1
# records the content of LD_LIBRARY_PATH at first chroot invocation
if [ -z "$fakechroot_chroot_base" -a -n "$LD_LIBRARY_PATH" ]; then
FAKECHROOT_LDLIBPATH="$LD_LIBRARY_PATH"
export FAKECHROOT_LDLIBPATH
fi
fakechroot_chroot_n=0
for fakechroot_chroot_opt in "$@"; do
fakechroot_chroot_n=$(($fakechroot_chroot_n + 1))
case "$fakechroot_chroot_opt" in
-*)
continue
;;
*)
fakechroot_chroot_newroot="$fakechroot_chroot_opt"
fakechroot_chroot_requested_newroot="$fakechroot_chroot_opt"
break
;;
esac
fakechroot_chroot_n=$(($fakechroot_chroot_n + 1))
done
# absolute paths in fakechroot_chroot_opt are relative to FAKECHROOT_BASE_ORIG
if [ "${fakechroot_chroot_requested_newroot#/}" != "$fakechroot_chroot_requested_newroot" ]; then
fakechroot_chroot_newroot="${fakechroot_chroot_base}${fakechroot_chroot_requested_newroot}"
else
fakechroot_chroot_newroot="$fakechroot_chroot_requested_newroot"
fi
if [ -d "$fakechroot_chroot_newroot" ]; then
fakechroot_chroot_newroot=`cd "$fakechroot_chroot_opt"; pwd -P`
fakechroot_chroot_newroot=`cd "$fakechroot_chroot_newroot"; pwd -P`
fakechroot_chroot_paths=
# append newroot to each directory from original LD_LIBRARY_PATH
fakechroot_chroot_IFS_bak="$IFS" IFS=:
for fakechroot_chroot_d in $LD_LIBRARY_PATH; do
fakechroot_chroot_paths="${fakechroot_chroot_paths:+$fakechroot_chroot_paths:}$fakechroot_chroot_base$fakechroot_chroot_newroot/${fakechroot_chroot_d#/}"
for fakechroot_chroot_d in $FAKECHROOT_LDLIBPATH; do
fakechroot_chroot_paths="${fakechroot_chroot_paths:+$fakechroot_chroot_paths:}$fakechroot_chroot_newroot/${fakechroot_chroot_d#/}"
done
IFS="$fakechroot_chroot_IFS_bak"
# append newroot to each directory from new /etc/ld.so.conf
fakechroot_chroot_paths_ldsoconf=""
if [ -f