Closed Bug 94834 Opened 23 years ago Closed 23 years ago

libimg fail build if --without-png and --without-mng is NOT specified buring configure

Categories

(SeaMonkey :: Build Config, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: pawel.worach, Assigned: pavlov)

References

Details

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3+) Gecko/20010811
BuildID:    20010811

the PNGDIR and MNGDIR variables are not set by configure if
--without-png and --without-mng is specified.

the makefile starts a for loop for each subdir but subdir is enpty and for
failes with unexpected ";" (for d in ; ...)

subdirs should be tested for "" and the loop skipped if empty, we will then use
the native libpng and libmng libs or better PNGDIR=png and MNGDIR=mng shound be
set as default values by configure...

Reproducible: Always
Steps to Reproduce:
1. ./configure --prefix=/opt/mozilla --disable-tests --disable-debug
--enable-optimize 
2. gmake
3. failes in modules/libimg

Actual Results:  /bin/sh: -c: line 1: syntax error near unexpected token `;'
/bin/sh: -c: line 1: `set -e;  for d in  ; do sed -e "s!Y!export......


Expected Results:  LIBPNG and LIBMNG should not be "" or loop should not be
executed if LIBPNG and LIBMNG is null

Linux distro is Redhat 7.1.93 (Roswell beta)
i guess PC/Linux is not the only platform...
Pavlov, more libimg1 clean up.  DIRS should never be set to an empty string.
Assignee: cls → pavlov
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P1
Summary: libimg fail build if --without-png and --without-nmg is NOT specified buring configure → libimg fail build if --without-png and --without-mng is NOT specified buring configure
Target Milestone: --- → mozilla0.9.4
On my machine (Linux PPC), same situation is occured and is fixed by the
attachment #45498 [details] [diff] [review].
How about this (upcoming) diff? It's smaller, and should fix it. (can't test, 
it doesn't happen on my box.)

Axel
patch (id=46738) fixes this for me. 
Thanks Pike you rock. :)

Target Milestone: mozilla0.9.4 → mozilla0.9.5
*** Bug 96948 has been marked as a duplicate of this bug. ***
Comment on attachment 46738 [details] [diff] [review]
move from make vars to DIRS +=, DIRS should stay undefined for neither mng nor png

r=pavlov
Attachment #46738 - Flags: review+
sr=jst
Attachment #46738 - Flags: superreview+
fix is in. gonna ask drivers if they want that in 0.9.4.

Axel
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment on attachment 46738 [details] [diff] [review]
move from make vars to DIRS +=, DIRS should stay undefined for neither mng nor png

a=asa for checkin to 0.9.4
Attachment #46738 - Flags: approval+
checked in on 0.9.4 branch
Target Milestone: mozilla0.9.5 → mozilla0.9.4
verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: