[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] RPM building



On Tue, 15 Apr 2008 01:08:01 , Martin Tarenskeen <m.tarenskeen@zonnet.nl> wrote:
> On Sun, 14 Apr 2008, Peter Slegg wrote:
>
> >
> > I noticed that when I try to rpm -ba popt.spec  it creates a
> > series of folders:
> >
> > U:\usr\src\redhat\BUILD\usr\src\redhat\SOURCES\popt-1.13\
> >
> > Is this normal ?
>
> No it isn't. There must be a typo somewhere inside the specfile I suspect.
> U:\usr\src\redhat\BUILD\popt-1.13\         # is normal
> U:\usr\src\redhat\SOURCES\popt-1.13.tar.gz     # is normal
> U:\usr\src\redhat\SPECS\popt.spec        # is normal
>
> Martin Tarenskeen

Thanks Martin.

I think I spotted the error but I have switched to using popt-1.14 and
that has fixed the problem. I probably introduced an error in the spec
file while tinkering.

With the one line patch and this added to the spec file:

%prep
%setup -q
%patch0 -p1 -b .mint
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --disable-shared

the rpm gets as far as:

+ ./configure m68kmint-atari-freemint --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/usr/etc --datadir=/usr/share --includedir=/usr/include --libdir=/lib --libexecdir=/usr/libexec --localstatedir=/usr/var --sharedstatedir=/usr/com --mandir=/usr/man --infodir=/usr/info
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `m68kmint-atari-freemint': machine `m68kmint-atari' not recognized
configure: error: /bin/sh ./config.sub m68kmint-atari-freemint failed
Bad exit status from /var/tmp/rpm-tmp.98854 (%build)

Why does the rpm build object to the atari ?

Regards,

Peter