summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-April/014176.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2012-April/014176.html')
-rw-r--r--zarb-ml/mageia-dev/2012-April/014176.html147
1 files changed, 147 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-April/014176.html b/zarb-ml/mageia-dev/2012-April/014176.html
new file mode 100644
index 000000000..ef5655f83
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-April/014176.html
@@ -0,0 +1,147 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] rpm lies to bcond_with{out} usage
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20rpm%20lies%20to%20bcond_with%7Bout%7D%20usage&In-Reply-To=%3CCAKVccoVUBio45-Yys_qHwGmR2LHap0Q3Mn4vOuZeWkxaq%3DGizw%40mail.gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="014180.html">
+ <LINK REL="Next" HREF="014178.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] rpm lies to bcond_with{out} usage</H1>
+ <B>simple w8</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20rpm%20lies%20to%20bcond_with%7Bout%7D%20usage&In-Reply-To=%3CCAKVccoVUBio45-Yys_qHwGmR2LHap0Q3Mn4vOuZeWkxaq%3DGizw%40mail.gmail.com%3E"
+ TITLE="[Mageia-dev] rpm lies to bcond_with{out} usage">simplew8 at gmail.com
+ </A><BR>
+ <I>Thu Apr 12 06:12:51 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="014180.html">[Mageia-dev] Freeze Push: drakx-net
+</A></li>
+ <LI>Next message: <A HREF="014178.html">[Mageia-dev] Freeze push: openjpeg 1.5.0
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#14176">[ date ]</a>
+ <a href="thread.html#14176">[ thread ]</a>
+ <a href="subject.html#14176">[ subject ]</a>
+ <a href="author.html#14176">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Hi,
+
+In /usr/lib/rpm/macros it does say:
+
+# Handle conditional builds. %bcond_with is for case when feature is
+# default off and needs to be activated with --with ... command line
+# switch. %bcond_without is for the dual case.
+#
+# %bcond_with foo defines symbol with_foo if --with foo was specified on
+# command line.
+# %bcond_without foo defines symbol with_foo if --without foo was *not*
+# specified on command line.
+#
+# For example (spec file):
+#
+# (at the beginning)
+# %bcond_with extra_fonts
+# %bcond_without static
+# (and later)
+# %if %{with extra_fonts}
+# ...
+# %else
+# ...
+# %endif
+# %if ! %{with static}
+# ...
+# %endif
+# %ifdef %{with static}
+# ...
+# %endif
+
+But seams this is NO longer true, i have add in a spec &quot;%bcond_with foo&quot;
+
+so if i want to deny it (following the explained usage) i would have
+to do: %if ! %{with foo}
+
+but seams its not denying, rpm is lying!
+
+So far the only way i found to deny and that does in fact deny is to
+use: %if %{!with foo}
+
+Surprised? Well so am i!
+
+Seams that rpm behaviour goes very confusing, since also &quot;rpmquery&quot;
+no longer does what is expected i.e. &quot;rpmquery -i foo&quot; doesn not show
+any info about the package.
+
+Can this be fixed with a patch?
+Maybe would be better for the rpm maintainer report these problems upstream?
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="014180.html">[Mageia-dev] Freeze Push: drakx-net
+</A></li>
+ <LI>Next message: <A HREF="014178.html">[Mageia-dev] Freeze push: openjpeg 1.5.0
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#14176">[ date ]</a>
+ <a href="thread.html#14176">[ thread ]</a>
+ <a href="subject.html#14176">[ subject ]</a>
+ <a href="author.html#14176">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>