File: config.over

package info (click to toggle)
perl 5.24.1-3+deb9u5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,716 kB
  • sloc: perl: 559,611; ansic: 293,886; sh: 67,316; pascal: 7,632; cpp: 3,895; makefile: 2,436; xml: 2,410; yacc: 989; sed: 6; lisp: 1
file content (148 lines) | stat: -rw-r--r-- 3,331 bytes parent folder | download
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
#!/bin/sh

# we use a different method to get old site versions into @INC
sitelib_stem=

# no versions under vendorlib
vendorlib_stem=

# remove -rpath (shared libperl is moved to /usr/lib/<triplet> by rules)
tmp=
for t in $ccdlflags
do
    case $t in
	-Wl,-rpath,*) ;;
	*) tmp="$tmp${tmp:+ }$t"
    esac
done

ccdlflags="$tmp"

# set previous version dirs
inc_version_list=
inc_version_list_init=0
while read ver
do
    dpkg --compare-versions "$ver" lt "$version"	    || break
    dpkg --compare-versions "$ver" lt "$api_versionstring"  && continue
    inc_version_list="$ver${inc_version_list:+ }$inc_version_list"
    inc_version_list_init="\"$ver\",$inc_version_list_init"
done <debian/released-versions
if [ -n "$inc_version_list" ]; then
    d_inc_version_list=define
fi

# we always want the Berkeley DB support
if [ "$i_db" != "$define" ]; then
    echo "debian/config.over: Berkeley DB support not enabled, aborting!" 1>&2
    exit 1
fi

# force /usr/lib/<triplet> into $Config{libpth} if it's not there yet
# see #630399
multiarch_dir=/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`
if ! echo $libpth | grep -q "$multiarch_dir"
then
    libpth="$libpth $multiarch_dir"
fi

# set configuration time to latest debian/changelog entry
cf_time=$(LC_ALL=C date --utc -d "$(dpkg-parsechangelog | sed -n -e 's/^Date: //p')")
# set generic email addresses, host/domain names
cf_by='Debian Project'
cf_email=perl@packages.debian.org
perladmin=root@localhost
mydomain=
myhostname=localhost

# emulate 'uname -m' output for reproducibility regardless of (for example)
# 32-bit vs 64-bit kernel
#
# this is silly but oh well
# see #821182

host_arch=${DEB_HOST_ARCH:-$(dpkg-architecture -qDEB_HOST_ARCH)}

case "$host_arch" in
    # hardcoded machine names on known architectures based on debian/cross results
    alpha)
        machine_uname=alpha
        ;;
    amd64|kfreebsd-amd64|x32)
        machine_uname=x86_64
        ;;
    arm64)
        machine_uname=aarch64
        ;;
    armel|armhf)
        machine_uname=armv7l
        ;;
    hppa)
        machine_uname=parisc64
        ;;
    hurd-i386)
        machine_uname=i686-at386
        ;;
    i386)
        machine_uname=i686
        ;;
    kfreebsd-i386)
        machine_uname=i386
        ;;
    mips64el)
        machine_uname=mips64
        ;;
    mips|mipsel)
        machine_uname=mips
        ;;
    kfreebsd-i386)
        machine_uname=i686
        ;;
    m68k)
        machine_uname=m68k
        ;;
    powerpc|powerpcspe)
        machine_uname=ppc
        ;;
    ppc64)
        machine_uname=ppc64
        ;;
    ppc64el)
        machine_uname=ppc64le
        ;;
    s390x)
        machine_uname=s390x
        ;;
    sh4)
        machine_uname=sh4a
        ;;
    sparc64)
        machine_uname=sparc64
        ;;
    *)
        # default to what Configure does
        machine_uname=$(uname -m | tr '[A-Z]' '[a-z]' | sed -e "s,['/],,g")
        ;;
esac

case "$osname" in
  linux)
      osvers=3.16.0
      osdesc="#1 smp debian $osvers"
      os=gnulinux
      ;;
  gnu)
      osvers=0.6
      osdesc="gnu-mach"
      os=gnu
      ;;
  gnukfreebsd)
      osvers=9.0
      osdesc="#0"
      os=gnukfreebsd
      ;;
esac
if [ -n "$osdesc" ]; then
  myarchname="${machine_uname}-${osname}"
  myuname="$osname $myhostname $osvers $osdesc $machine_uname $os "
fi