OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Christoph Schug
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   05-May-2007 19:17:52
  Branch: HEAD                             Handle: 2007050518174210

  Modified files:
    openpkg-src/bzip2       bzip2.spec
    openpkg-src/db          db.spec
    openpkg-src/freetype    freetype.spec
    openpkg-src/gcc         gcc.spec
    openpkg-src/gd          gd.spec
    openpkg-src/imapd       imapd.spec
    openpkg-src/jpeg        jpeg.spec
    openpkg-src/ncurses     ncurses.spec
    openpkg-src/png         png.spec
    openpkg-src/readline    readline.spec
    openpkg-src/sasl        sasl.spec
    openpkg-src/zlib        zlib.spec

  Log:
    sparc64-freebsd platform fixes

  Summary:
    Revision    Changes     Path
    1.39        +6  -2      openpkg-src/bzip2/bzip2.spec
    1.76        +6  -1      openpkg-src/db/db.spec
    1.66        +6  -1      openpkg-src/freetype/freetype.spec
    1.137       +8  -2      openpkg-src/gcc/gcc.spec
    1.93        +6  -2      openpkg-src/gd/gd.spec
    1.172       +4  -1      openpkg-src/imapd/imapd.spec
    1.32        +6  -1      openpkg-src/jpeg/jpeg.spec
    1.318       +6  -1      openpkg-src/ncurses/ncurses.spec
    1.63        +6  -2      openpkg-src/png/png.spec
    1.37        +6  -1      openpkg-src/readline/readline.spec
    1.146       +6  -2      openpkg-src/sasl/sasl.spec
    1.39        +6  -2      openpkg-src/zlib/zlib.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/bzip2/bzip2.spec
  ============================================================================
  $ cvs diff -u -r1.38 -r1.39 bzip2.spec
  --- openpkg-src/bzip2/bzip2.spec      5 Jan 2007 20:00:13 -0000       1.38
  +++ openpkg-src/bzip2/bzip2.spec      5 May 2007 17:17:43 -0000       1.39
  @@ -33,7 +33,7 @@
   Group:        Compression
   License:      GPL
   Version:      1.0.4
  -Release:      20070105
  +Release:      20070505
   
   #   list of sources
   Source0:      http://www.bzip.org/%{version}/bzip2-%{version}.tar.gz
  @@ -74,9 +74,13 @@
   
   %build
       #   build package
  +    cflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cflags="-fPIC" ;;
  +    esac
       %{l_make} %{l_mflags} \
           CC="%{l_cc}" \
  -        CFLAGS="%{l_cflags -O} -D_FILE_OFFSET_BITS=64"
  +        CFLAGS="%{l_cflags -O} -D_FILE_OFFSET_BITS=64 $cflags"
   
   %install
       rm -rf $RPM_BUILD_ROOT
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/db/db.spec
  ============================================================================
  $ cvs diff -u -r1.75 -r1.76 db.spec
  --- openpkg-src/db/db.spec    9 Apr 2007 08:18:21 -0000       1.75
  +++ openpkg-src/db/db.spec    5 May 2007 17:17:48 -0000       1.76
  @@ -37,7 +37,7 @@
   Group:        Database
   License:      BSD
   Version:      %{V_version}.%{V_revision}
  -Release:      20070409
  +Release:      20070505
   
   #   package options
   %option       with_compat no
  @@ -87,6 +87,10 @@
   
   %build
       #   configure library
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       mutex="no"
       case "%{l_platform -p}" in
           ix86-*   ) mutex="x86/gcc-assembly"   ;;
  @@ -98,6 +102,7 @@
       esac
       cd build_unix
       CC="%{l_cc}" \
  +    CPPFLAGS="%{l_cppflags} $cppflags" \
       CFLAGS="%{l_cflags -O}" \
   %if "%{with_cxx}" == "yes"
       CXX="%{l_cxx}" \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/freetype/freetype.spec
  ============================================================================
  $ cvs diff -u -r1.65 -r1.66 freetype.spec
  --- openpkg-src/freetype/freetype.spec        10 Apr 2007 16:56:43 -0000      
1.65
  +++ openpkg-src/freetype/freetype.spec        5 May 2007 17:17:47 -0000       
1.66
  @@ -33,7 +33,7 @@
   Group:        Graphics
   License:      GPL
   Version:      2.3.4
  -Release:      20070410
  +Release:      20070505
   
   #   list of sources
   Source0:      
