[MacPorts] #1064: Update: Postgres port build fix

MacPorts noreply at macports.org
Thu Mar 24 05:04:07 PDT 2016


#1064: Update: Postgres port build fix
-------------------------+--------------------
  Reporter:  dluke@…     |      Owner:  mww@…
      Type:  update      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  1.0
Resolution:  fixed       |   Keywords:
      Port:  postgresql  |
-------------------------+--------------------
Changes (by ryandesign@…):

 * type:  defect => update
 * port:   => postgresql


Old description:

> Fix postgres to build using '-no-cpp-precomp' instead of '-traditional-
> cpp' (so it works on 10.3)
>
> Fix inline:
>
> Index: Portfile
> ============================================================
> =======
> RCS file:
> /Volumes/src/cvs/od/proj/darwinports/dports/databases/postgresql/Portfile,v
> retrieving revision 1.25
> diff -u -d -b -w -r1.25 Portfile
> --- Portfile    5 Aug 2003 09:28:59 -0000       1.25
> +++ Portfile    22 Oct 2003 18:44:27 -0000
> @@ -31,7 +31,7 @@
>  variant darwin  {
>                   patchfiles patch-Makefile patch-Makefile.darwin \
>                     patch-Makefile.shlib patch-proc.mk \
> -                   patch-plpgsql-Makefile
> +                   patch-plpgsql-Makefile patch-template-darwin
>                   post-patch { reinplace "s|__PREFIX|${prefix}|g" \
> "${workpath}/${worksrcdir}/src/Makefile.shlib"
>                              }
>
> And the new patch file:
>
> --- src/template/darwin.orig    Sat May  4 20:03:29 2002
> +++ src/template/darwin Wed Oct 22 14:15:12 2003
> @@ -1,6 +1,6 @@
>  # -traditional-cpp means "don't use apple's cpp-precomp" on darwin
>  # this should change to -no-cpp-precomp when that flag is implemented
> -CC="$CC -traditional-cpp"
> +CC="$CC -no-cpp-precomp"
>
>  # Select appropriate semaphore support
>  USE_NAMED_POSIX_SEMAPHORES=1

New description:

 Fix postgres to build using '-no-cpp-precomp' instead of '-traditional-
 cpp' (so it works on 10.3)

 Fix inline:

 {{{
 Index: Portfile
 ===================================================================
 RCS file:
 /Volumes/src/cvs/od/proj/darwinports/dports/databases/postgresql/Portfile,v
 retrieving revision 1.25
 diff -u -d -b -w -r1.25 Portfile
 --- Portfile    5 Aug 2003 09:28:59 -0000       1.25
 +++ Portfile    22 Oct 2003 18:44:27 -0000
 @@ -31,7 +31,7 @@
  variant darwin  {
                   patchfiles patch-Makefile patch-Makefile.darwin \
                     patch-Makefile.shlib patch-proc.mk \
 -                   patch-plpgsql-Makefile
 +                   patch-plpgsql-Makefile patch-template-darwin
                   post-patch { reinplace "s|__PREFIX|${prefix}|g" \
 "${workpath}/${worksrcdir}/src/Makefile.shlib"
                              }
 }}}

 And the new patch file:

 {{{
 --- src/template/darwin.orig    Sat May  4 20:03:29 2002
 +++ src/template/darwin Wed Oct 22 14:15:12 2003
 @@ -1,6 +1,6 @@
  # -traditional-cpp means "don't use apple's cpp-precomp" on darwin
  # this should change to -no-cpp-precomp when that flag is implemented
 -CC="$CC -traditional-cpp"
 +CC="$CC -no-cpp-precomp"

  # Select appropriate semaphore support
  USE_NAMED_POSIX_SEMAPHORES=1
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/1064#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list