Closed Bug 785638 Opened 12 years ago Closed 12 years ago

use yasm(1) on ELF platforms by default

Categories

(Core :: General, defect)

x86_64
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: jbeich, Assigned: jbeich)

Details

Attachments

(3 files)

      No description provided.
Attached patch vp8 asmSplinter Review
Tested on FreeBSD x86_64. Should also work on GNU/kFreeBSD, NetBSD and DragonFly.
Attachment #655337 - Flags: review?(tterribe)
ditto
Attachment #655338 - Flags: review?(tterribe)
Attachment #655337 - Flags: review?(tterribe) → review+
Attachment #655338 - Flags: review?(tterribe) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8eb3be6ada0e
https://hg.mozilla.org/mozilla-central/rev/d8ac3833d2a1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
This of course broke OpenBSD. We have yasm 1.2.0, but configure now bails out : 

checking for Yasm assembler... checking for yasm... yasm
configure: error: Yasm 1.1 or greater is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you appear to have version ..  Upgrade to the newest
 version or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder.  See https://developer.mozilla.org/en/YASM for more details.

Guess the sed regex doesnt like our sed.. or should it use gsed ?
(In reply to Landry Breuil (:gaston) from comment #5)
> This of course broke OpenBSD. We have yasm 1.2.0

1.2.0 consists of 3 digits while _YASM_VER_FILTER wants 4 digits. (d)ash and bash just ignores the bogus regexp

    $ test '' -lt 1; echo "Exit $?"
    test: : bad number
    Exit 2

while pdksh and zsh choke on it

  $ test '' -lt 1; echo "Exit $?"
  Exit 0

and it's not so clear on OpenBSD

  $ /bin/test '' -lt 1
  test: : out of range
  Exit 2
Attachment #656297 - Flags: review?(ted.mielczarek)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 656297 [details] [diff] [review]
simplify, tested on yasm 0.5.0 and 1.2.0

Configure passes fine for me with this fix, thanks !
Attachment #656297 - Flags: feedback+
Attachment #656297 - Flags: review?(ted.mielczarek) → review+
https://hg.mozilla.org/mozilla-central/rev/4a7b6c266752
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: