Commit Graph

209 Commits

Author SHA1 Message Date
Ben Hutchings 06c36b3662 debian/control: Move many build dependencies to Build-Depends-Arch field 2017-09-30 14:09:54 +01:00
Ben Hutchings 9747655f89 Make the pickled config (config.defines.dump) reproducible 2017-01-07 18:25:56 +00:00
Ben Hutchings 3cfb537922 debian_linux.config: Drop import fallback for Python 2 compatibility 2017-01-07 18:06:06 +00:00
Ben Hutchings 48f370b3c2 debian_linux.gencontrol: Add support for arch-indep per-featureset packages 2016-12-01 19:49:59 +00:00
Ben Hutchings 619cd907a8 debian/lib/python/debian_linux/debian.py: Handle packages with only short descriptions 2016-07-14 11:41:47 +01:00
Ben Hutchings fb5d796272 Move merge_packages function from debian/bin/gencontrol.py to gencontrol module
linux-signed will use this function in future.
2016-06-08 23:24:07 +01:00
Ben Hutchings 581d83dbf0 debian_linux.utils._read_rfc822: Parse and ignore comments 2016-05-14 19:54:34 +01:00
Ben Hutchings d25555f798 debian_linux.debian: Add urgency attribute to Changelog.Entry objects 2016-05-06 21:33:06 +01:00
Ben Hutchings 7b9f22feef debian_linux.gencontrol: Allow variable substitutions in control.source.in
linux-signed may need this feature.
2016-04-04 10:41:48 +01:00
Ben Hutchings db948006fc debian.py: Really implement stable order of fields not in the predefined order 2016-01-08 12:15:30 +00:00
Ben Hutchings dc3b21cc1a debian.py: Implement stable order of fields in debian/tests/control
Move the field ordering control from the Package class to a new
superclass of Package and TestsControl.
2016-01-08 12:08:28 +00:00
Ben Hutchings 3d3a4891f7 debian/lib/python: Add support for package relation restrictions 2015-11-10 13:34:39 +00:00
Ben Hutchings f87229e26d debian/lib/python: Never merge package relations with a different version operator
This doesn't currently make any difference, but it's obviously wrong
to ignore the operator.
2015-11-10 13:34:00 +00:00
Ben Hutchings 5c869ad70b debian_linux.{debian,utils}: Support templates for debian/tests/control 2015-10-31 22:04:13 +00:00
Ben Hutchings 9c8d371306 debian_linux.utils: Support templates for RFC822 files other than debian/control 2015-10-31 22:04:13 +00:00
Ben Hutchings 0b7b6d7a62 debian/control: Make field ordering consistent again
This regressed when switching to Python 3 and not consistently
replacing use of iter*() methods.
2015-10-31 22:04:13 +00:00
Ben Hutchings 3d1b880497 debian/bin/kconfig.py: Adjust for compatibility with Python 3
Use open() instead of file().
Use dict.items() instead of .iteritems().
Use collections.OrderedDict.items() instead of .iteritems().
2015-08-30 21:43:02 +01:00
Ben Hutchings 6b977589fb debian/bin,debian/control,debian/lib/python: Use Python 3 2015-08-29 21:48:39 +01:00
Ben Hutchings d0824f1862 Add security update versions to regex and distribution/version sanity checks
Currently we don't allow versions like 3.16.7-ckt9-3~deb8u1~bpo7+1 in
*-backports, but we should!  Add the security suffix as an option
before the backports suffix.

We also don't check that an upload to *-security or *-lts includes the
expected suffix and nothing else.  Add a check for that.

svn path=/dists/trunk/linux/; revision=22539
2015-04-27 19:44:59 +00:00
Ben Hutchings e16e503620 Fix regex for the bpo version suffix
The Debian release is now identified by only the major version so
there need not be 2 digits directly after ~bpo.  Eventually the
major version will grow to 2 digits itself, so allow 1 or more
digits after the ~bpo.

svn path=/dists/trunk/linux/; revision=22538
2015-04-27 19:33:39 +00:00
Ben Hutchings ae85b67cf6 Add integer type to config schema
svn path=/dists/trunk/linux/; revision=22182
2014-12-10 16:37:07 +00:00
Ben Hutchings 86a13b0457 Add support for -ckt stable updates
svn path=/dists/sid/linux/; revision=22057
2014-11-08 15:41:20 +00:00
Ben Hutchings 6ceeb0fb7b Revert "Make version in package name independant of internal abi"
Unfortunately it is not sufficient to provide virtual packages
that exactly match the ABI name.  For example, 'reportbug kernel'
doesn't find the virtual package, and neither do dpkg commands
such as 'dpkg -l linux-image-$(uname -r)'.

svn path=/dists/sid/linux/; revision=22034
2014-11-04 04:47:19 +00:00
Bastian Blank cb080a3167 Make version in package name independant of internal abi
* debian/bin/gencontrol.py: Export internal ABI.
* debian/lib/python/debian_linux/debian.py: Export three-part version.
* debian/rules.real
  - Provide more variables.
  - Make udeb generation easier.
  - Use internal ABI for files.
* debian/templates/control.*: Provide name with internal ABI.
* debian/templates/image.plain.*: Use internal ABI.

svn path=/dists/sid/linux/; revision=22017
2014-11-01 19:20:16 +00:00
Bastian Blank f23e810882 debian/lib/python/debian_linux/gencontrol.py:
Allow numbers in templates.

svn path=/dists/sid/linux/; revision=22007
2014-10-31 15:05:54 +00:00
Bastian Blank b142d22431 debian/lib/python/debian_linux: More Python 3 support.
svn path=/dists/trunk/linux/; revision=20954
2014-01-02 22:18:35 +00:00
Bastian Blank fb642c8e06 debian/lib/python/debian_linux/patches.py: Remove unneeded imports.
svn path=/dists/trunk/linux/; revision=20953
2014-01-02 21:49:16 +00:00
Bastian Blank 1d8ffb3ae4 debian/lib/python/debian_linux/patches.py: Use subprocess.
svn path=/dists/trunk/linux/; revision=20952
2014-01-02 21:47:26 +00:00
Bastian Blank 69f20e1d9e debian/lib/python/debian_linux/patches.py: Use with to guard open files.
svn path=/dists/trunk/linux/; revision=20951
2014-01-02 21:38:26 +00:00
Bastian Blank 1d7360d6a8 debian/lib/python/debian_linux/patches.py:
Remove support for compressed patches.

svn path=/dists/trunk/linux/; revision=20950
2014-01-02 21:35:54 +00:00
Bastian Blank 929894f687 * debian/bin/genorig.py, debian/lib/python/debian_linux/abi.py,
debian/lib/python/debian_linux/debian.py,
  debian/lib/python/debian_linux/patches.py,
  - Support Python 3.
  - Use six if necessary.
* debian/templates/control.main.in, debian/templates/control.source.in:
  Depend on python-six.

svn path=/dists/trunk/linux/; revision=20946
2014-01-01 22:14:11 +00:00
Ben Hutchings 08a7d92f2b [arm,x86,s390,s390x] Introduce linux-compiler meta-packages to allow use of foreign linux-headers packages with a native multilib compiler
svn path=/dists/trunk/linux/; revision=20799
2013-11-21 01:15:15 +00:00
Bastian Blank f1f381b411 debian/lib/python/debian_linux/kconfig.py:
Replace entry classes with version from kconfigeditor2.

svn path=/dists/trunk/linux/; revision=20669
2013-09-23 21:33:24 +00:00
Bastian Blank 3c66fca7f0 debian/lib/python/debian_linux/config.py: Also support execution with python3.
svn path=/dists/trunk/linux/; revision=20668
2013-09-23 21:23:01 +00:00
Bastian Blank 5c43b9711a debian/lib/python/debian_linux/config.py: Minimal python3 support.
svn path=/dists/trunk/linux/; revision=20667
2013-09-23 21:18:33 +00:00
Ben Hutchings 03fab0311a Don't require '.in' suffix on templates
The PO files processed by debconf-updatepo, which in our case are
templates, must have names ending in .po rather than .in.  So look for
un-suffixed template files after looking for files with the .in
suffix.

