summaryrefslogtreecommitdiff
path: root/doc/librpm/html/group__rpmrc.html
blob: 00a4eadc54ceca130f238b9f2def82e67b373a28 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>rpm: RPMRC.</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">rpm&#160;<span id="projectnumber">4.9.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#files">Files</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">RPMRC.</div>  </div>
</div>
<div class="contents">
<div class="dynheader">
Collaboration diagram for RPMRC.:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__rpmrc.png" border="0" alt="" usemap="#group____rpmrc"/>
<map name="group____rpmrc" id="group____rpmrc">
<area shape="rect" id="node1" href="group__header.html" title="Header API." alt="" coords="203,5,296,35"/><area shape="rect" id="node2" href="group__rpmcli.html" title="Command Line API." alt="" coords="180,59,319,88"/><area shape="rect" id="node3" href="group__rpmdb.html" title="Database API." alt="" coords="196,112,303,141"/><area shape="rect" id="node4" href="group__signature.html" title="Signature API." alt="" coords="196,165,303,195"/></map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="files"></a>
Files</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmlib_8h.html">rpmlib.h</a></td></tr>

<p><tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><p>In Memoriam: Steve Taylor &lt;<a href="mailto:staylor@redhat.com">staylor@redhat.com</a>&gt; was here, now he's not. </p>
<br/></td></tr>
</p>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#gae63ceb25d4146b91751ccf857f67f654">macrofiles</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">List of macro files to read when configuring rpm.  <a href="#gae63ceb25d4146b91751ccf857f67f654"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
RPMRC</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#ga41a8861e7ff5c8d189305d9ff1319bee">rpm_machtable_e</a> { <a class="el" href="group__rpmrc.html#gga41a8861e7ff5c8d189305d9ff1319beea3064a16ecf53007bb416519fc4e1156e">RPM_MACHTABLE_INSTARCH</a> =  0, 
<a class="el" href="group__rpmrc.html#gga41a8861e7ff5c8d189305d9ff1319beea38c46b2b6ba0e20d9342e5fd45ced521">RPM_MACHTABLE_INSTOS</a> =  1, 
<a class="el" href="group__rpmrc.html#gga41a8861e7ff5c8d189305d9ff1319beeacdba72b619ac562066bdcdf99d48f8bf">RPM_MACHTABLE_BUILDARCH</a> =  2, 
<a class="el" href="group__rpmrc.html#gga41a8861e7ff5c8d189305d9ff1319beea7bde99e086950473dacf51b10e974ef1">RPM_MACHTABLE_BUILDOS</a> =  3
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Build and install arch/os table identifiers.  <a href="group__rpmrc.html#ga41a8861e7ff5c8d189305d9ff1319bee">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#gaac91e0fc109eedd29b5aebed135b8580">rpmReadConfigFiles</a> (const char *file, const char *<a class="el" href="rpmspec_8c.html#afc76fdef3b70ccc173ac51c07b738b9d">target</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read macro configuration file(s) for a target.  <a href="#gaac91e0fc109eedd29b5aebed135b8580"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#gac69000b2e434fb3c4eaae0887829e08b">rpmGetArchInfo</a> (const char **name, int *num)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return current arch name and/or number.  <a href="#gac69000b2e434fb3c4eaae0887829e08b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#ga2ac53e53de5bbce584be8b01f9fc6bd2">rpmGetOsInfo</a> (const char **name, int *num)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return current os name and/or number.  <a href="#ga2ac53e53de5bbce584be8b01f9fc6bd2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#ga1e989f4532e33a8356df275c58162fed">rpmMachineScore</a> (int type, const char *name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return arch/os score of a name.  <a href="#ga1e989f4532e33a8356df275c58162fed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#ga24a3bbf6d9f2d391a8d4dc4a1820cb5d">rpmShowRC</a> (FILE *fp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Display current rpmrc (and macro) configuration.  <a href="#ga24a3bbf6d9f2d391a8d4dc4a1820cb5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#ga9c78c502742acadd9f14af15de12fbfe">rpmSetTables</a> (int archTable, int osTable)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmrc.html#gafa5accc1656e25a42e1dbe247405ebe0">rpmFreeRpmrc</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy rpmrc arch/os compatibility tables.  <a href="#gafa5accc1656e25a42e1dbe247405ebe0"></a><br/></td></tr>
</table>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="ga41a8861e7ff5c8d189305d9ff1319bee"></a><!-- doxytag: member="rpmlib.h::rpm_machtable_e" ref="ga41a8861e7ff5c8d189305d9ff1319bee" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__rpmrc.html#ga41a8861e7ff5c8d189305d9ff1319bee">rpm_machtable_e</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Build and install arch/os table identifiers. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000017">Todo:</a></b></dt><dd>Eliminate from API. </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga41a8861e7ff5c8d189305d9ff1319beea3064a16ecf53007bb416519fc4e1156e"></a><!-- doxytag: member="RPM_MACHTABLE_INSTARCH" ref="gga41a8861e7ff5c8d189305d9ff1319beea3064a16ecf53007bb416519fc4e1156e" args="" -->RPM_MACHTABLE_INSTARCH</em>&nbsp;</td><td>
<p>Install platform architecture. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga41a8861e7ff5c8d189305d9ff1319beea38c46b2b6ba0e20d9342e5fd45ced521"></a><!-- doxytag: member="RPM_MACHTABLE_INSTOS" ref="gga41a8861e7ff5c8d189305d9ff1319beea38c46b2b6ba0e20d9342e5fd45ced521" args="" -->RPM_MACHTABLE_INSTOS</em>&nbsp;</td><td>
<p>Install platform operating system. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga41a8861e7ff5c8d189305d9ff1319beeacdba72b619ac562066bdcdf99d48f8bf"></a><!-- doxytag: member="RPM_MACHTABLE_BUILDARCH" ref="gga41a8861e7ff5c8d189305d9ff1319beeacdba72b619ac562066bdcdf99d48f8bf" args="" -->RPM_MACHTABLE_BUILDARCH</em>&nbsp;</td><td>
<p>Build platform architecture. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga41a8861e7ff5c8d189305d9ff1319beea7bde99e086950473dacf51b10e974ef1"></a><!-- doxytag: member="RPM_MACHTABLE_BUILDOS" ref="gga41a8861e7ff5c8d189305d9ff1319beea7bde99e086950473dacf51b10e974ef1" args="" -->RPM_MACHTABLE_BUILDOS</em>&nbsp;</td><td>
<p>Build platform operating system. </p>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="rpmlib_8h_source.html#l00062">62</a> of file <a class="el" href="rpmlib_8h_source.html">rpmlib.h</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gafa5accc1656e25a42e1dbe247405ebe0"></a><!-- doxytag: member="rpmlib.h::rpmFreeRpmrc" ref="gafa5accc1656e25a42e1dbe247405ebe0" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmFreeRpmrc </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroy rpmrc arch/os compatibility tables. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000022">Todo:</a></b></dt><dd>Eliminate from API. </dd></dl>

