File: deb-locations.dpatch

package info (click to toggle)
python2.2 2.2.3dfsg-2sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 36,920 kB
  • ctags: 69,127
  • sloc: ansic: 219,839; python: 203,969; sh: 9,690; makefile: 3,468; perl: 3,454; lisp: 3,248; xml: 2,262; cpp: 106; sed: 2
file content (181 lines) | stat: -rw-r--r-- 6,863 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
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
#! /bin/sh -e

# DP: adjust locations of directories to debian policy

dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
    pdir="-d $3"
    dir="$3/"
elif [ $# -ne 1 ]; then
    echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
    exit 1
fi
case "$1" in
    -patch)
        patch $pdir -f --no-backup-if-mismatch -p1 < $0
        #cd ${dir}gcc && autoconf
        ;;
    -unpatch)
        patch $pdir -f --no-backup-if-mismatch -R -p1 < $0
        #rm ${dir}gcc/configure
        ;;
    *)
	echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
        exit 1
esac
exit 0

--- python2.1-2.1.1.orig/Demo/scripts/ftpstats.py
+++ python2.1-2.1.1/Demo/scripts/ftpstats.py
@@ -6,7 +6,8 @@
 # ftpstats [-m maxitems] [-s search] [file]
 # -m maxitems: restrict number of items in "top-N" lists, default 25.
 # -s string:   restrict statistics to lines containing this string.
-# Default file is /usr/adm/ftpd;  a "-" means read stdandard input.
+# Default file for Debian GNU/Linux is /var/log/xferlog;
+# a "-" means read stdandard input.
 
 # The script must be run on the host where the ftp daemon runs.
 # (At CWI this is currently buizerd.)
@@ -34,7 +35,7 @@
 			maxitems = string.atoi(a)
 		if o == '-s':
 			search = a
-	file = '/usr/adm/ftpd'
+	file = '/var/log/xferlog'
 	if args: file = args[0]
 	if file == '-':
 		f = sys.stdin
--- python2.1-2.1.1.orig/Demo/tkinter/guido/ManPage.py
+++ python2.1-2.1.1/Demo/tkinter/guido/ManPage.py
@@ -189,8 +189,9 @@
 def test():
 	import os
 	import sys
-	# XXX This directory may be different on your system
-	MANDIR = '/usr/local/man/mann'
+	# XXX This directory may be different on your system,
+	#     it is here set for Debian GNU/Linux.
+	MANDIR = '/usr/share/man'
 	DEFAULTPAGE = 'Tcl'
 	formatted = 0
 	if sys.argv[1:] and sys.argv[1] == '-f':
--- python2.1-2.1.1.orig/Demo/tkinter/guido/tkman.py
+++ python2.1-2.1.1/Demo/tkinter/guido/tkman.py
@@ -9,8 +9,8 @@
 from Tkinter import *
 from ManPage import ManPage
 
-MANNDIRLIST = ['/depot/sundry/man/mann','/usr/local/man/mann']
-MAN3DIRLIST = ['/depot/sundry/man/man3','/usr/local/man/man3']
+MANNDIRLIST = ['/depot/sundry/man/mann','/usr/man/mann']
+MAN3DIRLIST = ['/depot/sundry/man/man3','/usr/man/man3']
 
 foundmanndir = 0
 for dir in MANNDIRLIST:
--- python2.1-2.1.1.orig/Lib/mailbox.py
+++ python2.1-2.1.1/Lib/mailbox.py
@@ -267,7 +267,7 @@
     if mbox[:1] == '+':
         mbox = os.environ['HOME'] + '/Mail/' + mbox[1:]
     elif not '/' in mbox:
-        mbox = '/usr/mail/' + mbox
+        mbox = '/var/mail/' + mbox
     if os.path.isdir(mbox):
         if os.path.isdir(os.path.join(mbox, 'cur')):
             mb = Maildir(mbox)
--- python2.1-2.1.1.orig/Lib/site.py
+++ python2.1-2.1.1/Lib/site.py
@@ -18,6 +18,11 @@
 resulting directories, if they exist, are appended to sys.path, and
 also inspected for path configuration files.
 
+FOR DEBIAN, this sys.path is augmented with directories in /usr/local.
+Local addons go into /usr/local/lib/python<version>/site-packages
+(resp. /usr/local/lib/site-python), Debian addons install into
+/usr/lib/python<version>/site-packages.
+
 A path configuration file is a file whose name has the form
 <package>.pth; its contents are additional directories (one per line)
 to be added to sys.path.  Non-existing directories (or
@@ -130,9 +135,9 @@
             sys.path.append(dir)
             dirs_in_sys_path[dircase] = 1
 
-prefixes = [sys.prefix]
+prefixes = [os.path.join(sys.prefix, "local"), sys.prefix]
 if sys.exec_prefix != sys.prefix:
-    prefixes.append(sys.exec_prefix)
+    prefixes.append(os.path.join(sys.exec_prefix, "local"))
 for prefix in prefixes:
     if prefix:
         if os.sep == '/':
--- python2.1-2.1.1.orig/Tools/faqwiz/faqconf.py
+++ python2.1-2.1.1/Tools/faqwiz/faqconf.py
@@ -21,7 +21,7 @@
 OWNEREMAIL = "nobody@anywhere.org"	# Email for feedback
 HOMEURL = "http://www.python.org"	# Related home page
 HOMENAME = "Python home"		# Name of related home page
-RCSBINDIR = "/usr/local/bin/"		# Directory containing RCS commands
+RCSBINDIR = "/usr/bin/"			# Directory containing RCS commands
 					# (must end in a slash)
 
 # Parameters you can normally leave alone
--- python2.1-2.1.1.orig/Tools/webchecker/webchecker.py
+++ python2.1-2.1.1/Tools/webchecker/webchecker.py
@@ -19,7 +19,8 @@
 a directory listing is returned.  Now, you can point webchecker to the
 document tree in the local file system of your HTTP daemon, and have
 most of it checked.  In fact the default works this way if your local
-web tree is located at /usr/local/etc/httpd/htdpcs (the default for
+web tree is located at /var/www, which is the default for Debian
+GNU/Linux. Other systems use /usr/local/etc/httpd/htdocs (the default for
 the NCSA HTTP daemon and probably others).
 
 Report printed:
8rameters
-DEFROOT = "file:/usr/local/etc/httpd/htdocs/"   # Default root URL
+DEFROOT = "file:/var/www/"   # Default root URL
 CHECKEXT = 1                            # Check external references (1 deep)
 VERBOSE = 1                             # Verbosity level (0-3)
 MAXPAGE = 150000                        # Ignore files bigger than this
--- python2.1-2.1.1.orig/Tools/idle/idle.py~	Mon Apr 10 18:27:47 2000
+++ python2.1-2.1.1/Tools/idle/idle.py	Sat Dec 29 19:54:41 2001
@@ -1,4 +1,6 @@
 #! /usr/bin/env python
 
+import sys
+sys.path[:0] = ['/usr/lib/idle-python2.2']
 import PyShell
 PyShell.main()
 
--- python2.1-2.1.1.orig/Lib/pydoc.py.orig	2002-03-25 14:11:47.000000000 +0100
+++ python2.1-2.1.1/Lib/pydoc.py	2002-07-24 07:51:57.000000000 +0200
@@ -1492,6 +1492,7 @@
         for dir in [os.environ.get('PYTHONDOCS'),
                     homedir and os.path.join(homedir, 'doc'),
                     os.path.join(execdir, 'doc'),
+                    '/usr/share/doc/python' + sys.version[:3] + '-doc/html',
                     '/usr/doc/python-docs-' + split(sys.version)[0],
                     '/usr/doc/python-' + split(sys.version)[0],
                     '/usr/doc/python-docs-' + sys.version[:3],
@@ -1597,6 +1598,9 @@
 Sorry, topic and keyword documentation is not available because the Python
 HTML documentation files could not be found.  If you have installed them,
 please set the environment variable PYTHONDOCS to indicate their location.
+
+On Debian GNU/{Linux,Hurd} systems you have to install the corresponding
+pythonX.Y-doc package, i.e. python2.2-doc.
 ''')
             return
         target = self.topics.get(topic, self.keywords.get(topic))
--- ./Lib/mimetypes.py~	2001-12-05 16:58:29.000000000 +0100
+++ ./Lib/mimetypes.py	2003-01-21 20:38:01.000000000 +0100
@@ -29,6 +29,7 @@
 __all__ = ["guess_type","guess_extension","read_mime_types","init"]
 
 knownfiles = [
+    "/etc/mime.types",
     "/usr/local/etc/httpd/conf/mime.types",
     "/usr/local/lib/netscape/mime.types",
     "/usr/local/etc/httpd/conf/mime.types",     # Apache 1.2