This file is indexed.

/usr/share/doc/git-buildpackage/manual-html/gbp.special.html is in git-buildpackage 0.7.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Special use cases</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Building Debian Packages with git-buildpackage"
HREF="gbp.html"><LINK
REL="PREVIOUS"
TITLE="Configuration files"
HREF="gbp.cfgfile.html"><LINK
REL="NEXT"
TITLE="Command Reference"
HREF="man.reference.html"><STYLE
TYPE="text/css"
>.synopsis, .classsynopsis {
    background: #eeeeee;
    border: solid 1px #aaaaaa;
    padding: 0.5em;
}
.programlisting {
    background: #eeeeff;
    border: solid 1px #aaaaff;
    padding: 0.5em;
}
.variablelist {
    padding: 4px;
    margin-left: 3em;
}
.navigation {
    background: #ffeeee;
    border: solid 1px #ffaaaa;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.navigation a {
    color: #770000;
}
.navigation a:visited {
    color: #550000;
}
.navigation .title {
    font-size: 200%;
}</STYLE
></HEAD
><BODY
class="chapter"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><TABLE
WIDTH="100%"
CLASS="navigation"
SUMMARY="Navigation header"
CELLPADDING="2"
CELLSPACING="2"
><TR
VALIGN="middle"
><TD
><A
ACCESSKEY="p"
HREF="gbp.cfgfile.html"
><IMG
SRC="left.png"
WIDTH="16"
HEIGHT="16"
BORDER="0"
ALT="Prev"></A
></TD
><TD
><A
ACCESSKEY="h"
HREF="gbp.html"
><IMG
SRC="home.png"
WIDTH="16"
HEIGHT="16"
BORDER="0"
ALT="Home"></A
></TD
><TH
WIDTH="100%"
align="center"
>Building Debian Packages with git-buildpackage: Version: 0.7.2</TH
><TD
><A
ACCESSKEY="n"
HREF="man.reference.html"
><IMG
SRC="right.png"
WIDTH="16"
HEIGHT="16"
BORDER="0"
ALT="Next"></A
></TD
></TR
></TABLE
><DIV
class="chapter"
><H1
><A
NAME="GBP.SPECIAL"
></A
>Special use cases</H1
><DIV
class="toc"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="gbp.special.html#GBP.SPECIAL.DFSGFREE"
>Handling non-DFSG clean upstream sources</A
></DT
><DT
><A
HREF="gbp.special.html#GBP.SPECIAL.NMUS"
>Importing NMUs</A
></DT
><DT
><A
HREF="gbp.special.html#GBP.SPECIAL.PBUILDER"
>Building with <SPAN
class="productname"
>Cowbuilder</SPAN
></A
></DT
><DT
><A
HREF="gbp.special.html#GBP.SPECIAL.HACKING"
>Working on random packages</A
></DT
></DL
></DIV
><BR
CLEAR="all"><DIV
class="sect1"
><H1
class="sect1"
><A
NAME="GBP.SPECIAL.DFSGFREE"
>Handling non-DFSG clean upstream sources</A
></H1
><P
>If you have to handle non-DFSG clean upstream sources, you can use a
    different branch which you have to create once:
    </P
><PRE
class="programlisting"
>  <B
class="command"
>git</B
> branch dfsg_clean upstream</PRE
><P
>    This creates the <SPAN
CLASS="emphasis"
><I
class="emphasis"
>dfsg_clean</I
></SPAN
> branch from the tip of a
    branch called <SPAN
CLASS="emphasis"
><I
class="emphasis"
>upstream</I
></SPAN
>.  Then, when importing a new
    upstream version, you import the new version on the
    <CODE
class="option"
>upstream-branch</CODE
> (by default named
    <SPAN
CLASS="emphasis"
><I
class="emphasis"
>upstream</I
></SPAN
>) as usual and just don't merge to the
    <SPAN
CLASS="emphasis"
><I
class="emphasis"
>debian-branch</I
></SPAN
>  (by default named
    <SPAN
CLASS="emphasis"
><I
class="emphasis"
>master</I
></SPAN
>):
    </P
><PRE
class="programlisting"
>  <B
class="command"
>gbp&nbsp;import-orig</B
> --no-merge <TT
class="filename"
>/path/to/nondfsg-clean-package_10.4.orig.tar.gz</TT
>
  <B
class="command"
>git</B
> <CODE
class="option"
>tag</CODE
> 10.4</PRE
><P
>    After the import, you can switch to the <SPAN
CLASS="emphasis"
><I
class="emphasis"
>dfsg_clean</I
></SPAN
>
    branch and get the newly imported changes from the upstream branch:
    </P
