Closed Bug 1516128 Opened 6 years ago Closed 6 years ago

--with-system-jpeg=PREFIX doesn't respect PREFIX

Categories

(Firefox Build System :: General, defect)

Unspecified
FreeBSD
defect
Not set
normal

Tracking

(firefox-esr60 unaffected, firefox64 unaffected, firefox65 unaffected, firefox66 fixed)

RESOLVED FIXED
mozilla66
Tracking Status
firefox-esr60 --- unaffected
firefox64 --- unaffected
firefox65 --- unaffected
firefox66 --- fixed

People

(Reporter: jbeich, Assigned: glandium)

References

Details

(Keywords: regression)

Attachments

(1 file)

On FreeBSD packages are installed under /usr/local by default. As --with-system-jpeg doesn't rely on "pkg-config libjpeg" the user have to append =/usr/local which would be converted to CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib. Unfortunately, after moz.configure conversion jpeg version check happens before *FLAGS are set. $ pkg info -x jpeg jpeg-turbo-2.0.0 $ echo 'ac_add_options --with-system-jpeg=${LOCALBASE-/usr/local}' >>.mozconfig $ ./mach build [...] checking for jpeg_destroy_compress... yes checking for sufficient jpeg library version... DEBUG: <truncated - see config.log for full output> DEBUG: | #include <sys/types.h> DEBUG: | #include <jpeglib.h> DEBUG: | int DEBUG: | main(void) DEBUG: | { DEBUG: | DEBUG: | #if JPEG_LIB_VERSION < 62 DEBUG: | #error Insufficient JPEG library version DEBUG: | #endif DEBUG: | DEBUG: | ; DEBUG: | return 0; DEBUG: | } DEBUG: Executing: `/usr/bin/clang -std=gnu99 -c /tmp/conftest.EQbIow.c` DEBUG: The command returned non-zero exit status 1. DEBUG: Its error output was: DEBUG: | /tmp/conftest.EQbIow.c:3:10: fatal error: 'jpeglib.h' file not found DEBUG: | #include <jpeglib.h> DEBUG: | ^~~~~~~~~~~ DEBUG: | 1 error generated. ERROR: Insufficient JPEG library version for --with-system-jpeg (62 required) *** Fix above errors and then restart with\ "./mach build" gmake: *** [client.mk:115: configure] Error 1
Comment on attachment 9033105 [details] Bug 1516128 - Add missing compile flags in jpeg compile tests after bug 1515852. I confirm, this fixes --with-system-jpeg build on FreeBSD.
Attachment #9033105 - Flags: feedback+
Triaging, assigning to jbeich since they attached patches.
Assignee: nobody → jbeich
oops, previous comment should have said glandium
Assignee: jbeich → mh+mozilla
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/b63d0e63975e Add missing compile flags in jpeg compile tests after bug 1515852. r=froydnj
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: