File: packages

package info (click to toggle)
fakechroot 2.9-1.1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,316 kB
  • ctags: 408
  • sloc: sh: 10,537; ansic: 2,223; perl: 126; makefile: 40
file content (263 lines) | stat: -rw-r--r-- 9,873 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# If the debian/rules or debian/control file is missing, rebuild the file:
#
#   $ yada rebuild control
#   $ yada rebuild rules


%define lsb_release_i %`lsb_release -s -i || echo Debian`
%define distributor %{?lsb_release_i:%{lsb_release_i}}%{!?lsb_release_i:Debian}

%define libfakechroot_version %`grep '^AC_INIT' configure.ac | sed 's/.*\[\([0-9][0-9.]*\)\].*/\1/'`

%define biarch_amd64_libdir_Debian /usr/lib32
%define biarch_amd64_libdir_Ubuntu /usr/lib32
%define biarch_amd64_libdir %{biarch_amd64_libdir_%{distributor}}

# distributor=%{distributor}
# biarch_amd64_libdir_%{distributor}=%{biarch_amd64_libdir_%{distributor}}
# biarch_amd64_libdir=%{biarch_amd64_libdir}

Source: fakechroot
Section: utils
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.8.0
%if %`dpkg --compare-versions %{YADA_VERSION} ge 0.54 && echo 1`
Homepage: http://fakechroot.alioth.debian.org/
Vcs-Browser: http://svn.debian.org/wsvn/fakechroot/trunk/
Vcs-Svn: svn://svn.debian.org/fakechroot/trunk/
%endif
Upstream-Source: http://svn.debian.org/wsvn/fakechroot/tags/%{libfakechroot_version}-1/fakechroot_%{libfakechroot_version}.orig.tar.gz?op=file
Description: gives a fake chroot environment
Copyright: LGPL
 libfakechroot -- fake chroot environment
 Copyright (c) 2003-2008 Piotr Roszatycki <dexter@debian.org>, LGPL
 Copyright (c) 2007      Mark Eichin <eichin@metacarta.com>, LGPL
 .
 klik2 support -- give direct access to a list of directories
 Copyright (c) 2006-2007 Lionel Tricon <lionel.tricon@free.fr>, LGPL
Build-Depends: lsb-release
Build-Depends: libc6-dev-i386 [amd64]
Build-Depends: libc6-dev-amd64 [i386]
Build-Depends: libc6-dev-powerpc [ppc64]
Build-Depends: libc6-dev-s390x [s390]
Build-Depends: libc6-dev-sparc64 [sparc]
Build-Depends: gcc-multilib [amd64 i386 powerpc s390 sparc]
Build: bash
 CC=${CC:-gcc}
 CFLAGS=${CFLAGS:--Wall -pedantic -g}
 if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
     CFLAGS="$CFLAGS -O0"
 else
     CFLAGS="$CFLAGS -O2 -fno-strict-aliasing"
 fi
 .
 COMMON_CONFIG="\
        --prefix=/usr \
        --mandir=/usr/share/man \
        --disable-static \
        --with-libpath=/usr/lib/fakechroot:/usr/lib64/fakechroot:/usr/lib32/fakechroot"
 .
 if ! [ -f configure-stamp ]; then
     mkdir -p build-tree-lib build-tree-fake build-tree-lib-biarch build-tree-fake-biarch
     pushd build-tree-lib
         CC="$CC" CFLAGS="$CFLAGS" \
             ../configure \
                 --cache-file=../config.cache \
                 --build=$DEB_BUILD_GNU_TYPE \
                 --host=$DEB_HOST_GNU_TYPE \
                 $COMMON_CONFIG
     popd
     pushd build-tree-fake
         CC="$CC" CFLAGS="$CFLAGS" \
             ../fake/configure \
                 --cache-file=../config.cache \
                 --build=$DEB_BUILD_GNU_TYPE \
                 --host=$DEB_HOST_GNU_TYPE \
                 $COMMON_CONFIG
     popd
     case "$DEB_HOST_ARCH" in
         amd64)
             pushd build-tree-lib-biarch
                 CC="gcc -m32" CFLAGS="$CFLAGS" \
                     ../configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=i386-linux \
                         --libdir=%{biarch_amd64_libdir} \
                         $COMMON_CONFIG
             popd
             pushd build-tree-fake-biarch
                 CC="gcc -m32" CFLAGS="$CFLAGS" \
                     ../fake/configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=i386-linux \
                         --libdir=%{biarch_amd64_libdir} \
                         $COMMON_CONFIG
             popd
             ;;
         i386)
             pushd build-tree-lib-biarch
                 CC="gcc -m64" CFLAGS="$CFLAGS" \
                     ../configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=x86_64-linux \
                         --libdir=/usr/lib64 \
                         $COMMON_CONFIG
             popd
             pushd build-tree-fake-biarch
                 CC="gcc -m64" CFLAGS="$CFLAGS" \
                     ../fake/configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=x86_64-linux \
                         --libdir=/usr/lib64 \
                         $COMMON_CONFIG
             popd
             ;;
         ppc64)
             pushd build-tree-lib-biarch
                 CC="gcc -m32" CFLAGS="$CFLAGS" \
                     ../configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=powerpc-linux \
                         --libdir=/usr/lib32 \
                         $COMMON_CONFIG
             popd
             pushd build-tree-fake-biarch
                 CC="gcc -m32" CFLAGS="$CFLAGS" \
                     ../fake/configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=powerpc-linux \
                         --libdir=/usr/lib32 \
                         $COMMON_CONFIG
             popd
             ;;
         s390)
             pushd build-tree-lib-biarch
                 CC="gcc -m64" CFLAGS="$CFLAGS" \
                     ../configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=s390x-linux \
                         --libdir=/usr/lib64 \
                         $COMMON_CONFIG
             popd
             pushd build-tree-fake-biarch
                 CC="gcc -m64" CFLAGS="$CFLAGS" \
                     ../fake/configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=s390x-linux \
                         --libdir=/usr/lib64 \
                         $COMMON_CONFIG
             popd
             ;;
         sparc)
             pushd build-tree-lib-biarch
                 CC="gcc -m64" CFLAGS="$CFLAGS" \
                     ../configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=sparc64-linux \
                         --libdir=/usr/lib64 \
                         $COMMON_CONFIG
             popd
             pushd build-tree-fake-biarch
                 CC="gcc -m64" CFLAGS="$CFLAGS" \
                     ../fake/configure \
                         --cache-file=../config.biarch.cache \
                         --build=$DEB_BUILD_GNU_TYPE \
                         --host=sparc64-linux \
                         --libdir=/usr/lib64 \
                         $COMMON_CONFIG
             popd
             ;;
     esac
     sleep 1 && touch configure-stamp
 fi
 .
 if ! [ build-stamp -nt configure-stamp ]; then
     pushd build-tree-lib
         make
         make check
     popd
     pushd build-tree-fake
         make
     popd
     case "$DEB_HOST_ARCH" in
         amd64|i386|ppc64|s390|sparc)
             pushd build-tree-lib-biarch
                 make
             popd
             pushd build-tree-fake-biarch
                 make
             popd
             ;;
     esac
     touch build-stamp
 fi
Clean: sh
 make distclean || make clean || true
 rm -f config.*cache || true
 rm -rf build-tree-* || true
 rm -f *-stamp || true

Package: fakechroot
Architecture: any
Depends: [/usr/lib/libfakechroot.so]
Conflicts: libc6-i386 (<= 2.9-18)
Description: gives a fake chroot environment
 This package provides a library which overrides libc functions, so
 it is possible to use root-specific tools without root privileges.
 .
 In fake chroot you can install i.e. Debian bootstrap, create developer's
 environment and build packages inside chroot'ed system using standard
 non-root user account.
Install: bash
 for i in build-tree-*; do
     pushd $i
         if [ -f Makefile ]; then
             rm -rf tmp || true
             make install DESTDIR=$ROOT
         fi
     popd
 done
 find $ROOT -name *.so -print0 | xargs -0r chmod -v -x
 find $ROOT -name *.la -print0 | xargs -0r rm -v -f
 yada install -doc -subdir examples scripts/restoremode.sh scripts/savemode.sh scripts/ldd.fake
Finalize: sh
 chmod -v u+s $ROOT/usr/lib/*.so
 .
 case "$DEB_HOST_ARCH" in
     amd64)
         chmod -v u+s $ROOT%{biarch_amd64_libdir}/*.so;;
     ppc64)
         chmod -v u+s $ROOT/usr/lib32/*.so;;
     i386|s390|sparc)
         chmod -v u+s $ROOT/usr/lib64/*.so;;
 esac
Overrides:
 debian-changelog-file-missing-or-wrong-name
 file-in-unusual-dir usr/lib64/fakechroot/libfakechroot.so
 file-in-unusual-dir usr/lib64/libfakechroot.so
 file-in-unusual-dir usr/lib32/fakechroot/libfakechroot.so
 file-in-unusual-dir usr/lib32/libfakechroot.so
 non-standard-dir-in-usr usr/lib64/
 non-standard-dir-in-usr usr/lib32/
 non-standard-file-perm usr/lib64/libfakechroot.so 4644 != 0644
 non-standard-file-perm usr/lib32/libfakechroot.so 4644 != 0644
 non-standard-file-perm usr/lib/libfakechroot.so 4644 != 0644
 no-shlibs-control-file usr/lib64/libfakechroot.so
 no-shlibs-control-file usr/lib32/libfakechroot.so
 no-shlibs-control-file usr/lib/libfakechroot.so
 package-name-doesnt-match-sonames libfakechroot
 package-name-doesnt-match-sonames libfakechroot.so
 shlib-with-bad-permissions usr/lib64/libfakechroot.so 4644
 shlib-with-bad-permissions usr/lib32/libfakechroot.so 4644
 shlib-with-bad-permissions usr/lib/libfakechroot.so 4644
Contains: libs