Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 434 lines (361 sloc) 17.312 kb
4d89772 Dries Verachtert ok
DriesVerachtert authored
1 #!/bin/bash
2
3 ### dar-build [ -a <archs> ] [ -d <dists> ] [ -s <sdists> ] [ -f ] [ -t tag ] <app> ...
4
d5aa5b9 Dag Wieers Small fixes
authored
5 source "/usr/share/dar/dar-functions"
4d89772 Dries Verachtert ok
DriesVerachtert authored
6
25d9193 Dag Wieers Small updates, see ChangeLog.
authored
7 daropts ":a:d:fns:t:v" $@
4d89772 Dries Verachtert ok
DriesVerachtert authored
8 PKGS="$OPTS"
9
10 if [ ! -d "$ROOT" ]; then
53d8334 Dag Wieers Updates
authored
11 echo "ERROR: probably in chroot jail" >&2
12 exit 1
4d89772 Dries Verachtert ok
DriesVerachtert authored
13 fi
14
15 ### Clear important build variables
16 export -n CC_FLAGS CXX_FLAGS LD_PRELOAD LINGUAS
17
f430ae7 Dag Wieers Small change
authored
18 for arg in $PKGS; do
53d8334 Dag Wieers Updates
authored
19 DARBUILDRC=1
20
21 SPECDIR="$(dirname $arg)"
22 app="$(basename $arg .spec)"
23 SPECFILE="$PWD/$app.spec"
f19e134 Dag Wieers Major improvements
authored
24 MAKEFLAGS="%nil"
53d8334 Dag Wieers Updates
authored
25
26 if [ ! -f "$SPECFILE" ]; then SPECFILE="$SPECDIR/$app.spec"; fi
27 if [ ! -f "$SPECFILE" ]; then SPECFILE="$SPECSDIR/$app.spec"; fi
28 if [ ! -f "$SPECFILE" ]; then SPECFILE="$PWD/$app/$app.spec"; fi
29 if [ ! -f "$SPECFILE" ]; then SPECFILE="$SPECDIR/$app/$app.spec"; fi
30 if [ ! -f "$SPECFILE" ]; then SPECFILE="$SPECSDIR/$app/$app.spec"; fi
31 if [ ! -f "$SPECFILE" ]; then SPECFILE="$SPECSDIR/$SPECDIR/$app.spec"; fi
32
33 if [ "${SPECFILE:0:1}" != "/" ]; then SPECFILE="$PWD/$SPECFILE"; fi
34
35 SPECDIR="$(dirname $SPECFILE)"
36 SPECFILE="$SPECDIR/$app.spec"
37
38 if [ ! -f "$SPECFILE" ]; then
39 echo "ERROR: specfile \"$(basename $SPECFILE)\" is not found."
40 continue
41 fi
42
43 if [ ! -d "$SPECDIR" ]; then
44 echo "ERROR: specdir \"$SPECDIR\" is not found."
45 continue
46 fi
47
48 # if [ -d "$SPECDIR/.svn/" ]; then
49 # svn -q up "$SPECDIR/"
50 # fi
51
52 app="$(rpmconf Name)"
53
54 if [ -z "$app" ]; then
55 error "Problem with specfile \"$SPECFILE\". (Name is empty)"
56 continue
57 fi
58
59 mkdir -p "$PACKAGEDIR/$app/_buildlogs/" "$SPECDIR/"
60 ln -sf "$PACKAGEDIR/$app/_buildlogs/" "$SPECDIR/"
61 chown -R $BUILD_USER.$BUILD_GROUP "$PACKAGEDIR/$app/"
62 chown -R $BUILD_USER.$BUILD_GROUP "$SPECDIR/"
63 chmod -R a+r "$SPECDIR/"
64
65 set_dists
66 set_exclude_dist
67 set_exclusive_dist
68 set_source_dists
69 set_soapbox
70 set_as_root
71 set_ccache
72 set_distcc
73
74 # echo "Building $app package for dists: '$DISTS' and archs: '$ARCHS', tagged: '$TAG'"
75 for dist in $DISTS; do
76 RPMBUILDOPTS=""
77 if [ -r "$CONFIGDIR/dists/$dist/config" ]; then
78 source "$CONFIGDIR/dists/$dist/config"
79 else
80 warning "Configfile $CONFIGDIR/dists/$dist/config missing. Aborting."
81 continue
82 fi
83
6c81c6d Dag Wieers Improvements to DAR related to RPMforge-extras, duplicates and RHEL6
authored
84 set_tag
e8adfe1 Dag Wieers Small improvements.
authored
85 if [ "$TAG" ]; then
86 TAGS="$TAG"
87 fi
88
53d8334 Dag Wieers Updates
authored
89 if [ "$NODIST" ]; then
90 DISTTAG="0"
91 DISTNAME="nodist"
92 # ARCHS="noarch"
93 fi
94
95 if [ ! -d "$CHROOTDIR/$DISTNICK" ]; then
96 warning "Distribution $DISTNICK has no build environment ($CHROOTDIR/$DISTNICK). Aborting."
97 continue
98 fi
99
100 for exclude_dist in $EXCLUDE_DIST; do
101 if [ "$exclude_dist" == "$DISTNAME" -o "$exclude_dist" == "$DISTNICK" -o "$DISTNAME" == "nodist" ]; then
102 warning "Distribution $DISTNAME/$DISTARCH is excluded for package $app. Aborting."
103 continue 2
104 fi
105 done
106
107 if [ "$EXCLUSIVE_DIST" ]; then
108 EXCLUSIVE=0
109 for exclusive_dist in $EXCLUSIVE_DIST; do
110 if [ "$exclusive_dist" == "$DISTNAME" -o "$exclusive_dist" == "$DISTNICK" -o "$DISTNAME" == "nodist" ]; then
111 EXCLUSIVE=1
112 fi
113 done
114 if [ $EXCLUSIVE -ne 1 ]; then
115 warning "Distribution $DISTNAME/$DISTARCH is excluded for package $app. Aborting."
116 continue
117 fi
118 fi
119
120 ### Cleaning up nodebug shit
121 # perl -pi -e 's|-O2 -g|-O2|' $CHROOTDIR/$DISTNICK/usr/lib/rpm/{macros,*/macros,rpmrc}
122
123 ### Export RPMVER to rpmconf
124 export RPMVER="$(chroot $CHROOTDIR/$DISTNICK /bin/su -lm $BUILD_USER -c "rpm --version" | cut -d' ' -f3)"
125
126 set_archs
127
128 ### TODO: Check if etc/rpm/macros exists with proper content
129
130 for arch in $ARCHS; do
131 VERSION="$(rpmconf Version)"
132 RELEASE="$(rpmconf Release)"
133
77157ca Dag Wieers Required updates for supporting %{?dist} and various improvements.
authored
134 NEWSPECFILE="$TEMPDIR/$app-$VERSION-$RELEASE.spec"
135 RPMFILE="$app-$VERSION-$RELEASE.$arch.rpm"
136 LOGFILE="$app-$VERSION-$RELEASE.$arch"
137 LOGFILE_OK="$app-$VERSION-$RELEASE.$arch.ok.log"
138 LOGFILE_KO="$app-$VERSION-$RELEASE.$arch.ko.log"
53d8334 Dag Wieers Updates
authored
139 export MAKEFLAGS="%nil"
140
141 if [ "$arch" == "nosrc" ]; then
142 DARBUILDRC=0
143 break
144 fi
145
146 ### Check if already build (2 version schemes, multiple disttags)
147 for disttag in $DISTNAME $DISTTAG; do
148 for tag in $TAGS; do
6c81c6d Dag Wieers Improvements to DAR related to RPMforge-extras, duplicates and RHEL6
authored
149 rpmfile="$app-$VERSION-$RELEASE.$arch.rpm"
150 if [ -z "$FORCE_OVERWRITE" -a -f "$PACKAGEDIR/$app/$rpmfile" ]; then
151 warning "Package \"$PACKAGEDIR/$app/$rpmfile\" already exists."
152 continue 3
153 fi
53d8334 Dag Wieers Updates
authored
154 done
155 done
156
f19e134 Dag Wieers Major improvements
authored
157 if ! download_sources; then
158 continue
159 fi
160
53d8334 Dag Wieers Updates
authored
161 cp -af "$SPECFILE" "$NEWSPECFILE"
162
163 export origspecfile="$SPECFILE" specfile="$NEWSPECFILE" builddir="$BUILDDIR" chrootdir="$CHROOTDIR/$dist"
164 export app buildarch="$arch" distarch="$DISTARCH" disttag="$DISTNAME" repotag="$TAG" release="$RELEASE"
165 export force="$FORCE_OVERWRITE"
166 for script in $CONFIGDIR/scripts/pre-*.sh; do
167 source "$script"
168 done
169
170 ### Start logging
171 # rm -f "$PACKAGEDIR/$app/$LOGFILE"
172 ( echo "----- Build information -----"
173 echo "Package name: $app"
174 echo "Package version: $VERSION"
77157ca Dag Wieers Required updates for supporting %{?dist} and various improvements.
authored
175 echo "Package release: $RELEASE"
53d8334 Dag Wieers Updates
authored
176 echo "Packager: $(logname)"
177 echo "Distribution: $DISTNAME/$DISTARCH"
178 echo "Package arch: $arch"
179 echo "Build host: $(uname -n)"
180 echo "Build date: $(date)"
181
182 if [ $SOAPBOX -eq 1 -a -f "/lib/libsoapbox.so" -a -f "$CHROOTDIR/$dist/lib/libsoapbox.so" ]; then
183 echo "Soapbox: enabled"
184 else
185 echo "Soapbox: disabled"
186 fi
187
188 if [ $AS_ROOT -eq 1 ]; then
189 echo "BuildAsRoot: enabled (root)"
190 export HOME="/root"
191 export USER="root"
192 else
193 echo "BuildAsRoot: disabled ($BUILD_USER)"
194 export HOME="/home/$BUILD_USER"
195 export USER="$BUILD_USER"
196 fi
197
198 if [ $USE_DISTCC -ne 0 -a $DISTCC -eq 1 -a -n "$DISTCC_HOSTS" -a -x "$CHROOTDIR/$dist/usr/bin/distcc" -a -d "$CHROOTDIR/$dist/usr/lib/distcc/bin" ]; then
199 echo "Distcc: enabled"
200 echo "Distcc hosts: $DISTCC_HOSTS"
201 else
202 echo "Distcc: disabled"
203 fi
204
205 if [ $USE_CCACHE -ne 0 -a $CCACHE -eq 1 -a -x "$CHROOTDIR/$dist/usr/bin/ccache" -a -d "$CHROOTDIR/$dist/usr/lib/ccache/bin" ]; then
206 echo "Ccache: enabled"
207 else
208 echo "Ccache: disabled"
209 fi
210
211 ) &>"$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO"
212
213 ### Backup PATH
214 OLDPATH="$PATH"
215
216 ### Check for Distcc
217 if [ $USE_DISTCC -ne 0 -a $DISTCC -eq 1 -a -n "$DISTCC_HOSTS" -a -x "$CHROOTDIR/$dist/usr/bin/distcc" -a -d "$CHROOTDIR/$dist/usr/lib/distcc/bin" ]; then
218 if [ -z "$CPUNR" ]; then
219 CPUNR="$(( $(echo $DISTCC_HOSTS | wc -w) * 2 ))"
220 fi
221 if [ "$FORCE_VERBOSE" ]; then
222 export DISTCC_VERBOSE="1"
223 fi
224 if [ -d /root/.distcc/state/ ]; then
225 rmdir /root/.distcc/state/ &>/dev/null
226 fi
227 if [ $USE_ROOT -ne 1 -o $AS_ROOT -ne 1 ]; then
228 chown $BUILD_USER.$BUILD_USER $CHROOTDIR/$dist/root/.distcc/
229 # ln -sf $CHROOTDIR/$dist/home/$BUILD_USER/.distcc/state /root/.distcc/
230 # else
231 # ln -sf $CHROOTDIR/$dist/root/.distcc/state /root/.distcc/
232 fi
233 ln -sf $CHROOTDIR/$dist/root/.distcc/state /root/.distcc/
234 export DISTCC_LOG="$TEMPDIR/distcc-$LOGFILE"
235 rm -f "$DISTCC_LOG"
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
236 export MAKEFLAGS="-j$CPUNR CC='$DISTCC_CC' CXX='$DISTCC_CXX' GXX='$DISTCC_CXX'"
53d8334 Dag Wieers Updates
authored
237 export DISTCC_HOSTS CC="$DISTCC_CC" CXX="$DISTCC_CXX" GXX="$DISTCC_CXX"
238 export PATH="/usr/lib/distcc/bin:$PATH"
239 else
240 if [ "$CPUNR" -a $CPUNR -ne 0 -a $CPUNR -ne 1 ]; then
241 export MAKEFLAGS="-j$CPUNR"
242 else
243 export MAKEFLAGS="-j1"
244 fi
245 export -n DISTCC_HOSTS CC CXX GXX
246 fi
247
248 ### Check for Ccache
249 if [ $USE_CCACHE -ne 0 -a $CCACHE -eq 1 -a -x "$CHROOTDIR/$dist/usr/bin/ccache" -a -d "$CHROOTDIR/$dist/usr/lib/ccache/bin" ]; then
250 export CCACHE_DIR="$TEMPDIR/ccache-$dist"
251 export -n CCACHE_RECACHE
252 export PATH="/usr/lib/ccache/bin:$PATH"
253 mkdir -p "$CCACHE_DIR"
254 else
255 export CCACHE_RECACHE="1"
256 fi
257
258 ### Disable ExtUtils::AutoInstall in perl packages
f19e134 Dag Wieers Major improvements
authored
259 export PERL_AUTOINSTALL="--skipdeps --skip"
53d8334 Dag Wieers Updates
authored
260 export PERL_EXTUTILS_AUTOINSTALL="--skipdeps --skip"
261
262 ### Remove buildroot
263 rm -rf "$TEMPDIR/root-$app-$VERSION"
264
265 ### Prepare rpm options
266 if [ "$FORCE_VERBOSE" ]; then
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
267 RPMBUILDOPTS="$RPMBUILDOPTS -vv"
53d8334 Dag Wieers Updates
authored
268 fi
269
270 if [ "$FORCE_VERBOSE" == "yes" ]; then
271 echo "Building $dist/$arch [$SPECDIR/_buildlogs/$LOGFILE]."
272 fi
273
274 ### Check for Soapbox
275 if [ "$SOAPBOX" == "1" -a -f "/lib/libsoapbox.so" -a -f "$CHROOTDIR/$dist/lib/libsoapbox.so" ]; then
276 export SOAPBOXPATH="$PACKAGEDIR/$app/_buildlogs:$PACKAGEDIR/$app:$TEMPDIR:$BUILDDIR:/dev/null:/dev/tty:/tmp:/var/lib/rpm/__db:$HOME/.distcc"
277 export SOAPBOXLOG="$TEMPDIR/soapbox-$LOGFILE.log"
278 rm -f "$SOAPBOXLOG"
279 export LD_PRELOAD="/lib/libsoapbox.so"
280 fi
281
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
282 BUILDCMD="/usr/bin/rpmbuild -bb --clean $RPMBUILDOPTS --target $arch \
53d8334 Dag Wieers Updates
authored
283 --define \"_smp_mflags $MAKEFLAGS\" \
284 --define \"_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\" \
285 --define \"_initrddir %{_sysconfdir}/rc.d/init.d\" \
286 --define \"_rpmdir $PACKAGEDIR/$app\" \
287 --define \"_sourcedir $SPECDIR\" \
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
288 --define \"_builddir $ROOT/build\" \
53d8334 Dag Wieers Updates
authored
289 --define \"_tmppath $TEMPDIR\" \
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
290 --define \"_buildroot $TEMPDIR/$app-$VERSION-$RELEASE-root\" \
53d8334 Dag Wieers Updates
authored
291 --define \"debug_package %nil\" \
292 --define \"dtag $DISTNAME\" \
77157ca Dag Wieers Required updates for supporting %{?dist} and various improvements.
authored
293 --define \"dist .$DISTNAME.$TAG\" \
53d8334 Dag Wieers Updates
authored
294 --define \"$DISTNAME 1\" \
295 --define \"$DISTNICK 1\" \"$NEWSPECFILE\""
296
297 (
298 echo "Build command:" $BUILDCMD
299 echo "Build path: $PATH"
300
301 echo -e "\n----- Spec file -----"
302 cat "$NEWSPECFILE"
303
304 echo -e "\n----- Expanded spec file -----"
f19e134 Dag Wieers Major improvements
authored
305 expand_specfile $SPECFILE
53d8334 Dag Wieers Updates
authored
306
307 echo -e "\n----- Build log -----"
308
309 ### Check for building as user
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
310 if [ $AS_ROOT -ne 1 ]; then
311 echo "$BUILDCMD" | setarch $DISTARCH /usr/sbin/chroot "$CHROOTDIR/$dist" /bin/su -lm $BUILD_USER -c "/bin/bash --login -s"
53d8334 Dag Wieers Updates
authored
312 else
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
313 echo "$BUILDCMD" | setarch $DISTARCH /usr/sbin/chroot "$CHROOTDIR/$dist" /bin/bash --login -s
53d8334 Dag Wieers Updates
authored
314 fi
315
316 ) >>"$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO" 2>&1
317 # CHROOT="/usr/bin/compartment --chroot $CHROOTDIR/$dist --user $BUILD_USER --group $BUILD_USER --init /usr/lib/dar/compartment.sh --quiet"
318
319 RC=$?
320 export -n LD_PRELOAD
321
322 ### Restore PATH
323 export PATH="$OLDPATH"
324
325 ### Finish logging
326 ( echo -e "\n----- Return code -----"
327 echo "$RC"
328 if [ -d "$TEMPDIR/$app-$VERSION-$RELEASE-root" ]; then
329 echo -e "\n----- Buildroot content -----"
330 find "$TEMPDIR/$app-$VERSION-$RELEASE-root" 2>/dev/null
331 fi
332 if [ -s "$SOAPBOXLOG" ]; then
333 if [ $RC -eq 0 ]; then
334 warning "Soapbox violations, see \"$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO.gz\"."
335 else
336 warning "Soapbox violations, see log."
337 fi
338 echo -e "\n----- Actions outside buildroot -----"
339 cat "$SOAPBOXLOG"
340 RC=15
341 fi
342 rm -f "$SOAPBOXLOG"
343 echo -e "\n----- End of file -----"
344 ) >>"$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO" 2>&1
345
346 ### Check if an RPM package was successfully built.
347 grep -q -E '^Wrote: .*.rpm$' "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO"
348 RC=$?
349
350 if [ $RC -eq 0 ]; then
351 DARBUILDRC=0
352 mv -f "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO" "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_OK"
353 rm -f "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO.gz"
354 if [ "$FORCE_VERBOSE" == "yes" ]; then
355 echo -e "${_GR}Success${_DE} $app [$dist/$arch], see log [$SPECDIR/_buildlogs/$LOGFILE_OK]"
356 fi
357 echo "$app [$dist/$arch] ${SPECFILE/*\/} $LOGFILE_OK" >>/dar/log/dar-build-success.log
358 cp -au "$SPECFILE" "$PACKAGEDIR/$app/"
359
360 if [ "$RETAIN_LOGS" == "yes" ]; then
361 # bzip2 -9 -f "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_OK"
362 gzip -9 --rsyncable -f "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_OK"
363 fi
364
365 ### Clean up current and older logfile
366 rm -f "$DISTCC_LOG"
367
368 if [ -z "$SOURCE_DISTS" ]; then
369 SOURCE_DISTS="$DISTNICK"
370 fi
371 else
372 # log "Failed building package $app for $dist/$arch." >> "$LOGDIR/dar.log"
373 error "${_RE}Failed${_DE} $app [$dist/$arch], see log [$SPECDIR/_buildlogs/$LOGFILE_KO]"
374 echo "$app [$dist/$arch] ${SPECFILE/*\/} $LOGFILE_KO" >>/dar/log/dar-build-failed.log
375 # bzip2 -9 -f "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO"
376 gzip -9 --rsyncable -f "$PACKAGEDIR/$app/_buildlogs/$LOGFILE_KO"
377 fi
378 rm -f "$NEWSPECFILE"
379 done
380 done
381
f19e134 Dag Wieers Major improvements
authored
382 RPMFILE="$app-$VERSION-$RELEASE.src.rpm"
53d8334 Dag Wieers Updates
authored
383 ### Only build when there was a succesful binary build
384 # if [ -z "$NOSOURCE" -a "$DARBUILDRC" -eq 0 -o ! -f "$PACKAGEDIR/$app/$RPMFILE" ]; then
385 if [ -z "$NOSOURCE" -a "$DARBUILDRC" -eq 0 ]; then
386
387 if [ -z "$SOURCE_DISTS" ]; then SOURCE_DISTS="$DEFAULT_SOURCE_DISTS"; fi
388
389 for dist in $SOURCE_DISTS; do
390 if [ -r "$CONFIGDIR/dists/$dist/config" ]; then
391 source "$CONFIGDIR/dists/$dist/config"
392 else
393 warning "Configfile $CONFIGDIR/dists/$dist/config missing. Aborting."
394 continue
395 fi
396
f19e134 Dag Wieers Major improvements
authored
397 RPMFILE="$app-$VERSION-$RELEASE.src.rpm"
53d8334 Dag Wieers Updates
authored
398
399 NEWSPECFILE="$TEMPDIR/$app.spec"
400 cp -af "$SPECFILE" "$NEWSPECFILE"
401 export buildarch="src" distarch="$DISTARCH" disttag="$DISTNAME" specfile="$NEWSPECFILE" repotag="$TAG"
402 for script in $CONFIGDIR/scripts/pre-*.sh; do
403 source "$script"
404 done
405
406 if [ "$FORCE_VERBOSE" == "yes" ]; then
407 echo "Building source package $app using \"$SPECFILE\" for $dist"
408 fi
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
409 BUILDCMD="/usr/bin/rpmbuild -bs \
410 --define \"_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\" \
411 --define \"_srcrpmdir $PACKAGEDIR/$app\" \
412 --define \"_sourcedir $SPECDIR\" \
f19e134 Dag Wieers Major improvements
authored
413 --define \"dist .$TAG\" \
c39262d Dag Wieers Improvements to DAR for RHEL5 and LD_ASSUME_KERNEL handling.
authored
414 \"$NEWSPECFILE\""
415 echo "$BUILDCMD" | setarch $DISTARCH /usr/sbin/chroot "$CHROOTDIR/$dist" /bin/su -lm $BUILD_USER -c "/bin/bash --login -s" &>/dev/null
53d8334 Dag Wieers Updates
authored
416 RC=$?
417 if [ $RC -eq 0 ]; then
418 if [ "$FORCE_VERBOSE" == "yes" ]; then
77157ca Dag Wieers Required updates for supporting %{?dist} and various improvements.
authored
419 echo -e "${_BELL}${_GR}Success${_DE} $app [$dist/src], file in [$PACKAGEDIR/$app/]"
53d8334 Dag Wieers Updates
authored
420 fi
421 echo "$app [$dist/src] ${SPECFILE/*\/}" >>/dar/log/dar-build-success.log
422 else
77157ca Dag Wieers Required updates for supporting %{?dist} and various improvements.
authored
423 error "${_BELL}${_RE}Failed${_DE} $app [$dist/src], see log [$SPECDIR/_buildlogs/$LOGFILE]"
53d8334 Dag Wieers Updates
authored
424 echo "$app [$dist/src] ${SPECFILE/*\/}" >>/dar/log/dar-build-failed.log
425 fi
426
427 cp -au "$SPECFILE" "$PACKAGEDIR/$app/"
428 done
429
430 fi
4d89772 Dries Verachtert ok
DriesVerachtert authored
431 done
432
433 exit 0
Something went wrong with that request. Please try again.