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:   28-Aug-2008 12:18:39
  Branch: HEAD                             Handle: 2008082811183800

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

  Log:
    apply patch from FreeBSD ports

  Summary:
    Revision    Changes     Path
    1.1         +24 -0      openpkg-src/nasm/nasm.patch
    1.27        +3  -1      openpkg-src/nasm/nasm.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/nasm/nasm.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 nasm.patch
  --- /dev/null 2008-08-28 12:18:29 +0200
  +++ nasm.patch        2008-08-28 12:18:39 +0200
  @@ -0,0 +1,24 @@
  +Index: output/outelf32.c
  +--- output/outelf32.c.orig   2008-06-17 06:31:16 +0200
  ++++ output/outelf32.c        2008-08-28 12:15:31 +0200
  +@@ -1781,7 +1781,7 @@
  +         the source-file, the n_desc field should be set to the number
  +         of remaining stabs
  +         */
  +-        WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0] + 12));
  ++        WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
  + 
  +         /* this is the stab for the main source file */
  +         WRITE_STAB(sptr, fileidx[mainfileindex], N_SO, 0, 0, 0);
  +Index: output/outelf64.c
  +--- output/outelf64.c.orig   2008-06-17 06:31:16 +0200
  ++++ output/outelf64.c        2008-08-28 12:15:31 +0200
  +@@ -1796,7 +1796,7 @@
  +         the source-file, the n_desc field should be set to the number
  +         of remaining stabs
  +         */
  +-        WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0] + 12));
  ++        WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
  + 
  +         /* this is the stab for the main source file */
  +         WRITE_STAB(sptr, fileidx[mainfileindex], N_SO, 0, 0, 0);
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/nasm/nasm.spec
  ============================================================================
  $ cvs diff -u -r1.26 -r1.27 nasm.spec
  --- openpkg-src/nasm/nasm.spec        27 Jul 2008 07:22:50 -0000      1.26
  +++ openpkg-src/nasm/nasm.spec        28 Aug 2008 10:18:38 -0000      1.27
  @@ -32,10 +32,11 @@
   Group:        Compiler
   License:      LGPL
   Version:      2.03.01
  -Release:      20080727
  +Release:      20080828
   
   #   list of sources
   Source0:      http://switch.dl.sourceforge.net/nasm/nasm-%{version}.tar.bz2
  +Patch0:       nasm.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -63,6 +64,7 @@
   
   %prep
       %setup -q
  +    %patch -p0
   
   %build
       CC="%{l_cc}" \
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to