[Bug 213571] New: %if "%_repository" does not work
https://bugzilla.novell.com/show_bug.cgi?id=213571 Summary: %if "%_repository" does not work Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jigish.gohil@gmail.com QAContact: adrian@novell.com Trying to build package with the following gets ignored: %if "%_repository" != "XOrg7_SUSE_Linux_10.1" BuildRequires: xorg-x11-compat70-devel %endif I have also tried with the following %if %{_repository} == XOrg7_SUSE_Linux_10.1 Didnt work either. The reason to use the above method is that there is xorg-x11-libs package in xorg7 repository that obsoletes xorg-x11-compat70-devel, but the build service tries to install xorg-x11-compat70-devel on top of xorg-x11-libs. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213571 ------- Comment #1 from jigish.gohil@gmail.com 2006-10-19 01:12 MST ------- Created an attachment (id=102003) --> (https://bugzilla.novell.com/attachment.cgi?id=102003&action=view) This is the build log from BS. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213571 anschneider@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mls@novell.com |screening@forge.provo.novell| |.com | ------- Comment #2 from anschneider@novell.com 2006-10-19 01:24 MST ------- I've looked at it with Peter Poeml. It looks like the BuildRequires parser doesn't know about the %_repository macro. We did some tests with %suse_version and this macro works just fine. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213571 mls@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from mls@novell.com 2006-10-19 06:05 MST ------- The "" in the if statement are necessary, otherwise it is an invalid expression. By a mistake the macros were parsed backwards, so _repository was always the name of the first repository in the search path, not the last. This is now fixed. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com