[RADIATOR] Building RPMs (Was: Re: Radiator Version 4.5 released)

Mike McCauley mikem at open.com.au
Wed Dec 16 17:30:59 CST 2009


Hello Heikki,

On Thursday 17 December 2009 01:35:09 am Heikki Vatiainen wrote:
> [Returning to the subject from last month]
>
> On 11/10/2009 12:07 PM, Hugh Irvine wrote:
> > The Makefile included in the Radiator distribution includes a "make rpm"
> > target for just this reason.
>
> Does this look correct? The purpose was to create rpm package that
> contains all the latest patches for 4.5.1 as of 2009-12-16. This was
> done on OpenSUSE 11.0.
>
> Start by creating an empty dir. The distribution and the patches are in
> the parent dir.
>
> tar zxf ../Radiator-4.5.1.tgz
> cd Radiator-4.5.1
> tar zxf ../../patches-4.5.1.tar.gz
> vi Radiator.spec
> cd ..
> tar zcf Radiator-4.5.1.tgz Radiator-4.5.1
> cp Radiator-4.5.1.tgz Radiator-4.5.1
> cd Radiator-4.5.1
> vi Makefile.PL   # check $rpmdir
> perl Makefile.PL
> make test
> sudo make rpm
>
> ls -l /usr/src/packages/RPMS/noarch/Radiator 4.5.1-2.noarch.rpm
> -rw-r--r-- 1 root root 4906593 Dec 16 17:02
> /usr/src/packages/RPMS/noarch/Radiator-4.5.1-2.noarch.rpm
>
> The patches were first applied, the spec file modified and then the .tgz
> file was remade from the patched source tree. If this was not done, the
> patches were not included in the resulting file.

Correct: RPM builds always start with the complete bundled source tarball of 
the source.

>
> Since the Release was incremented in the spec file, the package version
> ends now with -2.

So far so good.

>
>
> I also noticed that this results in files ending up under
> /usr/lib/perl5. Also /usr/lib/perl5/site_perl//Radius being a symlink
> back to itself. Also symlinks ./vendor_perl/Radius and ./Radius and
> point to the looping ./site_perl/Radius symlink.

Bad.

That sounds a bit like the PERLVER  RPM variable was defined as an empty 
string. See the Makefile.PL for the postable where the current perl version 
of the host's perl is detected and passed as PERLVER  to RPM.

Cheers.

>
> % cd /usr/lib/perl5
> % find . -name Radius |xargs ls -ld
> lrwxrwxrwx 1 root root   32 Dec 16 17:19 ./Radius ->
> /usr/lib/perl5/site_perl//Radius
>
> drwxr-xr-x 4 root root 4096 Dec 16 17:19 ./site_perl/5.10.0/Radius
>
> drwxr-xr-x 2 root root 4096 Dec 16 17:19
> ./site_perl/5.10.0/i586-linux-thread-multi/auto/Radius
>
> lrwxrwxrwx 1 root root   32 Dec 16 17:19 ./site_perl/Radius ->
> /usr/lib/perl5/site_perl//Radius
>
> lrwxrwxrwx 1 root root   32 Dec 16 17:19 ./vendor_perl/Radius ->
> /usr/lib/perl5/site_perl//Radius
>
> > On 10 Nov 2009, at 20:55, Alexander Hartmaier wrote:
> >> You can build your own rpm using the included spec file pretty easily.
> >> Just unpack the tar.gz file, then the patches file and then build your
> >> rpm.
> >> Don't forget to change the version so you know which patches are already
> >> included.
> >>
> >> --
> >> Best regards, Alex
> >>
> >> Am Dienstag, den 10.11.2009, 10:41 +0100 schrieb Heikki Vatiainen:
> >>> Mike McCauley wrote:
> >>>> On Friday 30 October 2009 08:38:36 pm Jérôme Fleury wrote:
> >>>>> Is it me or AuthSQLYUBIKEY.pm is not included in the tarball ??
> >>>>
> >>>> Its not you: it was incorrectly omitted. It is now in the latest patch
> >>>> set. Thanks for reporting it.
> >>>
> >>> Could 4.5.1 be released that includes this and maybe the other Yubikey
> >>> related goodies fixes?
> >>>
> >>> The reason I am asking is that we have a customer that strongly prefers
> >>> to use RPM packages and only the released version are currently in RPM
> >>> format. The same customer has also shown interest in the Yubikey
> >>> authentication.
> >>>
> >>> Thanks for both of you for finding and fixing this!
> >>>
> >>> --
> >>> Heikki Vatiainen, Arch Red Oy
> >>> +358 44 087 6547
> >>> _______________________________________________
> >>> radiator mailing list
> >>> radiator at open.com.au
> >>> http://www.open.com.au/mailman/listinfo/radiator
> >>
> >> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
> >>*"*"* T-Systems Austria GesmbH   Rennweg 97-99, 1030 Wien
> >> Handelsgericht Wien, FN 79340b
> >> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
> >>*"*"* Notice: This e-mail contains information that is confidential and
> >> may be privileged. If you are not the intended recipient, please notify
> >> the sender and then delete this e-mail immediately.
> >> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"
> >>*"*"* _______________________________________________
> >> radiator mailing list
> >> radiator at open.com.au
> >> http://www.open.com.au/mailman/listinfo/radiator
> >
> > NB:
> >
> > Have you read the reference manual ("doc/ref.html")?
> > Have you searched the mailing list archive
> > (www.open.com.au/archives/radiator)? Have you had a quick look on Google
> > (www.google.com)?
> > Have you included a copy of your configuration file (no secrets),
> > together with a trace 4 debug showing what is happening?
> > Have you checked the RadiusExpert wiki:
> > http://www.open.com.au/wiki/index.php/Main_Page



-- 
Mike McCauley                               mikem at open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia   http://www.open.com.au
Phone +61 7 5598-7474                       Fax   +61 7 5598-7070

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, 
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, DIAMETER etc. Full source
on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.


More information about the radiator mailing list