Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-326

Libraries being built in lib64 on OpenSUSE, when EUPS tables assume lib

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Team:
      SQuaRE

      Description

      A report from Darko Jevremovic <darko@aob.rs>:

      Hi Mario,

      I managed to build stack v8 on OpenSuse13.1

      There were standard problems with lib/lib64 - namely system builds libraries in $PREFIX/lib64 and some programs are hard wired for $PREFIX/lib

      if you could change the last line of

      mysqlclient-5.1.65+3/ups/eupspkg.cfg.sh

      from

      (cd $PREFIX/lib && ln -s mysql/* . )

      to

      ( cd $PREFIX && if [ ! -f "lib" ] ; then ln -sf lib64 lib; fi &&cd $PREFIX/lib && ln -s mysql/* . )

      or something along that line (am not sure whether the syntax would work).

      Also if you could add

      in the same manner to ups/eupspkg.cfg.sh

      ( cd $PREFIX && if [ ! -f "lib" ] ; then ln -sf lib64 lib; fi)

      for the following packages:

      minuit2
      gsl
      cfitsio
      wcslib

        Attachments

          Issue Links

            Activity

            Hide
            ktl Kian-Tat Lim added a comment -

            It sounds like there are four possible solutions:

            1. Wait for DM-3231 to land.
            2. Apply Darko's patches.
            3. Modify eupspkg.sh, around line 815:

            if [[ -d $PREFIX/lib64 ]]; then
                if [[ -d $PREFIX/lib ]]; then
                    ln -s $PREFIX/lib64/* $PREFIX/lib
                else
                    ln -s $PREFIX/lib64 $PREFIX/lib
                fi
            fi
            

            and fix up mysql and mysqlclient's eupspkg.cfg.sh by hand (and any other package that replaces or does things after default_install).
            4. Modify eupspkg.sh to always add -libdir to CONFIGURE_OPTIONS and fix up doxygen's eupspkg.cfg.sh by hand (and any other package that replaces default_config or does not understand -libdir).

            I'm not thrilled with any of these, but if we're doing something expedient, choice 2 seems like the least additional work and the least prone to unintended consequences.

            Show
            ktl Kian-Tat Lim added a comment - It sounds like there are four possible solutions: 1. Wait for DM-3231 to land. 2. Apply Darko's patches. 3. Modify eupspkg.sh , around line 815 : if [[ -d $PREFIX /lib64 ]]; then if [[ -d $PREFIX /lib ]]; then ln -s $PREFIX /lib64/ * $PREFIX /lib else ln -s $PREFIX /lib64 $PREFIX /lib fi fi and fix up mysql and mysqlclient's eupspkg.cfg.sh by hand (and any other package that replaces or does things after default_install ). 4. Modify eupspkg.sh to always add - libdir to CONFIGURE_OPTIONS and fix up doxygen's eupspkg.cfg.sh by hand (and any other package that replaces default_config or does not understand -libdir ). I'm not thrilled with any of these, but if we're doing something expedient, choice 2 seems like the least additional work and the least prone to unintended consequences.
            Hide
            tjenness Tim Jenness added a comment -

            I've had a go at rebasing the u/darko/DM-326 branch and run it through Jenkins but unfortunately cfitsio does not build on Centos 7 with these patches despite it building okay on Centos 6. From the Jenkins output it's not immediately obvious what the problem is.

            Show
            tjenness Tim Jenness added a comment - I've had a go at rebasing the u/darko/ DM-326 branch and run it through Jenkins but unfortunately cfitsio does not build on Centos 7 with these patches despite it building okay on Centos 6. From the Jenkins output it's not immediately obvious what the problem is.
            Hide
            tjenness Tim Jenness added a comment - - edited

            I've merged all the u/darko/DM-326 branches. There may be other packages that cause trouble that Darko Jevremovic has not discovered yet.

            • activemqcpp
            • cfitsio
            • fftw
            • freetds
            • gsl
            • log4cxx
            • minuit2
            • mysqlclient
            • mysql
            • wcslib

            I have added the .lsstN tags as appropriate. activemqcpp is incorrectly tagged in general because it was not properly marked as an external.

            Show
            tjenness Tim Jenness added a comment - - edited I've merged all the u/darko/ DM-326 branches. There may be other packages that cause trouble that Darko Jevremovic has not discovered yet. activemqcpp cfitsio fftw freetds gsl log4cxx minuit2 mysqlclient mysql wcslib I have added the .lsstN tags as appropriate. activemqcpp is incorrectly tagged in general because it was not properly marked as an external.
            Hide
            darko Darko Jevremovic added a comment -

            what was the issue with cfitsio?

            Show
            darko Darko Jevremovic added a comment - what was the issue with cfitsio?
            Hide
            tjenness Tim Jenness added a comment -

            Transient build issue on Jenkins. The shared library that was made was actually zero length and that obviously confused the linker. Joshua Hoblitt spotted it for me since the multi-threaded build meant that the error was not at the end of the file. Re-running the job indicated there was no issue.

            Show
            tjenness Tim Jenness added a comment - Transient build issue on Jenkins. The shared library that was made was actually zero length and that obviously confused the linker. Joshua Hoblitt spotted it for me since the multi-threaded build meant that the error was not at the end of the file. Re-running the job indicated there was no issue.

              People

              Assignee:
              frossie Frossie Economou
              Reporter:
              darko Darko Jevremovic
              Reviewers:
              Joshua Hoblitt, Mario Juric
              Watchers:
              Darko Jevremovic, Frossie Economou, John Swinbank, Joshua Hoblitt, Kian-Tat Lim, Mario Juric, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: