Opened 3 years ago

Closed 2 years ago

#63758 closed defect (fixed)

libcaca @0.99.beta20_0: syntax error near `=~' during configure (10.4.11)

Reported by: evanmiller (Evan Miller) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: tiger Cc: mascguy (Christopher Nielsen)
Port: libcaca

Description

It appears the regex operator is not supported by the system /bin/sh. The previous version installed fine. Full log attached.

:info:configure checking for sin in -lm... yes
:info:configure ./configure: line 19389: conditional binary operator expected
:info:configure ./configure: line 19389: syntax error near `=~'
:info:configure ./configure: line 19389: `    [[ "$target_os" =~ [0-9]+ ]] && darwin_ver="${BASH_REMATCH[0]}"'

Attachments (1)

libcaca-main.log (23.5 KB) - added by evanmiller (Evan Miller) 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by evanmiller (Evan Miller)

Attachment: libcaca-main.log added

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Indeed, the bash regular expression operator =~ was introduced in bash 3. Tiger has bash 2.

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:3 Changed 2 years ago by evanmiller (Evan Miller)

Resolution: fixed
Status: assignedclosed

In 1b5e48f04d6f75b7b928c60a0d497be9277c22f8/macports-ports (master):

libcaca: fix Tiger build

Closes: #63758

Note: See TracTickets for help on using tickets.