svn path=/dists/trunk/linux/; revision=20504
2013-08-17 11:18:34 +00:00
Ben Hutchings 005ac51bc5 Merge changes from wheezy-backports to reduce the need for source changes
- Add a suite/version sanity-check for backports
- Disable building of udebs whenever package version indicates backports

svn path=/dists/trunk/linux/; revision=20483
2013-08-11 21:30:14 +00:00
Ben Hutchings 4207b3a025 Change experimental Debian revision format to 1~exp<n>
This is a more commonly used format, and frees up some space in
utsname::version.

svn path=/dists/trunk/linux/; revision=20181
2013-06-02 20:54:29 +00:00
Ben Hutchings 66aee7e881 Add __str__ method to debian_linux.debian.Version
Python 2.x does not use the __unicode__ method to implement str() or
string formatting with %s.  Add a __str__ method as a wrapper.

svn path=/dists/trunk/linux/; revision=20180
2013-06-02 20:51:26 +00:00
Ben Hutchings a0f3681215 Fix linux_upstream_full compute for version with modifier
From: Julien Danjou <julien@danjou.info>

If you try to use genorig on a version with a modifier (like ~rc1), it will
fail because self.linux_upstream_full will be equal to the short version
rather than version-modifier.

svn path=/dists/trunk/linux/; revision=19308
2012-08-04 13:44:08 +00:00
Bastian Blank 5a0ab9759f Support build-arch and build-indep make targets
* debian/rules, debian/rules.real:
  Support build-indep, rename build to build-arch.
* debian/bin/gencontrol.py, debian/lib/python/debian_linux/gencontrol.py:
  Add build-arch and build-indep.
* debian/changelog: Update.

svn path=/dists/sid/linux/; revision=19148
2012-06-14 14:39:30 +00:00
Bastian Blank 7a338d9536 debian/bin/gencontrol.py:
Move some package specific stuff from lib/python/debian_linux/gencontrol.py.

svn path=/dists/sid/linux/; revision=19145
2012-06-13 21:54:55 +00:00
Ben Hutchings d5fa98077e linux-source: Add single patch for each featureset
svn path=/dists/sid/linux/; revision=19114
2012-06-10 02:14:51 +00:00
Ben Hutchings f4932e3768 Replace patch series lists with one main series and one per featureset
Change patch.apply.in to apply a single patch series without
filtering.  Move series/base to series-all and series/base-extra to
series-rt and series-none (the latter empty).

Remove the redundant status file support from patch.apply.in, and
convert it into a static file rather than a template.

Remove the redundant patch series list support from patches.py.

svn path=/dists/sid/linux/; revision=19071
2012-06-03 22:03:33 +00:00
Ben Hutchings aac2076873 Remove support for per-architecture patches
We have not used per-architecture patches for many years.  This is a
step toward using a more standard patch system.

svn path=/dists/sid/linux/; revision=19070
2012-06-03 20:54:42 +00:00
Ben Hutchings 7b1b408f6d Fix version parsing in debian/bin/genorig.py when using a DFSG number
svn path=/dists/sid/linux-2.6/; revision=19055
2012-06-02 20:17:17 +00:00
Ben Hutchings da95316282 Fix parsing of WHENCE file listing multiple binary files in a group
svn path=/dists/sid/linux-2.6/; revision=18934
2012-04-16 05:00:41 +00:00
Bastian Blank 3ea10b8113 debiann/lib/python/debian_linux/config.py:
Correctly handle base featureset sections.

svn path=/dists/sid/linux-2.6/; revision=18822
2012-03-12 21:30:31 +00:00
Bastian Blank 13b1935dd1 debian/lib/python/debian_linux/config.py:
Use format 0 pickles. They look more like text for patch.

svn path=/dists/trunk/linux-2.6/; revision=18567
2012-01-18 15:42:00 +00:00
Bastian Blank 6a75386bae debian/lib/python/debian_linux/config.py: Fix debugging output.
svn path=/dists/trunk/linux-2.6/; revision=18501
2012-01-11 20:55:10 +00:00