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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   04-Jan-2007 18:18:30
  Branch: HEAD                             Handle: 2007010417183000

  Added files:
    openpkg-src/gnet        gnet.patch
  Modified files:
    openpkg-src/gnet        gnet.spec

  Log:
    finally fix building under GCC 4 world order

  Summary:
    Revision    Changes     Path
    1.1         +12 -0      openpkg-src/gnet/gnet.patch
    1.21        +5  -3      openpkg-src/gnet/gnet.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/gnet/gnet.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 gnet.patch
  --- /dev/null 2007-01-04 18:18:20 +0100
  +++ gnet.patch        2007-01-04 18:18:30 +0100
  @@ -0,0 +1,12 @@
  +Index: src/inetaddr.c
  +--- src/inetaddr.c.orig      2005-02-19 18:15:51 +0100
  ++++ src/inetaddr.c   2007-01-04 18:14:23 +0100
  +@@ -1330,7 +1330,7 @@
  +           ia->sa.ss_family = (size == 4)? AF_INET : AF_INET6;
  +           GNET_INETADDR_SET_SS_LEN(ia);
  +           memcpy(GNET_INETADDR_ADDRP(ia), buf, size);
  +-          GNET_INETADDR_PORT(ia) = g_htons(state->port);
  ++          GNET_INETADDR_PORT_SET(ia, g_htons(state->port));
  + 
  +           state->ias = g_list_prepend (state->ias, ia);
  + 
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/gnet/gnet.spec
  ============================================================================
  $ cvs diff -u -r1.20 -r1.21 gnet.spec
  --- openpkg-src/gnet/gnet.spec        1 Jan 2007 17:38:14 -0000       1.20
  +++ openpkg-src/gnet/gnet.spec        4 Jan 2007 17:18:30 -0000       1.21
  @@ -33,13 +33,14 @@
   Group:        Network
   License:      LGPL
   Version:      2.0.7
  -Release:      20061013
  +Release:      20070104
   
   #   package options
  -%option       with_threads no
  +%option       with_threads yes
   
   #   list of sources
   Source0:      http://www.gnetlibrary.org/src/gnet-%{version}.tar.gz
  +Patch0:       gnet.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -70,6 +71,7 @@
   
   %prep
       %setup -q
  +    %patch -p0
       %{l_prefix}/bin/config install
   
   %build
  @@ -90,7 +92,7 @@
   %install
       rm -rf $RPM_BUILD_ROOT
       %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  -    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc
       strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
           %{l_files_std} \
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to