# macos-x, php-5.3, configure.in, problem with sed

- Thread: https://externals.io/message/36719
- Original archive: https://news-web.php.net/php.internals/36719
- Started by Alexey Zakhlestin on 2008-03-31T15:36:53+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #36719 — Alexey Zakhlestin — 2008-03-31T15:36:53+00:00

URL: https://externals.io/message/36719#36719

There is a patch by gwynne, which introduces platform-specific hack
for darwin/macos-x.
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.77.2.11&r2=1.579.2.52.2.77.2.12&pathrev=PHP_5_3

It works pretty well, except one small glitch. It is supposed in
patch, that sed is "bsd sed" (note "$SED -nE" on line 187)
"-E" flag is not supported by gnu-sed

By default, osx has bsd sed, so this will work for most people, but
there are some (including me), who install "gnu sed" and put it in
PATH before '/usr/bin/sed'

I attach the patch, which forces use of '/usr/bin/sed' on this line,
while still allowing gnu sed everywhere else.

This line is macos-x specific, so won't hurt other platforms

http://filez.indeyets.pp.ru/configure.in.macosx.patch


-- 
Alexey Zakhlestin
http://blog.milkfarmsoft.com/

---

## #37026 — Alexey Zakhlestin — 2008-04-15T15:28:27+00:00

URL: https://externals.io/message/36719#37026 · In reply to: #36719

bumping up

this one is still not applied in 5.3


> There is a patch by gwynne, which introduces platform-specific hack
>  for darwin/macos-x.
>  http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.77.2.11&r2=1.579.2.52.2.77.2.12&pathrev=PHP_5_3
>
>  It works pretty well, except one small glitch. It is supposed in
>  patch, that sed is "bsd sed" (note "$SED -nE" on line 187)
>  "-E" flag is not supported by gnu-sed
>
>  By default, osx has bsd sed, so this will work for most people, but
>  there are some (including me), who install "gnu sed" and put it in
>  PATH before '/usr/bin/sed'
>
>  I attach the patch, which forces use of '/usr/bin/sed' on this line,
>  while still allowing gnu sed everywhere else.
>
>  This line is macos-x specific, so won't hurt other platforms
>
>  http://filez.indeyets.pp.ru/configure.in.macosx.patch
>
>
>
>  --
>  Alexey Zakhlestin
>  http://blog.milkfarmsoft.com/
>


-- 
Alexey Zakhlestin
http://blog.milkfarmsoft.com/

---

## #37028 — Gwynne Raskind — 2008-04-15T16:32:08+00:00

URL: https://externals.io/message/36719#37028 · In reply to: #37026

> bumping up
>
> this one is still not applied in 5.3
>
> 
> > […]


Committed to 5.3 and HEAD, thanks for the patch!

-- Gwynne, Daughter of the Code
"This whole world is an asylum for the incurable."
