...
 
Commits (5854)

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

!/patches*
!*.patch
!*.diff
!series
*.debhelper*
*.pyc
*.substvars
*-di
/*-tmp/
/build/
/config.defines.dump
/control
/control.md5sum
/files
/hyperv-daemons/
/libbpf*/
/libcpupower*/
/liblockdep*/
/libusbip-dev/
/linux-*
!/linux-cpupower.install
!/linux-cpupower.manpages
/lockdep/
/po/
/rules.gen
/stamps/
/tests/control
/tmp/
/usbip/
/xen-linux-system-*
......@@ -6,7 +6,9 @@ Patches
Debian applies small changes to the kernel source. These are split up into
separated patches addressing individual problems. Each of the patch files
contains a description and mentions the author. The patches can be found
at http://svn.debian.org/wsvn/kernel/dists/trunk/linux/debian/patches/.
in the source package or at
https://sources.debian.org/src/linux/<version>/debian/patches/
(with the package version substituted).
Config Files
------------
......@@ -43,14 +45,21 @@ Rebuilding Adaptec AIC7xxx/79xx firmware
You can rebuild the firmware for the Adaptec AIC7xxx/79xx SCSI Adapters. To
do so you need to set AIC7XXX_BUILD_FIRMWARE/AIC79XX_BUILD_FIRMWARE config
options. Note that this requires to have the development packages for
berkelydb (libdb4.2-dev) installed.
Berkeley Database (libdb-dev) installed.
Non-free bits removed
---------------------
See the patches under debian/patches/debian/dfsg.
See the Files-Excluded field in debian/copyright.
Changelog
---------
Older Debian changelog entries are no longer included in binary
packages, but can be found in debian/changelog.old in the source
package.
Further information
-------------------
Debian Linux Kernel Handbook: http://kernel-handbook.alioth.debian.org
or debian-kernel-handbook package
Debian Wiki: http://wiki.debian.org/DebianKernel
Debian Linux Kernel Handbook:
https://kernel-team.pages.debian.net/kernel-handbook/
or debian-kernel-handbook package
Debian Wiki: https://wiki.debian.org/DebianKernel
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/usr/bin/env python
#!/usr/bin/python3
import sys
sys.path.append(sys.path[0] + "/../lib/python")
import optparse
import os
import shutil
import tempfile
import urllib2
from urllib.request import urlopen
from urllib.error import HTTPError
from debian_linux.abi import Symbols
from debian_linux.config import *
from debian_linux.debian import *
from debian_linux.config import ConfigCoreDump
from debian_linux.debian import Changelog, VersionLinux
default_url_base = "http://ftp.de.debian.org/debian/"
default_url_base_incoming = "http://incoming.debian.org/"
default_url_base_ports = "http://ftp.debian-ports.org/debian/"
default_url_base = "https://deb.debian.org/debian/"
default_url_base_incoming = "https://incoming.debian.org/debian-buildd/"
default_url_base_ports = "https://deb.debian.org/debian-ports/"
default_url_base_ports_incoming = "https://incoming.ports.debian.org/"
default_url_base_security = "https://deb.debian.org/debian-security/"
class url_debian_flat(object):
......@@ -31,25 +33,30 @@ class url_debian_pool(object):
self.base = base
def __call__(self, source, filename, arch):
return self.base + "pool/main/" + source[0] + "/" + source + "/" + filename
return (self.base + "pool/main/" + source[0] + "/" + source + "/"
+ filename)
class url_debian_ports_pool(url_debian_pool):
def __call__(self, source, filename, arch):
if arch == 'all':
return url_debian_pool.__call__(self, source, filename, arch)
return self.base + "pool-" + arch + "/main/" + source[0] + "/" + source + "/" + filename
return (self.base + "pool-" + arch + "/main/" + source[0] + "/"
+ source + "/" + filename)
class url_debian_security_pool(url_debian_pool):
def __call__(self, source, filename, arch):
return (self.base + "pool/updates/main/" + source[0] + "/" + source
+ "/" + filename)
class Main(object):
dir = None
def __init__(self, url, url_config=None, arch=None, featureset=None, flavour=None):
def __init__(self, arch=None, featureset=None, flavour=None):
self.log = sys.stdout.write
self.url = self.url_config = url
if url_config is not None:
self.url_config = url_config
self.override_arch = arch
self.override_featureset = featureset
self.override_flavour = flavour
......@@ -63,9 +70,16 @@ class Main(object):
self.version = changelog.version.linux_version
self.version_source = changelog.version.complete
local_config = ConfigCoreDump(fp=file("debian/config.defines.dump"))
if changelog.distribution.endswith('-security'):
self.urls = [url_base_security]
else:
self.urls = [url_base, url_base_ports,
url_base_incoming, url_base_ports_incoming]
self.config = ConfigCoreDump(fp=open("debian/config.defines.dump",
"rb"))
self.version_abi = local_config['version', ]['abiname']
self.version_abi = self.config['version', ]['abiname']
def __call__(self):
self.dir = tempfile.mkdtemp(prefix='abiupdate')
......@@ -74,7 +88,7 @@ class Main(object):
try:
config = self.get_config()
except urllib2.HTTPError as e:
except HTTPError as e:
self.log("Failed to retrieve %s: %s\n" % (e.filename, e))
sys.exit(1)
......@@ -94,38 +108,51 @@ class Main(object):
return base_out
def get_abi(self, arch, prefix):
filename = "linux-headers-%s-%s_%s_%s.deb" % (self.version_abi, prefix, self.version_source, arch)
f = self.retrieve_package(self.url, filename, arch)
try:
version_abi = (self.config[('version',)]['abiname_base'] + '-'
+ self.config['abi', arch]['abiname'])
except KeyError:
version_abi = self.version_abi
filename = ("linux-headers-%s-%s_%s_%s.deb" %
(version_abi, prefix, self.version_source, arch))
f = self.retrieve_package(filename, arch)
d = self.extract_package(f, "linux-headers-%s_%s" % (prefix, arch))
f1 = d + "/usr/src/linux-headers-%s-%s/Module.symvers" % (self.version_abi, prefix)
f1 = d + ("/usr/src/linux-headers-%s-%s/Module.symvers" %
(version_abi, prefix))
s = Symbols(open(f1))
shutil.rmtree(d)
return s
return version_abi, s
def get_config(self):
filename = "linux-support-%s_%s_all.deb" % (self.version_abi, self.version_source)
f = self.retrieve_package(self.url_config, filename, 'all')
d = self.extract_package(f, "linux-support")
c = d + "/usr/src/linux-support-" + self.version_abi + "/config.defines.dump"
config = ConfigCoreDump(fp=file(c))
shutil.rmtree(d)
return config
def retrieve_package(self, url, filename, arch):
u = url(self.source, filename, arch)
filename_out = self.dir + "/" + filename
f_in = urllib2.urlopen(u)
f_out = file(filename_out, 'w')
while 1:
r = f_in.read()
if not r:
break
f_out.write(r)
return filename_out
def save_abi(self, symbols, arch, featureset, flavour):
dir = "debian/abi/%s" % self.version_abi
# XXX We used to fetch the previous version of linux-support here,
# but until we authenticate downloads we should not do that as
# pickle.load allows running arbitrary code.
return self.config
def retrieve_package(self, filename, arch):
for i, url in enumerate(self.urls):
u = url(self.source, filename, arch)
filename_out = self.dir + "/" + filename
try:
f_in = urlopen(u)
except HTTPError:
if i == len(self.urls) - 1:
# No more URLs to try
raise
else:
continue
f_out = open(filename_out, 'wb')
while 1:
r = f_in.read()
if not r:
break
f_out.write(r)
return filename_out
def save_abi(self, version_abi, symbols, arch, featureset, flavour):
dir = "debian/abi/%s" % version_abi
if not os.path.exists(dir):
os.makedirs(dir)
out = "%s/%s_%s_%s" % (dir, arch, featureset, flavour)
......@@ -153,36 +180,38 @@ class Main(object):
self.update_flavour(config, arch, featureset, flavour)
def update_flavour(self, config, arch, featureset, flavour):
config_base = config.merge('base', arch, featureset, flavour)
if not config_base.get('modules', True):
return
self.log("Updating ABI for arch %s, featureset %s, flavour %s: " % (arch, featureset, flavour))
self.log("Updating ABI for arch %s, featureset %s, flavour %s: " %
(arch, featureset, flavour))
try:
if featureset == 'none':
localversion = flavour
else:
localversion = featureset + '-' + flavour
abi = self.get_abi(arch, localversion)
self.save_abi(abi, arch, featureset, flavour)
version_abi, abi = self.get_abi(arch, localversion)
self.save_abi(version_abi, abi, arch, featureset, flavour)
self.log("Ok.\n")
except urllib2.HTTPError, e:
except HTTPError as e:
self.log("Failed to retrieve %s: %s\n" % (e.filename, e))
except StandardError, e:
except Exception:
self.log("FAILED!\n")
import traceback
traceback.print_exc(None, sys.stdout)
if __name__ == '__main__':
options = optparse.OptionParser()
options.add_option("-i", "--incoming", action="store_true", dest="incoming")
options.add_option("--incoming-config", action="store_true", dest="incoming_config")
options.add_option("--ports", action="store_true", dest="ports")
options.add_option("-u", "--url-base", dest="url_base", default=default_url_base)
options.add_option("--url-base-incoming", dest="url_base_incoming", default=default_url_base_incoming)
options.add_option("--url-base-ports", dest="url_base_ports", default=default_url_base_ports)
options.add_option("-u", "--url-base", dest="url_base",
default=default_url_base)