[Bug 679810] New: openSUSE:Tools/osc: Bug
https://bugzilla.novell.com/show_bug.cgi?id=679810 https://bugzilla.novell.com/show_bug.cgi?id=679810#c0 Summary: openSUSE:Tools/osc: Bug Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: adrian@novell.com ReportedBy: viliam.pucik@gmail.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- osc incorectly interprets macros if they are set in %if/%endif: In this example, "prerelease" macro should be interpeted as undefined, but osc thinks, it is defined and contains "pre1": --- BEGIN: part of rsync.spec taken from RHEL 6 %define isprerelease 0 %if %isprerelease %define prerelease pre1 %endif Summary: A program for synchronizing files over a network Name: rsync Version: 3.0.6 Release: 5%{?prerelease}%{?dist} Group: Applications/Internet URL: http://rsync.samba.org/ Source0: ftp://rsync.samba.org/pub/rsync/rsync-%{version}%{?prerelease}.tar.gz .. --- END $ cd rsync $ ls rsync-3.0.6-permissions.patch rsync-3.0.6.tar.gz rsync-patches-3.0.6.tar.gz rsync.spec rsync.xinetd $ osc ci rsync-3.0.6pre1.tar.gz mentioned in spec file does not exist. rsync-patches-3.0.6pre1.tar.gz mentioned in spec file does not exist. Attention, rsync-3.0.6.tar.gz is not mentioned in spec files as source or patch. Is this correct? [N/y/d] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679810 https://bugzilla.novell.com/show_bug.cgi?id=679810#c Viliam Pucik <viliam.pucik@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|openSUSE:Tools/osc: Bug |openSUSE:Tools/osc-source_v | |alidator: Bug -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679810 https://bugzilla.novell.com/show_bug.cgi?id=679810#c1 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|adrian@novell.com |ro@novell.com --- Comment #1 from Adrian Schröter <adrian@novell.com> 2011-03-18 20:09:51 UTC --- the source validator scripts don't support macro expansion yet. however, this is just a warning and does not block checkin. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679810 https://bugzilla.novell.com/show_bug.cgi?id=679810#c2 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |viliam.pucik@gmail.com Severity|Normal |Minor --- Comment #2 from Ruediger Oertel <ro@suse.com> 2011-08-01 23:10:01 UTC --- I really doubt it's possible to do this cleanly, currently we are simply changing all %if's to "%if 1" except for "%if.*%{name}" and "%ifarch" the test for the files present is a sed script that feeds into rpm to process the first part of the specfile, and too much macro processing is not done there (plus with each corner case we add support for breaks another dozen of specfiles). is this "%if.*release" a very common case ? I'm running a more elaborated specfile parser with quite some %if expansion in the specfile formatter, but this would probably not end up being much better -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=679810 https://bugzilla.novell.com/show_bug.cgi?id=679810#c3 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|viliam.pucik@gmail.com | Resolution| |NORESPONSE --- Comment #3 from Ruediger Oertel <ro@suse.com> 2013-11-11 16:38:54 UTC --- closing after 2 years of silence -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com