http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.gz
  @@ -74,7 +74,12 @@
           builds/unix/configure
   
   %build
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
  +    CPPFLAGS="%{l_cppflags} $cppflags" \
       CFLAGS="%{l_cflags -O}" \
       %{l_make} %{l_mflags} setup \
           CFG="--prefix=%{l_prefix} --disable-shared --without-zlib"
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/gcc/gcc.spec
  ============================================================================
  $ cvs diff -u -r1.136 -r1.137 gcc.spec
  --- openpkg-src/gcc/gcc.spec  19 Apr 2007 11:24:05 -0000      1.136
  +++ openpkg-src/gcc/gcc.spec  5 May 2007 17:17:43 -0000       1.137
  @@ -37,7 +37,7 @@
   Group:        Compiler
   License:      GPL
   Version:      %{V_full}
  -Release:      20070419
  +Release:      20070505
   
   #   package options
   %option       with_cxx       yes
  @@ -231,10 +231,16 @@
       fi
   %endif
   
  +    #   enforce PIC on certain platforms
  +    boot_cflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) boot_cflags="-fPIC" ;;
  +    esac
  +
       #   build the package
       %{l_make} %{l_mflags} \
           MAKE="%{l_make} %{l_mflags}" \
  -        BOOT_CFLAGS="${l_boot_cflags}" \
  +        BOOT_CFLAGS="${l_boot_cflags} $boot_cflags" \
           CFLAGS="${l_cflags}" \
           LIBCFLAGS="${l_libcflags}" \
           LIBCXXFLAGS="${l_libcxxflags}" \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/gd/gd.spec
  ============================================================================
  $ cvs diff -u -r1.92 -r1.93 gd.spec
  --- openpkg-src/gd/gd.spec    3 Mar 2007 21:32:53 -0000       1.92
  +++ openpkg-src/gd/gd.spec    5 May 2007 17:17:47 -0000       1.93
  @@ -33,7 +33,7 @@
   Group:        Graphics
   License:      GPL
   Version:      2.0.34
  -Release:      20070303
  +Release:      20070505
   
   #   package options
   %option       with_xpm         no
  @@ -95,9 +95,13 @@
       ( echo "ac_cv_header_iconv_h=no"
         echo "am_cv_func_iconv=no"
       ) >config.cache
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
  -    CPPFLAGS="%{l_cppflags . libpng}" \
  +    CPPFLAGS="%{l_cppflags . libpng} $cppflags" \
       LDFLAGS="%{l_ldflags}" \
   %if "%{with_fontconfig}" == "yes"
       LIBS="`pkg-config --libs fontconfig` -lm" \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/imapd/imapd.spec
  ============================================================================
  $ cvs diff -u -r1.171 -r1.172 imapd.spec
  --- openpkg-src/imapd/imapd.spec      2 May 2007 10:07:50 -0000       1.171
  +++ openpkg-src/imapd/imapd.spec      5 May 2007 17:17:52 -0000       1.172
  @@ -33,7 +33,7 @@
   Group:        Mail
   License:      BSD
   Version:      2.3.8
  -Release:      20070502
  +Release:      20070505
   
   #   package options
   %option       with_fsl           yes
  @@ -189,6 +189,9 @@
       export CFLAGS="%{l_cflags -O}"
       export LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}"
       export LIBS="%{l_fsl_libs}"
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) CPPFLAGS="$CPPFLAGS -fPIC" ;;
  +    esac
   %if "%{with_atvdom}" == "yes"
       CPPFLAGS="$CPPFLAGS -DATVDOM"
   %endif
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/jpeg/jpeg.spec
  ============================================================================
  $ cvs diff -u -r1.31 -r1.32 jpeg.spec
  --- openpkg-src/jpeg/jpeg.spec        1 Jan 2007 17:38:53 -0000       1.31
  +++ openpkg-src/jpeg/jpeg.spec        5 May 2007 17:17:46 -0000       1.32
  @@ -33,7 +33,7 @@
   Group:        Graphics
   License:      GPL
   Version:      6b
  -Release:      20061013
  +Release:      20070505
   
   #   list of sources
   Source0:      ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
  @@ -64,7 +64,12 @@
       %patch -p0
   
   %build
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
  +    CPPFLAGS="%{l_cppflags} $cppflags" \
       CFLAGS="%{l_cflags -O}" \
       ./configure \
           --prefix=%{l_prefix} \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/ncurses/ncurses.spec
  ============================================================================
  $ cvs diff -u -r1.317 -r1.318 ncurses.spec
  --- openpkg-src/ncurses/ncurses.spec  1 May 2007 12:34:19 -0000       1.317
  +++ openpkg-src/ncurses/ncurses.spec  5 May 2007 17:17:45 -0000       1.318
  @@ -49,7 +49,7 @@
   Group:        Terminal
   License:      MIT-style
   Version:      %{V_base}.%{V_patchL}
  -Release:      20070501
  +Release:      20070505
   
   #   list of sources
   Source0:      ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz
  @@ -128,7 +128,12 @@
       %patch -p0 -P 100
   
   %build
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
  +    CPPFLAGS="%{l_cppflags} $cppflags" \
       CFLAGS="%{l_cflags}" \
       ./configure \
           --prefix=%{l_prefix} \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/png/png.spec
  ============================================================================
  $ cvs diff -u -r1.62 -r1.63 png.spec
  --- openpkg-src/png/png.spec  31 Jan 2007 19:05:03 -0000      1.62
  +++ openpkg-src/png/png.spec  5 May 2007 17:17:46 -0000       1.63
  @@ -33,7 +33,7 @@
   Group:        Graphics
   License:      BSD
   Version:      1.2.16
  -Release:      20070131
  +Release:      20070505
   
   #   list of sources
   Source0:      
