lsb

code duplication: parsing arguments vs. environment variables

Bug #1327279 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
In Progress
Medium
Unassigned
Mandriva
In Progress
Medium

Bug Description

Right now, lsbcc parses several options twice: once when specified via
environment variable, and then again when specified via the command line. This
results in behavior where some options act differently when passed one way or
the other.

For example:

$ LSB_MODULES=Toolkit_Qt3 ./lsbcc -c -o foo.o lsbcc.c
$ ./lsbcc --lsb-modules=Toolkit_Qt3 -c -o foo.o lsbcc.c
unknown module: Toolkit_Qt3
Usage ./lsbcc:
[...]

The bugfix (for bug 2004, as far as I can tell) got applied in one place, but
not the other.

I propose that the command-line options should modify the environment, and then
the environment should be parsed exactly once.

Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
Jeff Johnson (n3npq)
tags: added: lsbcc zpunt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.