Re: ivtools for ATrpms

Paulo Cavalcanti <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.devel
Message-ID <[email protected]>
On Tue, Jan 11, 2011 at 4:23 PM, Axel Thimm <[email protected]> wrote:

> On Sat, 2011-01-08 at 22:39 -0200, Paulo Cavalcanti wrote:
> > Hi, Axel
> >
> > I have a .src.rpm for ivtools, which builds fine in mock (even for
> > rhel5):
> >
> > http://www.ivtools.org/ivtools/index.html
> >
> >
> http://people.atrpms.net/~pcavalcanti/srpms/ivtools-1.2.8-11.fc14.src.rpm<http://people.atrpms.net/%7Epcavalcanti/srpms/ivtools-1.2.8-11.fc14.src.rpm>
> >
> > However, I have no idea whether it will build in ATrpms.
> >
> > Would you like to try it?
>
> Indeed it does not build under any distro at ATrpms:
>
>        + /usr/lib/rpm/check-buildroot
>        Binary file
> /var/tmp/repot-build/BUILDROOT/ivtools/usr/lib64/ivtools/libIV.so.1.2.8
> matches
>        Found '/var/tmp/repot-build/BUILDROOT/ivtools' in installed files;
> aborting
>        error: Bad exit status from /var/tmp/rpm-tmp.8rTMr8 (%install)
>
> Perhaps due to ABSLIBALLDIR pointing into the buildroot?
>
>
This is good, because it reached almost the end.

The problem is that the path gets into one lib, and in fact it is not needed
to be there.
What I did was replace some characters (without changing the size) to trick
rpmbuild, but your build system
uses ivtools, and not ivtools-1.2.8. What I did now is replace ivtools for
IvTools.

Of course, I used ghex2 to inspect the binary and check what is going to be
changed (only 3 or 4 occurrences).

http://people.atrpms.net/~pcavalcanti/srpms/ivtools-1.2.8-12.fc14.src.rpm

This new version should built in ATrpms. This package has the most
complicated configuration scheme
I have ever seen, and I hope you do  not mind using only one dirt trick,
which does not affect anything ...

Thanks.

-- 
Paulo Roma Cavalcanti
LCG - UFRJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.