Menu

#4773 openmotif4-2.3.4-13 to build against libxt-flat-namespace-shlibs package

Supplanted
closed-rejected
nobody
None
5
2016-10-28
2016-09-24
No

The following info file changes builds the openmotif4-2.3.4-13 package against the flat-namespace libXt.6.dylib provided by the new libxt-flat-namespace-shlibs package. This change is required by Xquartz 2.7.10 which will switch its libXt.6.dylib to two-level namespace like libXt.7.dylib.

Index: openmotif4.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/x11/openmotif4.info,v
retrieving revision 1.5
diff -u -r1.5 openmotif4.info
--- openmotif4.info 21 Feb 2016 13:06:00 -0000  1.5
+++ openmotif4.info 24 Sep 2016 14:00:39 -0000
@@ -1,6 +1,6 @@
 Package: openmotif4
 Version: 2.3.4
-Revision: 12
+Revision: 13
 Source: mirror:sourceforge:motif/motif-%v-src.tgz
 Source-MD5: 612bb8127d0d31da6e5474edf8a5c247
 BuildDepends: <<
@@ -14,6 +14,7 @@
    libiconv-dev,
    libjpeg9 (>= 9-3),
    libpng16,
+   libxt-flat-namespace,
    pkgconfig,
    x11-dev,
    xft2-dev (>= 2.2.0-2)
@@ -49,19 +50,15 @@
 SetCC: flag-sort -r gcc
 SetCXX: flag-sort -r g++
 SetCPPFLAGS: -DXNO_MTSAFE_STRINGAPI -DXNO_MTSAFE_PWDAPI -DXNO_MTSAFE_TIMEAPI
-SetLDFLAGS: -L%p/lib -L%b/libXt-flat-namespace
+SetLDFLAGS: -L%p/lib -L%p/opt/libXt_flat_namespace/lib
 ConfigureParams: --enable-static RANLIB='ranlib -c' --with-fontconfig-config="pkg-config fontconfig" --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib
 CompileScript: <<
-   mkdir %b/libxt-flat-namespace
-   ln -s /opt/X11/lib/libXt.6.dylib %b/libxt-flat-namespace/libXt.dylib
    ./autogen.sh %c
    make
    fink-package-precedence --prohibit-bdep=%N .
 <<
 InstallScript: <<
    make install DESTDIR=%d
-   perl -pi -e 's| -L%b/libXt-flat-namespace||g' %i/lib/libMrm.la %i/lib/libUil.la %i/lib/libXm.la
-   perl -pi -e 's|-lXt |/opt/X11/lib/libXt.6.dylib |g' %i/lib/libMrm.la %i/lib/libUil.la %i/lib/libXm.la
    mv %i/share/man/man3/Object.3 %i/share/man/man3/Object.3.openmotif
 <<
 DocFiles: BUGREPORT COPYING README RELEASE RELNOTES TODO
@@ -73,6 +70,7 @@
        libiconv,
        libjpeg9-shlibs (>= 9-3),
        libpng16-shlibs,
+       libxt-flat-namespace-shlibs,
        x11,
        xft2-shlibs (>= 2.2.0-2)
    <<
@@ -95,6 +93,7 @@
        libiconv,
        libjpeg9-shlibs (>= 9-3),
        libpng16-shlibs,
+       libxt-flat-namespace-shlibs,
        x11,
        xft2-shlibs (>= 2.2.0-2)
    <<
@@ -159,9 +158,9 @@
    build files into srcdir, do specify all source files directly.
 <<
 DescPort: <<
-To maintain compatibility with openmotif4 in the presence of Xquartz-2.7.9, which 
-introduces an incompatible (non flat_namespace) libXt.7.dylib which libXt.dylib
-points to, patch -lXt to always point to /opt/X11/lib/libXt.6.dylib.
+To maintain compatibility with openmotif4 in the presence of Xquartz-2.7.10,
+where both libXt.6.dylib and libXt.7.dylib are incompatible non flat-namespace
+versions, build against new libxt-flat-namespace-shlibs package.
 <<
 License: LGPL
 Homepage: http://motif.ics.com/motif/

Tested on 10.11 with 'fink -m' against Xquartz 2.7.10-rc2.

Discussion

  • Jack Howarth

    Jack Howarth - 2016-09-24

    Info file for openmotif4-2.3.4-13

     

    Last edit: Jack Howarth 2016-09-25
  • Daniel Macks

    Daniel Macks - 2016-10-28
    • status: open --> closed-rejected
    • Group: Undergoing_Validation --> Supplanted
     

Log in to post a comment.