blob a2a13dcdfcaa2af51d89110f23a3b49943e7559d 9433 bytes (raw)
name: build-sorted-ok-ko-packages.sh # note: path name is non-authoritative(*)
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
| | #!/bin/bash -
set -o nounset # Treat unset variables as an error
mngt_dir()
{
local dirname=$1
rm -rf ${dirname}.bk
if [ -e $dirname ]; then
mv $dirname ${dirname}.bk
fi
mkdir ${dirname}
}
DEPENDENCIES_DIR="packages-dependencies"
KO_OUT_LOG_DIR="ko-out-log-dir"
OUT_FILE_NAME_BASE="packages-status"
OUT_FILE_NAME_EXT="wiki"
OUT_FILE_NAME=${OUT_FILE_NAME_BASE}.${OUT_FILE_NAME_EXT}
rm -f ${OUT_FILE_NAME}.bk
if [ -e $OUT_FILE_NAME ]; then
mv $OUT_FILE_NAME ${OUT_FILE_NAME}.bk
fi
mngt_dir ${DEPENDENCIES_DIR}
mngt_dir ${KO_OUT_LOG_DIR}
NB_OK=0
NB_KO=0
NB_UNKNOWN=0
file_header()
{
local title="Packages status"
echo ""
echo "start file $OUT_FILE_NAME"
echo ""
echo "" >> $OUT_FILE_NAME
echo "= $title =" >> $OUT_FILE_NAME
echo "" >> $OUT_FILE_NAME
}
section_header()
{
local title=$1
echo ""
echo ""
echo "start section \"$title\""
echo "" >> $OUT_FILE_NAME
echo "== $title ==" >> $OUT_FILE_NAME
echo "" >> $OUT_FILE_NAME
echo "| package | status | nb dependencies |" >> $OUT_FILE_NAME
NB_OK=0
NB_KO=0
NB_UNKNOWN=0
}
section_footer()
{
echo "" >> $OUT_FILE_NAME
echo "nb packages OK in section: $NB_OK" >> $OUT_FILE_NAME
echo "" >> $OUT_FILE_NAME
echo "nb packages *KO* in section: $NB_KO" >> $OUT_FILE_NAME
echo "" >> $OUT_FILE_NAME
echo "nb packages UNKNOWN in section: $NB_UNKNOWN" >> $OUT_FILE_NAME
echo "" >> $OUT_FILE_NAME
echo "" >> $OUT_FILE_NAME
}
add_package_status()
{
local package=$1
local status=$2
local nb_deps=$3
if [ "$status" = "OK" ]; then
NB_OK=$(($NB_OK+1))
elif [ "$status" = "KO" ]; then
status="*KO*"
NB_KO=$(($NB_KO+1))
else
NB_UNKNOWN=$(($NB_UNKNOWN+1))
fi
echo "| $package | $status | $nb_deps |" >> $OUT_FILE_NAME
}
LIST_PACK_SUPPOSED_OK=""
LIST_PACK_SUPPOSED_OK+=" xz"
LIST_PACK_SUPPOSED_OK+=" tk"
LIST_PACK_SUPPOSED_OK+=" m4"
LIST_PACK_SUPPOSED_OK+=" ed"
LIST_PACK_SUPPOSED_OK+=" bc"
LIST_PACK_SUPPOSED_OK+=" tcl"
LIST_PACK_SUPPOSED_OK+=" sed"
LIST_PACK_SUPPOSED_OK+=" mpc"
LIST_PACK_SUPPOSED_OK+=" lzo"
LIST_PACK_SUPPOSED_OK+=" isl"
LIST_PACK_SUPPOSED_OK+=" gss"
LIST_PACK_SUPPOSED_OK+=" gmp"
LIST_PACK_SUPPOSED_OK+=" bdb"
LIST_PACK_SUPPOSED_OK+=" acl"
LIST_PACK_SUPPOSED_OK+=" zlib"
LIST_PACK_SUPPOSED_OK+=" sudo"
LIST_PACK_SUPPOSED_OK+=" perl"
LIST_PACK_SUPPOSED_OK+=" pcre"
LIST_PACK_SUPPOSED_OK+=" mpfr"
LIST_PACK_SUPPOSED_OK+=" make"
LIST_PACK_SUPPOSED_OK+=" lzip"
LIST_PACK_SUPPOSED_OK+=" gzip"
LIST_PACK_SUPPOSED_OK+=" grep"
LIST_PACK_SUPPOSED_OK+=" gdbm"
LIST_PACK_SUPPOSED_OK+=" gawk"
LIST_PACK_SUPPOSED_OK+=" fuse"
LIST_PACK_SUPPOSED_OK+=" flex"
LIST_PACK_SUPPOSED_OK+=" flac"
LIST_PACK_SUPPOSED_OK+=" file"
LIST_PACK_SUPPOSED_OK+=" fftw"
LIST_PACK_SUPPOSED_OK+=" bash"
LIST_PACK_SUPPOSED_OK+=" attr"
LIST_PACK_SUPPOSED_OK+=" which"
LIST_PACK_SUPPOSED_OK+=" unzip"
LIST_PACK_SUPPOSED_OK+=" rhash"
LIST_PACK_SUPPOSED_OK+=" libuv"
LIST_PACK_SUPPOSED_OK+=" libgc"
LIST_PACK_SUPPOSED_OK+=" libev"
LIST_PACK_SUPPOSED_OK+=" guile"
LIST_PACK_SUPPOSED_OK+=" groff"
LIST_PACK_SUPPOSED_OK+=" gperf"
LIST_PACK_SUPPOSED_OK+=" glibc"
LIST_PACK_SUPPOSED_OK+=" expat"
LIST_PACK_SUPPOSED_OK+=" bzip2"
LIST_PACK_SUPPOSED_OK+=" bison"
LIST_PACK_SUPPOSED_OK+=" xtrans"
LIST_PACK_SUPPOSED_OK+=" tzdata"
LIST_PACK_SUPPOSED_OK+=" sqlite"
LIST_PACK_SUPPOSED_OK+=" shishi"
LIST_PACK_SUPPOSED_OK+=" shadow"
LIST_PACK_SUPPOSED_OK+=" python"
LIST_PACK_SUPPOSED_OK+=" nettle"
LIST_PACK_SUPPOSED_OK+=" libxft"
LIST_PACK_SUPPOSED_OK+=" libxcb"
LIST_PACK_SUPPOSED_OK+=" libxau"
LIST_PACK_SUPPOSED_OK+=" libx11"
LIST_PACK_SUPPOSED_OK+=" libpng"
LIST_PACK_SUPPOSED_OK+=" libogg"
LIST_PACK_SUPPOSED_OK+=" libidn"
LIST_PACK_SUPPOSED_OK+=" libffi"
LIST_PACK_SUPPOSED_OK+=" libelf"
LIST_PACK_SUPPOSED_OK+=" libcap"
LIST_PACK_SUPPOSED_OK+=" libbsd"
LIST_PACK_SUPPOSED_OK+=" indent"
LIST_PACK_SUPPOSED_OK+=" gnutls"
LIST_PACK_SUPPOSED_OK+=" c-ares"
LIST_PACK_SUPPOSED_OK+=" texinfo"
LIST_PACK_SUPPOSED_OK+=" python2"
LIST_PACK_SUPPOSED_OK+=" psutils"
LIST_PACK_SUPPOSED_OK+=" ncurses"
LIST_PACK_SUPPOSED_OK+=" libxslt"
LIST_PACK_SUPPOSED_OK+=" libxml2"
LIST_PACK_SUPPOSED_OK+=" libxext"
LIST_PACK_SUPPOSED_OK+=" libtool"
LIST_PACK_SUPPOSED_OK+=" libtiff"
LIST_PACK_SUPPOSED_OK+=" libssh2"
LIST_PACK_SUPPOSED_OK+=" libltdl"
LIST_PACK_SUPPOSED_OK+=" libjpeg"
LIST_PACK_SUPPOSED_OK+=" libidn2"
LIST_PACK_SUPPOSED_OK+=" jansson"
LIST_PACK_SUPPOSED_OK+=" shepherd"
LIST_PACK_SUPPOSED_OK+=" net-base"
LIST_PACK_SUPPOSED_OK+=" libxdmcp"
LIST_PACK_SUPPOSED_OK+=" libtasn1"
LIST_PACK_SUPPOSED_OK+=" libpaper"
LIST_PACK_SUPPOSED_OK+=" jemalloc"
LIST_PACK_SUPPOSED_OK+=" jbig2dec"
LIST_PACK_SUPPOSED_OK+=" gs-fonts"
LIST_PACK_SUPPOSED_OK+=" freetype"
LIST_PACK_SUPPOSED_OK+=" elfutils"
LIST_PACK_SUPPOSED_OK+=" binutils"
LIST_PACK_SUPPOSED_OK+=" automake"
LIST_PACK_SUPPOSED_OK+=" autoconf"
LIST_PACK_SUPPOSED_OK+=" alsa-lib"
LIST_PACK_SUPPOSED_OK+=" xorgproto"
LIST_PACK_SUPPOSED_OK+=" xcb-proto"
LIST_PACK_SUPPOSED_OK+=" linux-pam"
LIST_PACK_SUPPOSED_OK+=" libvorbis"
LIST_PACK_SUPPOSED_OK+=" libgcrypt"
LIST_PACK_SUPPOSED_OK+=" inetutils"
LIST_PACK_SUPPOSED_OK+=" findutils"
LIST_PACK_SUPPOSED_OK+=" e2fsprogs"
LIST_PACK_SUPPOSED_OK+=" diffutils"
LIST_PACK_SUPPOSED_OK+=" coreutils"
LIST_PACK_SUPPOSED_OK+=" util-linux"
LIST_PACK_SUPPOSED_OK+=" libxrender"
LIST_PACK_SUPPOSED_OK+=" libsndfile"
LIST_PACK_SUPPOSED_OK+=" libsigsegv"
LIST_PACK_SUPPOSED_OK+=" libfontenc"
LIST_PACK_SUPPOSED_OK+=" guile-json"
LIST_PACK_SUPPOSED_OK+=" fontconfig"
LIST_PACK_SUPPOSED_OK+=" util-macros"
LIST_PACK_SUPPOSED_OK+=" mkfontscale"
LIST_PACK_SUPPOSED_OK+=" linux-libre"
LIST_PACK_SUPPOSED_OK+=" ghostscript"
LIST_PACK_SUPPOSED_OK+=" docbook-xsl"
LIST_PACK_SUPPOSED_OK+=" docbook-xml"
LIST_PACK_SUPPOSED_OK+=" bash-static"
LIST_PACK_SUPPOSED_OK+=" libunistring"
LIST_PACK_SUPPOSED_OK+=" libgpg-error"
LIST_PACK_SUPPOSED_OK+=" bash-minimal"
LIST_PACK_SUPPOSED_OK+=" libsamplerate"
LIST_PACK_SUPPOSED_OK+=" libatomic-ops"
LIST_PACK_SUPPOSED_OK+=" e2fsck-static"
LIST_PACK_SUPPOSED_OK+=" wireless-regdb"
LIST_PACK_SUPPOSED_OK+=" python-wrapper"
LIST_PACK_SUPPOSED_OK+=" python-minimal"
LIST_PACK_SUPPOSED_OK+=" guile-readline"
LIST_PACK_SUPPOSED_OK+=" guile-gdbm-ffi"
LIST_PACK_SUPPOSED_OK+=" gettext-minimal"
LIST_PACK_SUPPOSED_OK+=" libpthread-stubs"
LIST_PACK_SUPPOSED_OK+=" openfwwf-firmware"
LIST_PACK_SUPPOSED_OK+=" glibc-utf8-locales"
LIST_PACK_SUPPOSED_OK+=" ath9k-htc-firmware"
LIST_PACK_SUPPOSED_OK+=" linux-libre-headers"
LIST_PACK_SUPPOSED_OK+=" guile-static-stripped"
LIST_PACK_SUPPOSED_OK+=" python-minimal-wrapper"
LIST_PACK_SUPPOSED_OK+=" pkg-config"
LIST_PACK_SUPPOSED_OK+=" libarchive"
LIST_PACK_SUPPOSED_OK+=" cyrus-sasl"
LIST_PACK_SUPPOSED_OK+=" tcsh"
LIST_PACK_SUPPOSED_OK+=" xmlto"
LIST_PACK_SUPPOSED_OK+=" icu4c" # ?
LIST_PACK_SUPPOSED_OK+=" mit-krb5" # ok ?
LIST_PACK_SUPPOSED_OK+=" help2man"
LIST_PACK_SUPPOSED_OK+=" mkfontdir"
LIST_PACK_SUPPOSED_OK+=" lvm2"
LIST_PACK_SUPPOSED_OK+=" eudev"
LIST_PACK_SUPPOSED_OK+=" procps"
LIST_PACK_SUPPOSED_OK+=" alsa-utils"
LIST_PACK_SUPPOSED_OK+=" boost"
LIST_PACK_SUPPOSED_OK+=" swig"
LIST_PACK_SUPPOSED_OK+=" doxygen"
LIST_PACK_SUPPOSED_OK+=" curl"
LIST_PACK_SUPPOSED_OK+=" nghttp2"
LIST_PACK_SUPPOSED_OK+=" openldap"
LIST_PACK_SUPPOSED_OK+=" git-minimal"
LIST_PACK_SUPPOSED_KO=""
LIST_PACK_SUPPOSED_KO+=" libnl"
LIST_PACK_SUPPOSED_KO+=" crda" # depends on libnl
LIST_PACK_SUPPOSED_KO+=" cmake"
LIST_PACK_SUPPOSED_KO+=" guile-wm"
LIST_PACK_SUPPOSED_KO+=" guile-xcb"
count_dependencies()
{
local pack="$1"
local depsfile="$DEPENDENCIES_DIR/${pack}.dot"
guix graph -t bag-emerged $pack > $depsfile
count=$(cat $depsfile | grep "\->" | wc -l)
echo $count
}
build_pack()
{
local pack="$1"
local out_file=$(mktemp /tmp/test-guix.XXXXX)
local result=0
./pre-inst-env guix build --target=aarch64-linux-gnu $pack > $out_file 2>&1
result=$?
if [ $result -eq 0 ]; then
rm -f $out_file
else
mv $out_file ${KO_OUT_LOG_DIR}/${pack}.log
fi
return $result
}
build_all_in_list()
{
local list_pack="$@"
local status=unknown
for pack in $list_pack; do
echo ""
echo ""
echo "--------------- package $pack ---------------"
echo ""
build_pack $pack
if [ $? -eq 0 ]; then
status="OK"
else
status="KO"
fi
nb_deps="$(count_dependencies $pack)"
echo " package $pack is $status (and has $nb_deps dependencies)"
echo ""
echo ""
add_package_status $pack $status $nb_deps
done
}
if [ $# -ge 1 ]; then
EXEC_SUPPOSED_OK=0
EXEC_SUPPOSED_KO=0
while [ $# -ge 1 ]; do
case "$1" in
"--ok")
EXEC_SUPPOSED_OK=1
;;
"--ko")
EXEC_SUPPOSED_KO=1
;;
*)
echo "Unknown argument $1"
exit 1
;;
esac
shift
done
else
EXEC_SUPPOSED_OK=1
EXEC_SUPPOSED_KO=1
fi
file_header
if [ $EXEC_SUPPOSED_OK -eq 1 ]; then
section_header "Supposed OK Packages"
build_all_in_list $LIST_PACK_SUPPOSED_OK
section_footer
fi
if [ $EXEC_SUPPOSED_KO -eq 1 ]; then
section_header "Supposed KO Packages"
build_all_in_list $LIST_PACK_SUPPOSED_KO
section_footer
fi
|
debug log:
solving a2a13dcdfc ...
found a2a13dcdfc in https://yhetil.org/guix-patches/20190902153333.11190-49-m.othacehe@gmail.com/
applying [1/1] https://yhetil.org/guix-patches/20190902153333.11190-49-m.othacehe@gmail.com/
diff --git a/build-sorted-ok-ko-packages.sh b/build-sorted-ok-ko-packages.sh
new file mode 100755
index 0000000000..a2a13dcdfc
Checking patch build-sorted-ok-ko-packages.sh...
1:359: new blank line at EOF.
+
Applied patch build-sorted-ok-ko-packages.sh cleanly.
warning: 1 line adds whitespace errors.
index at:
100755 a2a13dcdfcaa2af51d89110f23a3b49943e7559d build-sorted-ok-ko-packages.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).