summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-April/014176.html
blob: ef5655f836f2cab829473161fbb8d1d30562db9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
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>