<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00470">build()</a>, and <a class="el" href="rpmspec_8c_source.html#l00055">main()</a>.</p>

</div>
</div>
<a class="anchor" id="gac69000b2e434fb3c4eaae0887829e08b"></a><!-- doxytag: member="rpmlib.h::rpmGetArchInfo" ref="gac69000b2e434fb3c4eaae0887829e08b" args="(const char **name, int *num)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmGetArchInfo </td>
          <td>(</td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return current arch name and/or number. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000018">Todo:</a></b></dt><dd>Generalize to extract arch component from target_platform macro. </dd></dl>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">name</td><td>address of arch name (or NULL) </td></tr>
    <tr><td class="paramname">num</td><td>address of arch number (or NULL) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2ac53e53de5bbce584be8b01f9fc6bd2"></a><!-- doxytag: member="rpmlib.h::rpmGetOsInfo" ref="ga2ac53e53de5bbce584be8b01f9fc6bd2" args="(const char **name, int *num)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmGetOsInfo </td>
          <td>(</td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>num</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return current os name and/or number. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000019">Todo:</a></b></dt><dd>Generalize to extract os component from target_platform macro. </dd></dl>
<dl><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">name</td><td>address of os name (or NULL) </td></tr>
    <tr><td class="paramname">num</td><td>address of os number (or NULL) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga1e989f4532e33a8356df275c58162fed"></a><!-- doxytag: member="rpmlib.h::rpmMachineScore" ref="ga1e989f4532e33a8356df275c58162fed" args="(int type, const char *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmMachineScore </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return arch/os score of a name. </p>
<p>An arch/os score measures the "nearness" of a name to the currently running (or defined) platform arch/os. For example, the score of arch "i586" on an i686 platform is (usually) 2. The arch/os score is used to select one of several otherwise identical packages using the arch/os tags from the header as hints of the intended platform for the package. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000020">Todo:</a></b></dt><dd>Rewrite to use RE's against config.guess target platform output.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>any of the RPM_MACHTABLE_* constants </td></tr>
    <tr><td class="paramname">name</td><td>name </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>arch score (0 is no match, lower is preferred) </dd></dl>

</div>
</div>
<a class="anchor" id="gaac91e0fc109eedd29b5aebed135b8580"></a><!-- doxytag: member="rpmlib.h::rpmReadConfigFiles" ref="gaac91e0fc109eedd29b5aebed135b8580" args="(const char *file, const char *target)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmReadConfigFiles </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>target</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read macro configuration file(s) for a target. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">file</td><td>colon separated files to read (NULL uses default) </td></tr>
    <tr><td class="paramname">target</td><td>target platform (NULL uses default) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 on success, -1 on error </dd></dl>

<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00470">build()</a>, and <a class="el" href="rpm2cpio_8c_source.html#l00015">main()</a>.</p>

</div>
</div>
<a class="anchor" id="ga9c78c502742acadd9f14af15de12fbfe"></a><!-- doxytag: member="rpmlib.h::rpmSetTables" ref="ga9c78c502742acadd9f14af15de12fbfe" args="(int archTable, int osTable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rpmSetTables </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>archTable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>osTable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">Deprecated:</a></b></dt><dd>Use addMacro to set _target_* macros.</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000021">Todo:</a></b></dt><dd>Eliminate from API. #</dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Only used by build code. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">archTable</td><td></td></tr>
    <tr><td class="paramname">osTable</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="rpmbuild_8c_source.html#l00360">buildForTarget()</a>.</p>

</div>
</div>
<a class="anchor" id="ga24a3bbf6d9f2d391a8d4dc4a1820cb5d"></a><!-- doxytag: member="rpmlib.h::rpmShowRC" ref="ga24a3bbf6d9f2d391a8d4dc4a1820cb5d" args="(FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmShowRC </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Display current rpmrc (and macro) configuration. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>output file handle </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 always </dd></dl>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="gae63ceb25d4146b91751ccf857f67f654"></a><!-- doxytag: member="rpmmacro.h::macrofiles" ref="gae63ceb25d4146b91751ccf857f67f654" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="group__rpmrc.html#gae63ceb25d4146b91751ccf857f67f654">macrofiles</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>List of macro files to read when configuring rpm. </p>
<p>This is a colon separated list of files. URI's are permitted as well, identified by the token '://', so file paths must not begin with '//'. </p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 15 2011 for rpm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>