Linux Support traditionally package the CERNLIB RPM from the sources in AFS. These sources are provided by PH/SFT (aka Benedikt Hegner).

Building RPMs is simple, but a few gotcha's prevent us from using the standard infrastructure. Follow the recipe below, but beware that it may require a few updates...

First, get the sources from the last successful build, and install it:

      yumdownloader --source --destdir /tmp CERNLIB && rpm -ivh /tmp/CERNLIB-2006*.src.rpm

In the specfile ~/rpmbuild/SPECS/CERNLIB-binaryonly.spec you see that the %prep section prepares the source files from the AFS area /afs/cern.ch/sw/lcg/external/cernlib/.... This of course only works on machines that have AFS access, ie. it does not work from Koji...

Also, the Cernlib builds for x86_64 have never been properly tested, so we tend to only provide {i386,i686} RPMs. However, the x86_64 sources are still tarred up, as to allow for future improvements. This implies that we need both 32bit and 64bit source files in AFS before we can build.

To build the RPM, simply run

    rpmbuild --ba ~/rpmbuild/SPECS/CERNLIB-binaryonly.spec --target i686
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2012-04-13 - JanVanEldik
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback