This file is indexed.

/usr/bin/which-pkg-broke-build is in debian-goodies 0.69.1.

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

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
#!/bin/sh
# Copyright (C) 2016 by Axel Beckert <abe@debian.org> under GPL-2+

if [ -z "$1" ]; then
   srcdir=.
fi

if [ -d "$1" ]; then
   srcdir="$1"
fi

if [ -z "$srcdir" ]; then
   pkg="$1"
fi

# For now we ignore that some dependencies myight be
# architecture-specific
bd=$(
    echo -n "build-essential "
    if [ -n "$pkg" ]; then
        apt-cache showsrc "$pkg"
    elif [ -n "$srcdir" ]; then
        cat debian/control | sed ':a;N;$!ba;s/\(Build-Depends[^ ]*:[^\n:]*\)\n/\1 /g'
    fi | \
        fgrep Build-Depends | \
        tr '|,' '  ' | \
        sed -e 's/^Build-Depends[^ ]*://; s/([^()]*)//g; s/<[^<>]*>//g; s/\[[^]]*\]//g;'
    )

# Schwartzian transform in bourne shell
for pkg in $bd; do
    which-pkg-broke $pkg
done | \
    fgrep -v "has no install time info" | \
    while read pkg date; do
        echo `date +%s -d "$date"` $pkg
    done | \
    sort -n | \
    uniq | \
    while read date pkg; do
        echo $pkg `date +"%x %X" -d "@$date"`
    done | \
    column -t