RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rpm -bt assertion abort

From: Jeff Johnson <n3npq@mac.com>
Date: Fri 21 Dec 2007 - 15:51:43 CET
Message-Id: <2EBE6737-73CA-4AE7-A7CE-E0D17F3985E6@mac.com>
OpenPKG and rpm-5.0 are diverging over how arbitrary
%track gets configured and used.

E.g. vcheck is (usually) present in %{_rpmhome} now, so
the unavailable check is perhaps unnecessary.

The invocation in macros.in has no -v option too.

And there is no || : to mask the returned exit code.

Dunno what is desired, easy fixing though.

What is realloy needed (imho) is to get vcheck wired into
--specsrpm and into a BuildRequires: vcheck(...) probe
(but that's just my teste, -bt is just different).

73 de Jeff

On Dec 21, 2007, at 4:12 AM, Ralf S. Engelschall wrote:

> 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
>
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> Developer Communication List                        rpm-devel@rpm5.org
Received on Fri Dec 21 15:52:06 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.