RPM Community Forums

Mailing List Message of <rpm-users>

Re: vcheck question

From: Ralf S. Engelschall <rse+rpm-users@rpm5.org>
Date: Sat 05 Apr 2008 - 20:11:22 CEST
Message-ID: <20080405181122.GA74120@engelschall.com>
On Sat, Apr 05, 2008, Jeff Johnson wrote:

> [...]
> AFAIK vcheck is functional in rpm, but there may be some slight
> differences in rpmbuild options and usage that may still depend on
> OpenPKG.

%track is fully functional in RPM 5 -- I've just checked it a few
minutes ago (see my reply on rpm-devel@, too). OpenPKG uses %track the
same way, it just uses a larger section prolog in order make sure that
the external "vcheck" package is installed (which exists because vcheck
depends on "perl", "perl-www" and a bunch of other packages):

#   special %track section support
%__spec_track_pre\
VCFILE="%{_tmppath}/%{name}-%{version}-%{release}.track.vc"\
rm -f $VCFILE\
set -o noclobber\
sed -e 's;^ *#.*$;;' -e 's;^    ;;' >$VCFILE <<'EOF'\
%{nil}
%__spec_track_post EOF\
if [ ".%{?___track_dump}" = .yes ]; then\
    cat $VCFILE\
else\
    if [ ! -f "%{l_vcheck}" ]; then\
        echo "rpm:ERROR: Vendor source tracking functionality currently not available because"\
        echo "rpm:ERROR: URL tracking tool vcheck(1) not found under \\"%{l_vcheck}\\"."\
        echo "rpm:ERROR: You have to install the OpenPKG \\"vcheck\\" package first or set"\
        echo "rpm:ERROR: the RPM macro \\"%%{l_vcheck}\\" to the path of your vcheck(1) tool."\
        exit 0\
    fi\
    ( echo "config = {"\
      echo "}"\
    ) >>$VCFILE\
    %{l_vcheck} %{verbose:--verbose}%{!verbose:--noverbose} -f $VCFILE || true\
fi\
rm -f $VCFILE\
%{nil}




                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Sat Apr 5 20:14:03 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.