Re: "make test" failing with DBD-Sybase 1.07{,_01} vs. DBI olderthan 1.34

"Alan Olsen" <[email protected]> Wed, 03 May 2006 12:28:53 -0700
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Organization ODS Health Plans
Message-ID <[email protected]>
On Wed, 2006-05-03 at 11:46 -0700, Greg Earle wrote:
> Michael Peppler wrote:
> > On Tue, 2006-05-02 at 18:16 -0700, Greg Earle wrote:
> >> Hi Michael,
> >>
> >> This really belongs over on dbi-users I suppose, but I'm on
> >> this list and not on that one.
> >>
> >> I'm trying to create an RPM for DBD-Sybase (1.07 or 1.07_01,
> >> doesn't matter) via "rpmbuild -ba". I've cooked up a .spec
> >> file (this is on Red Hat Enterprise Linux 3 with Sybase 12.5.1,
> >> in case it matters) and the build works fine until it gets to
> >> the very, very end:
> >>
> >> [root@rhel3box SPECS]# rpmbuild -ba perl-DBD-Sybase.spec
> >> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.18545
> >> + umask 022
> >> + cd /usr/src/redhat/BUILD
> >>
> >> [...]
> >>
> >> t/xblk..........ok
> >> t/xblob.........ok 10/11# Looks like you planned 11 tests but only 
> >> ran 10.
> >> t/xblob.........dubious
> >> Test returned status 1 (wstat 256, 0x100)
> >
> > That's a bug in the xblob.t script. The SKIP call should be
> > skip "requires ...", 4
> >
> > If you fix that you should be fine.
> 
> Thanks Michael ... will there be a 1.0.7_02 anytime soon?
> 
> If you're familiar with building RPMs from source tarballs on
> Linux, the problem is that it fetches the tarball from the
> original source (e.g., your machine) and builds it from that,
> so I am not allowed any input to that process, i.e. to alter
> the t/xblob.t script.  What it downloads from you has to work
> right  :-)

You can add patches to the tarball yourself.  Take a look at any of the
other rpm spec files and you will see examples.

Take a look at page 187 of "Red Hat RPM Guide" by Eric Foster-Johnson
for more information on the patch directive.