><PRE
class="programlisting"
>  <B
class="command"
>git</B
> <CODE
class="option"
>checkout</CODE
> dfsg_clean
  <B
class="command"
>git</B
> <CODE
class="option"
>pull</CODE
> <TT
class="filename"
>.</TT
> upstream</PRE
><P
>Now make this checkout dfsg clean (preferably by a cleanup script), commit
    your changes and merge to your <CODE
class="option"
>debian-branch</CODE
>:</P
><PRE
class="programlisting"
>  cleanup-script.sh
  <B
class="command"
>git</B
> commit -a -m "Make source dfsg clean"
  <B
class="command"
>git</B
> tag <TT
class="replaceable"
><I
>10.4.dfsg</I
></TT
>
  <B
class="command"
>git</B
> checkout <TT
class="replaceable"
><I
>master</I
></TT
>
  <B
class="command"
>git</B
> pull <TT
class="replaceable"
><I
>.</I
></TT
> <TT
class="replaceable"
><I
>dfsg_clean</I
></TT
></PRE
></DIV
><BR
CLEAR="all"><DIV
class="sect1"
><H1
class="sect1"
><A
NAME="GBP.SPECIAL.NMUS"
>Importing NMUs</A
></H1
><P
>    First, create a branch that holds the NMUs from the tip of your
    <CODE
class="option"
>debian-branch</CODE
> (default is <SPAN
CLASS="emphasis"
><I
class="emphasis"
>master</I
></SPAN
>) once:
    </P
><PRE
class="programlisting"
>  <B
class="command"
>git</B
> <CODE
class="option"
>branch</CODE
> <TT
class="replaceable"
><I
>nmu</I
></TT
> <TT
class="replaceable"
><I
>master</I
></TT
></PRE
><P
>    To import an NMU, change into the git repository and use <B
class="command"
>gbp&nbsp;import-dsc</B
>:
    </P
><PRE
class="programlisting"
>  <B
class="command"
>git</B
> checkout <TT
class="replaceable"
><I
>master</I
></TT
>
  <B
class="command"
>gbp&nbsp;import-dsc</B
> <CODE
class="option"
>--debian-branch</CODE
>=<TT
class="replaceable"
><I
>nmu</I
></TT
> <TT
class="filename"
>/path/to/package_1.0-1nmu0.dsc</TT
></PRE
><P
>    This will import the NMU onto the branched named <SPAN
CLASS="emphasis"
><I
class="emphasis"
>nmu</I
></SPAN
>
    instead of the default <CODE
class="option"
>master</CODE
>. This method can also
    be used to import "old" releases into the <SPAN
class="productname"
>Git</SPAN
> repository when migrating
    to <SPAN
class="productname"
>Git</SPAN
> from another VCS.
    </P
></DIV
><BR
CLEAR="all"><DIV
class="sect1"
><H1
class="sect1"
><A
NAME="GBP.SPECIAL.PBUILDER"
>Building with <SPAN
class="productname"
>Cowbuilder</SPAN
></A
></H1
><P
>      <SPAN
class="productname"
>Cowbuilder</SPAN
> is nice tool to build Debian packages in a defined
      environment.  It makes sure all build-dependencies are specified
      correctly by building the package in a clean chroot. As its
      cousin <SPAN
class="productname"
>Pbuilder</SPAN
> it can be extended via hooks to (e.g. run
      autopkg tests) but doesn't need a tarball unpacked but uses copy
      on write tree to speed up the build.
    </P
><P
>      Since <SPAN
class="productname"
>Cowbuilder</SPAN
> uses different command line arguments than
      <SPAN
class="productname"
>Debuild</SPAN
> and <SPAN
class="productname"
>Dpkg-buildpackage</SPAN
>, we can't simply pass the
      options to run it on the command line. To simplifiy the
      integration we use a separate helper named <B
class="command"
>git-pbuilder</B
>.
      <B
class="command"
>gbp</B
> has it's own command line option for this:
    </P
><PRE
class="programlisting"
>  <B
class="command"
>gbp&nbsp;buildpackage</B
> <CODE
class="option"
>--git-pbuilder</CODE
></PRE
><P
>      This will set the build command to run <B
class="command"
>git-pbuilder</B
> (which
      invokes <SPAN
class="productname"
>Cowbuilder</SPAN
> by default) and the clean command
      to <B
class="command"
>/bin/true</B
>. It also activates the parsing
      of several <B
class="command"
>git-pbuilder</B
> related options
      like <CODE
class="option"
>--git-dist</CODE
>, <CODE
class="option"
>--git-arch</CODE
> and
      <CODE
class="option"
>--git-pbuilder-options</CODE
>.
    </P
><P
>      We can make <B
class="command"
>git-pbuilder</B
> usage the default by adding it to
      <TT
class="filename"
>~/.gbp.conf</TT
>:
    </P
><PRE
class="programlisting"
>cat &lt;&lt;EOF &gt; <TT
class="filename"
>~/.gbp.conf</TT
>
[DEFAULT]
# We invoke cowbuilder via git-pbuilder. Arguments passed to <B
class="command"
>gbp&nbsp;buildpackage</B
>
# will be passed to dpkg-buildpackage in the chroot
pbuilder = True
EOF</PRE
><P
>	<B
class="command"
>git-pbuilder</B
> defaults to building a package for the
	<CODE
class="envar"
>sid</CODE
> distribution. If you want to build for another
	distribution, pass this in the <CODE
class="option"
>--git-dist</CODE
> option:

<PRE
class="programlisting"
>  <B
class="command"
>gbp&nbsp;buildpackage</B
> --git-pbuilder --git-dist=jessie</PRE
>

	If you want to use <B
class="command"
>debuild</B
> again (without
	modifying <TT
class="filename"
>~/.gbp.conf</TT
>), you can use:
      </P
><PRE
class="programlisting"
>  <B
class="command"
>gbp&nbsp;buildpackage</B
> --git-no-pbuilder</PRE
><P
>	In order for all of the above to work you have to create a
	base chroot first using <B
class="command"
>git-pbuilder</B
>
      </P
><PRE
class="programlisting"
>  <B
class="command"
>git-pbuilder</B
> create</PRE
><P
>	This can later be updated using
      </P
><PRE
class="programlisting"
>  <B
class="command"
>git-pbuilder</B
> update</PRE
></DIV
><BR
CLEAR="all"><DIV
class="sect1"
><H1
class="sect1"
><A
NAME="GBP.SPECIAL.HACKING"
>Working on random packages</A
></H1
><P
>    Whenever you need to work on an arbitrary <SPAN
class="productname"
>Debian</SPAN
> package, you can check it
    right into <SPAN
class="productname"
>Git</SPAN
> with one command:
<PRE
class="programlisting"
>  <B
class="command"
>gbp&nbsp;import-dsc</B
> --download <TT
class="filename"
>package</TT
>
  cd <TT
class="filename"
>package</TT
>
  <B
class="command"
>git</B
> branch debian</PRE
>
    </P
><P
>    This uses <B
class="command"
>apt-get</B
> to download the source package,
    puts the orig tarball on the <CODE
class="option"
>upstream-branch</CODE
> and the
    <SPAN
class="productname"
>Debian</SPAN
> changes on the <CODE
class="option"
>debian-branch</CODE
> (by default
    <SPAN
CLASS="emphasis"
><I
class="emphasis"
>master</I
></SPAN
>). The second command
    creates a branch called <SPAN
CLASS="emphasis"
><I
class="emphasis"
>debian</I
></SPAN
>. Now you can easily
    modify the package, revert changes you made, create other branches for
    testing, see what changes you made, etc.  When finished, just do</P
><PRE
class="programlisting"
>  <B
class="command"
>git</B
> commit -a
  <B
class="command"
>git</B
> diff debian --</PRE
><P
>&#13;    to get a nice patch that can be submitted to the <SPAN
class="productname"
>Debian</SPAN
> BTS. You can also
    fetch the source package from a URL:

<PRE
class="programlisting"
>  <B
class="command"
>gbp&nbsp;import-dsc</B
> --download <TT
class="filename"
>http://mentors.debian.net/debian/pool/main/i/ipsec-tools/ipsec-tools_0.7.3-9.dsc</TT
></PRE
>

   The import works incrementally; you can import new versions on top of
   already imported ones for e.g. easy review of changes.
    </P
></DIV
></DIV
><TABLE
CLASS="navigation"
WIDTH="100%"
SUMMARY="Navigation footer"
CELLPADDING="2"
CELLSPACING="2"
><TR
VALIGN="middle"
><TD
ALIGN="left"
><A
ACCESSKEY="p"
HREF="gbp.cfgfile.html"
><B
>&lt;&lt;&lt;&nbsp;Configuration files</B
></A
></TD
><TD
ALIGN="right"
><A
ACCESSKEY="n"
HREF="man.reference.html"
><B
>Command Reference&nbsp;&gt;&gt;&gt;</B
></A
></TD
></TR
></TABLE
></BODY
></HTML
>