Bug ID 1180503
Summary "osc build" don't ignore the line which was commented out
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter junguo.wang@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 844784 [details]
build.log file and rpm spec file

I got a issue when I tried to build a package with "osc build", it is that "osc
build" don't ignore the line which was commented out, for example:

this is the section of the rpm spec file:
"""
    %prep
    ## %setup -q -n mda.lv2-%{version}
    %autosetup -p1
"""

and I got the output from "osc build":
"""
    [   14s] RPMLINT report:
    [   14s] ===============
    [   15s] mda-lv2.src:43: W: macro-in-comment %setup
    [   15s] mda-lv2.src:43: W: macro-in-comment %{version}
    [   15s] There is a unescaped macro after a shell style comment in the
specfile. Macros
    [   15s] are expanded everywhere, so check if it can cause a problem in
this case and
    [   15s] escape the macro with another leading % if appropriate.
    [   15s]
    [   15s] 2 packages and 0 specfiles checked; 0 errors, 2 warnings.
"""

if I deleted the line "## %setup -q -n mda.lv2-%{version}" from the rpm spec
file, the warnings will be ZERO rather that 2, so it seems that the
commented-out line was NOT ignored by "osc build", is it normal ?

I will upload the build log and the rpm spec file in next comments.


You are receiving this mail because: