Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175849 - qmake from qt4 accepts invalid .pro files
Summary: qmake from qt4 accepts invalid .pro files
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 13:31 UTC by Andreas Pakulat
Modified: 2007-04-24 18:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pakulat 2007-04-24 13:31:01 UTC
QMake from Qt4.2.3 accepts .pro files with the following content:
unix
{
 FOO=bar
}

This is not valid according to upstream qmake and is not documented anywhere in the qmake manual. The patch that added this to gentoo's qmake should be removed as it makes gentoo's qmake incompatible with qmake on other distributions or from upstream and thus makes .pro files that use this syntax un-portable.

Reproducible: Always

Steps to Reproduce:
1.create a .pro file with the content:
unix
{
  FOO=bar
}
2. Execute qmake from Qt4 in the directory containing the .pro file

Actual Results:  
QMake accepts the .pro file and generates a Makefile

Expected Results:  
QMake should produce an error message saying that it doesn't recognize "unix"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2007-04-24 14:27:41 UTC
What patch adds this?
Comment 2 Andreas Pakulat 2007-04-24 18:39:01 UTC
Unfortunately I'm not a Gentoo user, but there was a Gentoo user on KDevelop IRC today for whom the example worked fine, so I thought I'd file a bugreport. 

However another Gentoo User and KDevelop developer can't reproduce this with an up-to-date Qt4, so maybe it was fixed since.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2007-04-24 18:43:14 UTC
There's no patch I can see where we make any modifications like this.  The only qt4 patches we have are compilation fixes as best as I can tell.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2007-04-24 18:47:25 UTC
I can't recreate it here, so I don't think this is gentoo related.