http://switch.dl.sourceforge.net/sourceforge/libpng/libpng-%{version}.tar.gz
  @@ -70,9 +70,13 @@
       %patch -p0
   
   %build
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
       CFLAGS="%{l_cflags -O}" \
  -    CPPFLAGS="%{l_cppflags}" \
  +    CPPFLAGS="%{l_cppflags} $cppflags" \
       LDFLAGS="%{l_ldflags}" \
       GREP="grep" \
       ./configure \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/readline/readline.spec
  ============================================================================
  $ cvs diff -u -r1.36 -r1.37 readline.spec
  --- openpkg-src/readline/readline.spec        26 Apr 2007 06:12:33 -0000      
1.36
  +++ openpkg-src/readline/readline.spec        5 May 2007 17:17:44 -0000       
1.37
  @@ -39,7 +39,7 @@
   Group:        Terminal
   License:      GPL
   Version:      %{V_base_real}.%{V_plvl_raw}
  -Release:      20070426
  +Release:      20070505
   
   #   list of sources
   Source0:      ftp://ftp.cwru.edu/pub/bash/readline-%{V_base_real}.tar.gz
  @@ -78,7 +78,12 @@
   
   %build
       #   configure package
  +    cppflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
  +    CPPFLAGS="%{l_cppflags} $cppflags" \
       CFLAGS="%{l_cflags -O}" \
       ./configure \
           --prefix=%{l_prefix} \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/sasl/sasl.spec
  ============================================================================
  $ cvs diff -u -r1.145 -r1.146 sasl.spec
  --- openpkg-src/sasl/sasl.spec        12 Apr 2007 13:09:15 -0000      1.145
  +++ openpkg-src/sasl/sasl.spec        5 May 2007 17:17:51 -0000       1.146
  @@ -33,7 +33,7 @@
   Group:        Cryptography
   License:      BSD
   Version:      2.1.22
  -Release:      20070412
  +Release:      20070505
   
   #   package options
   %option       with_fsl    yes
  @@ -150,6 +150,10 @@
           lib/server.c
   
       #   determine build flags
  +    cppflags="%{l_cppflags}"
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cppflags="$cppflags -fPIC" ;;
  +    esac
       cflags="%{l_cflags -O} %{l_cppflags}"
       ldflags="%{l_ldflags} %{l_fsl_ldflags}"
       libs="-ldb %{l_fsl_libs}"
  @@ -169,7 +173,7 @@
       #   configure package
       CC="%{l_cc}" \
       CFLAGS="$cflags" \
  -    CPPFLAGS="%{l_cppflags}" \
  +    CPPFLAGS="$cppflags" \
       LDFLAGS="$ldflags" \
       LIBS="$libs" \
       ./configure \
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/zlib/zlib.spec
  ============================================================================
  $ cvs diff -u -r1.38 -r1.39 zlib.spec
  --- openpkg-src/zlib/zlib.spec        1 Jan 2007 17:43:13 -0000       1.38
  +++ openpkg-src/zlib/zlib.spec        5 May 2007 17:17:42 -0000       1.39
  @@ -33,7 +33,7 @@
   Group:        Compression
   License:      BSD
   Version:      1.2.3
  -Release:      20061013
  +Release:      20070505
   
   #   list of sources
   Source0:      http://www.zlib.net/zlib-%{version}.tar.gz
  @@ -69,8 +69,12 @@
       %setup -q
   
   %build
  +    cflags=""
  +    case "%{l_platform -t}" in
  +        sparc64-freebsd* ) cflags="-fPIC" ;;
  +    esac
       CC="%{l_cc}" \
  -    CFLAGS="%{l_cflags -O}" \
  +    CFLAGS="%{l_cflags -O} $cflags" \
       ./configure \
           --prefix=%{l_prefix}
       %{l_make} %{l_mflags -O}
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to