RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rpm -bt assertion abort

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Fri 21 Dec 2007 - 10:12:43 CET
Message-ID: <20071221091243.GA96004@engelschall.com>
On Fri, Dec 21, 2007, Ralf S. Engelschall wrote:

> With the latest "make %track an arbitrary section" changes
> I think a new bug was introduced:
>
> | $ /openpkg/bin/openpkg rpm -bt *spec
> | Assertion failed: (sb != NULL), function doScript, file build.c, line 170.
> | Abort trap: 6 (core dumped)
>
> With the previous original OpenPKG "%track" implementation this already
> worked fine a few days ago, so this must be related to the new code a
> few lines above build.c:170...

I don't know whether it is related to this, but the only difference
between stock RPM 5 HEAD as this morning and my OpenPKG environment is
this in my "rpmmacros":

---------------
#   special %track section support
%__spec_track_template 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} -v -f $VCFILE || true\
fi\
rm -f $VCFILE\
%{nil}
---------------

The .spec file I used for testing contained:

---------------
%track
    prog make = {
        version   = %{version}
        url       = ftp://ftp.gnu.org/gnu/make/
        regex     = make-(__VER__)\.tar\.gz
    }
---------------

But I think the bug isn't really related to this...

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Fri Dec 21 10:13:23 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.