This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [g-b-s Patch: next try] Write and save logfiles forconfigure/make/check/install


>>>>> Igor Pechtchanski writes:

    > Yes, .logs, or LOGS, or even just /usr/src/$PACKAGE[*] -- it's up to you.
    > As for deleting...  What I normally do with source packages is run
    > "./PKG-VER.sh prep", and then move PKG-VER.sh, PKG-VER.tar and
    > PKG-VER.patch to PKG-VER/CYGWIN-PATCHES.  That helps me keep my /usr/src
    > reasonably clean.  But that's just me, and others may not want stuff
    > deleted without their permission.
    > 	Igor
    > [*] If you choose the "no subdirectory" approach, beware that the g-b-s
    > as it stands will overwrite the logs.  That's why I suggested that the
    > logs be created with lowercase names initially, but renamed to upper case
    > in .spkg before building the source package.

Ok, I try again. Now after unpacking of the source archive you have the original
logfiles compressed under /usr/src. This archive gets unpacked to
/usr/src/$PACKAGE/.buildlogs during prep(). configure/make/check/install()
still put their logfiles to /usr/src/$PACKAGE/.sinst so it's easy to
diff them against their counterparts under /usr/src/$PACKAGE/.buildlogs.


 2005-10-10  Dr. Volker Zell  <dr.volker.zell@oracle.com>

 	* templates/generic-build-script (log_pkg_name): New.
 	(configurelogfile): New.
 	(makelogfile): New.
 	(checklogfile): Name change.
 	(installlogfile): New.
        (buildlogdir): New.
        (conf): Add logging.
 	(build): Add logging.
 	(check): Add logging.
 	(install): Add logging.
 	(spkg): Compress logfiles.
        (mkdirs): Incorporate buildlogdir.
        (prep): Unpack build logfiles.

73a74
> export log_pkg_name=${FULLPKG}-BUILDLOGS.tar.bz2
82c83,87
< export checkfile=${topdir}/${FULLPKG}.check
---
> export buildlogdir=${srcdir}/.buildlogs
> export configurelogfile=${srcinstdir}/${FULLPKG}-CONFIGURE.LOG
> export makelogfile=${srcinstdir}/${FULLPKG}-MAKE.LOG
> export checklogfile=${srcinstdir}/${FULLPKG}-CHECK.LOG
> export installlogfile=${srcinstdir}/${FULLPKG}-INSTALL.LOG
177c182
<   rm -fr ${objdir} ${instdir} ${srcinstdir} && \
---
>   rm -fr ${objdir} ${instdir} ${srcinstdir} ${buildlogdir} && \
180c185,186
<   mkdir -p ${srcinstdir} )
---
>   mkdir -p ${srcinstdir} && \
>   mkdir -p ${buildlogdir} )
185d190
<   cd ${topdir} && \
189c194,198
<   mkdirs )
---
>   mkdirs && \
>   if [ -f ${topdir}/${log_pkg_name} ] ; then \
>     cd ${buildlogdir} && \
>     tar xvjf ${topdir}/${log_pkg_name}
>   fi )
200c209
<   --datadir='${prefix}/share' )
---
>   --datadir='${prefix}/share' 2>&1 | tee ${configurelogfile} )
210c219
<   make CFLAGS="${MY_CFLAGS}" )
---
>   make CFLAGS="${MY_CFLAGS}" 2>&1 | tee ${makelogfile} )
214c223
<   make ${test_rule} | tee ${checkfile} 2>&1 )
---
>   make ${test_rule} 2>&1 | tee ${checklogfile} )
223c232
<   make install DESTDIR=${instdir} && \
---
>   make install DESTDIR=${instdir} 2>&1 | tee ${installlogfile} && \
342a352
>   tar cvjf ${log_pkg_name} *.LOG && rm *.LOG && \

Ciao
  Volker

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]