This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[g-b-s Patch] Write and save logfiles forconfigure/make/check/install
- From: "Dr. Volker Zell" <Dr dot Volker dot Zell at oracle dot com>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 07 Oct 2005 18:34:38 +0200
- Subject: [g-b-s Patch] Write and save logfiles forconfigure/make/check/install
Hi
Sometimes during package reviews it would be useful to have the logs of the
original configure/make/check/install stage when the package was build,
but also for comparison between different versions. The patch below for the g-b-s
saves these logfiles in the src archive during the spkg stage
For example the texi2html-1.76-2-src.tar archive would include:
texi2html-1.76.tar.gz
texi2html-1.76-2.patch
texi2html-1.76-2.sh
texi2html-1.76-2-INSTALL.LOG
texi2html-1.76-2-CHECK.LOG
texi2html-1.76-2-MAKE.LOG
texi2html-1.76-2-CONFIGURE.LOG
2005-10-07 Dr. Volker Zell <Dr.Volker.Zell@oracle.com>
* generic-build-script: Save logfiles for configure/
make/check/install stage during spkg stage in the source
package
--- generic-build-script.orig 2005-10-06 23:53:01.969838400 +0200
+++ generic-build-script 2005-10-07 18:14:14.677160000 +0200
@@ -79,7 +79,10 @@
export objdir=${srcdir}/.build
export instdir=${srcdir}/.inst
export srcinstdir=${srcdir}/.sinst
-export checkfile=${topdir}/${FULLPKG}.check
+export configurelogfile=${srcinstdir}/${FULLPKG}-CONFIGURE.LOG
+export makelogfile=${srcinstdir}/${FULLPKG}-MAKE.LOG
+export checklogfile=${srcinstdir}/${FULLPKG}-CHECK.LOG
+export installlogfile=${srcinstdir}/${FULLPKG}-INSTALL.LOG
prefix=/usr
sysconfdir=/etc
@@ -197,7 +200,7 @@
--libdir='${prefix}/lib' --includedir='${prefix}/include' \
--mandir='${prefix}/share/man' --infodir='${prefix}/share/info' \
--libexecdir='${sbindir}' --localstatedir="${localstatedir}" \
- --datadir='${prefix}/share' )
+ --datadir='${prefix}/share' 2>&1 | tee ${configurelogfile} )
}
reconf() {
(cd ${topdir} && \
@@ -207,11 +210,11 @@
}
build() {
(cd ${objdir} && \
- make CFLAGS="${MY_CFLAGS}" )
+ make CFLAGS="${MY_CFLAGS}" 2>&1 | tee ${makelogfile} )
}
check() {
(cd ${objdir} && \
- make ${test_rule} | tee ${checkfile} 2>&1 )
+ make ${test_rule} 2>&1 | tee ${checklogfile} )
}
clean() {
(cd ${objdir} && \
@@ -220,7 +223,7 @@
install() {
(cd ${objdir} && \
rm -fr ${instdir}/* && \
- make install DESTDIR=${instdir} && \
+ make install DESTDIR=${instdir} 2>&1 | tee ${installlogfile} && \
for f in ${prefix}/share/info/dir ${prefix}/info/dir ; do \
if [ -f ${instdir}${f} ] ; then \
rm -f ${instdir}${f} ; \
Ciao
Volker