Skip to content

Wrong bracketing of ldconfig_scriptlets with parameters #324

@djz88

Description

@djz88

Hi, using spec-cleaner 1.2.2. from PyPI I have found this weird behaviour. After I run
~/.local/bin/spec-cleaner --no-copyright libreport.spec -o libreport.spec2
It cleaned the spec file but build failed on rpmbuild:

[    4s] + exec rpmbuild --with bugzilla -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages /home/abuild/rpmbuild/SOURCES/libreport.spec
[    4s] error: line 417: Second %post

After investigation I had found the cause. Curly brackets were put right after "scriplets".

-%ldconfig_scriptlets
-%ldconfig_scriptlets web_2
-%ldconfig_scriptlets gtk_1
-%ldconfig_scriptlets -n libreport_2
+%{ldconfig_scriptlets}
+%{ldconfig_scriptlets} web_2
+%{ldconfig_scriptlets} gtk_1
+%{ldconfig_scriptlets} -n libreport_2

When moved after the arguments it passed build.

+%{ldconfig_scriptlets}
+%{ldconfig_scriptlets web_2}
+%{ldconfig_scriptlets gtk_1}
+%{ldconfig_scriptlets -n libreport_2}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions