Unix Technical Forum

little anoyance with configure

This is a discussion on little anoyance with configure within the pgsql Hackers forums, part of the PostgreSQL category; --> Hi, I'm sorry I write so late with final aproaching with all beta and rc versions of 8.2 I ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 05:46 AM
ohp@pyrenet.fr
 
Posts: n/a
Default little anoyance with configure

Hi,

I'm sorry I write so late with final aproaching with all beta and rc
versions of 8.2 I have those (apparently harmless) warnings at configure
time.

Maybe a configure guru could have a quick look.

UX:tr: ERROR: Incorrect usage
UX:tr: TO FIX: Usage:
tr [-cs] string1 string2
tr -s[-c] string1
tr -d[-c] string1
tr -ds[-c] string1 string2
configure: WARNING: option ignored: --
UX:tr: ERROR: Incorrect usage
UX:tr: TO FIX: Usage:
tr [-cs] string1 string2
tr -s[-c] string1
tr -d[-c] string1
tr -ds[-c] string1 string2
configure: WARNING: option ignored: --
UX:tr: ERROR: Incorrect usage
UX:tr: TO FIX: Usage:
tr [-cs] string1 string2
tr -s[-c] string1
tr -d[-c] string1
tr -ds[-c] string1 string2
configure: WARNING: option ignored: --
UX:tr: ERROR: Incorrect usage
UX:tr: TO FIX: Usage:
tr [-cs] string1 string2
tr -s[-c] string1
tr -d[-c] string1
tr -ds[-c] string1 string2
configure: WARNING: option ignored: --
UX:tr: ERROR: Incorrect usage
UX:tr: TO FIX: Usage:
tr [-cs] string1 string2
tr -s[-c] string1
tr -d[-c] string1
tr -ds[-c] string1 string2
configure: WARNING: option ignored: --
UX:tr: ERROR: Incorrect usage
UX:tr: TO FIX: Usage:
tr [-cs] string1 string2
tr -s[-c] string1
tr -d[-c] string1
tr -ds[-c] string1 string2
configure: WARNING: option ignored: --

This is on unixware 714.

TIA
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 05:46 AM
Peter Eisentraut
 
Posts: n/a
Default Re: little anoyance with configure

ohp@pyrenet.fr wrote:
> UX:tr: ERROR: Incorrect usage
> UX:tr: TO FIX: Usage:
> tr [-cs] string1 string2
> tr -s[-c] string1
> tr -d[-c] string1
> tr -ds[-c] string1 string2
> configure: WARNING: option ignored: --


That would appear to be this call:

pgac_txt=`echo $pgac_var | tr '_' '-'`

(four lines from the bottom of configure) But I don't see how this
contradicts the correct usage synopses offered by the error output.

Second thought ... it's interpreting the '-' as an option? Does this
work:

.... | tr 'a_b' 'a-b'

?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 05:47 AM
ohp@pyrenet.fr
 
Posts: n/a
Default Re: little anoyance with configure

On Thu, 30 Nov 2006, Peter Eisentraut wrote:

> Date: Thu, 30 Nov 2006 14:43:24 +0100
> From: Peter Eisentraut <peter_e@gmx.net>
> To: pgsql-hackers@postgresql.org, ohp@pyrenet.fr
> Subject: Re: [HACKERS] little anoyance with configure
>
> ohp@pyrenet.fr wrote:
> > UX:tr: ERROR: Incorrect usage
> > UX:tr: TO FIX: Usage:
> > tr [-cs] string1 string2
> > tr -s[-c] string1
> > tr -d[-c] string1
> > tr -ds[-c] string1 string2
> > configure: WARNING: option ignored: --

>
> That would appear to be this call:
>
> pgac_txt=`echo $pgac_var | tr '_' '-'`
>
> (four lines from the bottom of configure) But I don't see how this
> contradicts the correct usage synopses offered by the error output.
>
> Second thought ... it's interpreting the '-' as an option? Does this
> work:
>
> ... | tr 'a_b' 'a-b'
>
> ?
>
>

YES!
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
15, Chemin des Monges +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-12-2008, 05:47 AM
Martijn van Oosterhout
 
Posts: n/a
Default Re: little anoyance with configure

On Thu, Nov 30, 2006 at 04:44:46PM -0500, Tom Lane wrote:
> ohp@pyrenet.fr writes:
> > On Thu, 30 Nov 2006, Peter Eisentraut wrote:
> >> Second thought ... it's interpreting the '-' as an option? Does this
> >> work:
> >> ... | tr 'a_b' 'a-b'

>
> > YES!

>
> Patch applied per Peter's suggestion.


Doesn't that do something entirely different? The original purpose was
to convert underscores to hyphens, but it's doing something else
entirely.

$ echo test_string | tr 'a_b' 'a-b'
testbstring

On my system I need to at least escape the hyphen again:

$ echo test_string | tr 'a_b' 'a\-b'
test-string

Character classes didn't do it for me: [_] -> [-]

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFb1MUIB7bNG8LQkwRAq1CAJ9S4cPQeLmAw7Wm2+iO2r y4rjFnLwCdFrsk
r5Tde8/v0vBZDuJAgnRT94U=
=qHfM
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-12-2008, 05:47 AM
Andrew Dunstan
 
Posts: n/a
Default Re: little anoyance with configure

Martijn van Oosterhout wrote:
> On Thu, Nov 30, 2006 at 04:44:46PM -0500, Tom Lane wrote:
>
>> ohp@pyrenet.fr writes:
>>
>>> On Thu, 30 Nov 2006, Peter Eisentraut wrote:
>>>
>>>> Second thought ... it's interpreting the '-' as an option? Does this
>>>> work:
>>>> ... | tr 'a_b' 'a-b'
>>>>
>>> YES!
>>>

>> Patch applied per Peter's suggestion.
>>

>
> Doesn't that do something entirely different? The original purpose was
> to convert underscores to hyphens, but it's doing something else
> entirely.
>
> $ echo test_string | tr 'a_b' 'a-b'
> testbstring
>
> On my system I need to at least escape the hyphen again:
>
> $ echo test_string | tr 'a_b' 'a\-b'
> test-string
>
> Character classes didn't do it for me: [_] -> [-]
>
> Have a nice day,
>



Would not this be a simple solution? And configure is already littered
with uses of sed.

sed 's/_/-/g'


cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-12-2008, 05:47 AM
Tom Lane
 
Posts: n/a
Default Re: little anoyance with configure

ohp@pyrenet.fr writes:
> On Thu, 30 Nov 2006, Peter Eisentraut wrote:
>> Second thought ... it's interpreting the '-' as an option? Does this
>> work:
>> ... | tr 'a_b' 'a-b'


> YES!


Patch applied per Peter's suggestion.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-12-2008, 05:47 AM
Tom Lane
 
Posts: n/a
Default Re: little anoyance with configure

Andrew Dunstan <andrew@dunslane.net> writes:
> Would not this be a simple solution? And configure is already littered
> with uses of sed.


Good idea --- that's actually the only use of tr in the whole script,
so using sed gets rid of a dependency. (I wonder if the autoconf boys
deliberately avoid tr because they know about portability issues...)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-12-2008, 05:47 AM
Tom Lane
 
Posts: n/a
Default Re: little anoyance with configure

Martijn van Oosterhout <kleptog@svana.org> writes:
> On my system I need to at least escape the hyphen again:


> $ echo test_string | tr 'a_b' 'a\-b'
> test-string


Hm. How about
tr 'x_' 'x-'

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com