Commit Graph

655 Commits

Author SHA1 Message Date
Ben Hutchings 8ed7991db8 linux-image: Make a newly installed kernel the default if the package was previously removed
Currently the postinst script distinguishes installation vs upgrade by
checking whether its second argument is empty.  However, it will only
be empty if the package was *never* installed before, or was purged.
If the package has been installed, then removed, and is now being
installed again, it's seen as an upgrade.

Unfortunately dpkg only tells the preinst script whether or not this
is an upgrade.  So create a flag file there, consume it in postinst
and remove it in postrm.
2016-06-05 02:11:45 +01:00
Ben Hutchings 586edb84cd linux-image: postrm: Update default symlinks before running hook scripts
Currently the default symlinks may be broken when we run hook scripts,
causing removal to fail if a hook (e.g. lilo) relies on them.
2016-06-05 02:11:44 +01:00
Ben Hutchings e4657e0ec4 linux-image: Rewrite maintainer scripts in shell
Use the new linux-update-symlinks command for symlink updates.
Drop support for minimal_swap, no_symlinks, use_hard_links and *_hook
parameters in /etc/kernel-img.conf.

Thanks to Aurelien Jarno and Santiago Vila for pointing out the
ischroot command and that it's in an essential package (i.e. doesn't
add a dependency).
2016-06-05 02:11:44 +01:00
Ben Hutchings 2d3c4236d2 linux-image: postrm: Remove unnecessary initialisation of debconf
We don't use debconf here any more.
2016-05-29 19:48:43 +01:00
Ben Hutchings e55913c12b linux-image: Remove various unused variables in maintainer scripts 2016-05-29 19:46:39 +01:00
Ben Hutchings 9f4d29bb04 linux-image: prerm: Ignore version of running kernel inside a container or chroot 2016-05-27 11:54:02 +01:00
Ben Hutchings 49b5fbab50 linux-image: prerm: Allow removal of running kernel if we can't ask debconf questions
Closes: #825423
2016-05-27 11:54:02 +01:00
Ben Hutchings b621344bd9 linux-image: Add workaround for bug #817083 in debconf 2016-05-27 11:54:02 +01:00
Ben Hutchings 30ae9b2024 linux-image: Stop setting $STEM in environment for maintainer script hooks
This seems to have been a transitional feature for the switch
from kernel-image to linux-image.  mkvmlinuz still uses it but
no hook scripts appear to depend on it.
2016-05-27 11:54:02 +01:00
Ben Hutchings e8cbc41731 [mips{,64}r6{,el}] Add kernel flavours for the Malta platform; build linux-libc-dev and tools packages
Closes: #825024; thanks to YunQiang Su
2016-05-23 23:03:41 +01:00
Ben Hutchings a126067de6 debian/control: Remove alternate build-dependency on binutils-dev
This was used for backports from to wheezy, but we don't backport from
stretch/sid to wheezy.
2016-05-15 03:11:42 +01:00
Ben Hutchings 59b5fabac6 debian/control,debian/rules,debian/rules.d: Support the 'nodoc' build profile 2016-05-15 03:11:42 +01:00
Ben Hutchings 43640872d9 debian/control,debian/rules: Support a 'pkg.linux.notools' build profile
...which does not build tools packages
2016-05-14 20:46:46 +01:00
Ben Hutchings f865a890fd debian/control: Exclude tools from 'stage1' build profile 2016-05-14 20:06:34 +01:00
Ben Hutchings 203fac302f debian/templates/control.source.in: Comment all the build-dependencies
Also re-order them slightly.
2016-05-14 19:56:13 +01:00
Ben Hutchings 5917a891aa debian/templates/control.source.in: Put each build-dependency on its own line
The list is getting hard to read as we add build profiles.  It's also easier
to merge and cherry-pick changes when each dependency is on a separate line.
2016-05-14 19:37:22 +01:00
Ben Hutchings c92155bd7f bug control: Update list of related firmware packages 2016-05-02 21:25:40 +02:00
Ben Hutchings 2ed6f0e2f9 bug script: Add new taint flags including TAINT_UNSIGNED_MODULE 2016-04-14 03:47:00 +01:00
Ben Hutchings c955e35c32 modules: Enable MODULE_SIG and MODULE_SIG_SHA256
...but not MODULE_SIG_ALL as signatures will be packaged separately
2016-04-03 13:12:23 +01:00
Ben Hutchings a5f7516c0c Merge linux-tools source package into linux (Closes: #550379, #573483, #816500)
* Drop redundant gitignore.patch from linux-tools
* Rename linux-tools' debian/templates/control.main.in to
  debian/templates/control.tools.in
* Combine changelogs, putting all entries for each upstream release
  cycle in chronological order
* Combine rules and gencontrol.py code
2016-03-21 01:32:16 +00:00
Ben Hutchings 4fe6a76379 Release linux-tools (4.4.6-1).
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIVAwUAVu737ue/yOyVhhEJAQqyag/+IUmrQLhgB05KxMZ8oRwmEF/PJPF0hKCu
 ZfvPiEO2nS1vQO5ulKp3dkfWWAJbC4BCDO7HAiYjM8J/JUbfb7VrvqgU2LyaEjev
 jpzUhDHD61jO1nTS0s3NKBInOSzn+jCcDSCEFlvzTQzsV5XbLI7cazIW+L29fR+X
 sIJpUzIqMi3UgcbpTx3CfTbodvQ/K7AI9lPN0NIDak7DWtMOUBrUBgTotDY0s+68
 yTD7oiUVdS4nL/BVwKXurSDIPXOnTio5JwmDwqEW1LRXq3Y6IgZKFsGSqmZva19q
 ZZ+T8885/ek116hUhVHF6Cxj24y6LErd+uxJO+J/K52r5Vgw/VwD+pbZBoiSrsmM
 IlqAwDRahNzWO5QU5IWUfPjcsVeye+RKv6EuYoqf43MiltRTdOys154ZesShd95H
 PzjaYQw//DzcnQbxW0wE/GGbTEQKGUgHpw5+2ZRaZ3GE9eExRqKO1ZJhL8Miu8ys
 Y3GJOHBASYq3pXtzpYPlJTAVluKsHScB9VtpXSFcrbwR2Mhqv1k4ZBwFUMh0Dgtb
 BEseEAw/VZQoTsbwR4ZwVwXvw+rFMe21FoVmn0ZM8WsrCqNeN7PQ/QG5CsD+R75N
 tJOMwWfgt5U/JP0ChtOAnywiRKAo52SdBDmyxh4c2qsdFcR6Un2B70Q5A1gY8B2+
 +of7tBDFL8Q=
 =sw9T
 -----END PGP SIGNATURE-----

Merge tag 'debian/4.4.6-1'

Move debian/build/tools/power/cpupower/Makefile to
debian/rules.d/tools/power/cpupower/Makefile where it belongs now.
2016-03-20 20:07:25 +00:00
Ben Hutchings 466e99f397 linux-perf: Override lintian errors for perf-read-vdso{,x}32 in 64-bit packages 2016-03-20 19:08:47 +00:00
Ben Hutchings cf4f32ccd1 debian/control: Update policy version to 3.9.7; no changes required 2016-03-20 16:06:01 +00:00
Mattia Dongili ef781efeb9 W: linux-tools source: debhelper-but-no-misc-depends libcpupower-dev 2016-03-20 16:04:38 +00:00
Mattia Dongili 96559e9c4c Build tools from power/cpupower
They'll eventually replace cpufrequtils and libcpufreq{0,-dev} so the
structure of the packages is the same.
2016-03-20 15:49:21 +00:00
Ben Hutchings 1d94112d6c debian/control: Build-Depend on dh-python, as dh_python2 warns we should 2016-02-23 01:03:43 +00:00
Ben Hutchings 0bd35d792a hyperv-daemons: Add init scripts
Also add a helper executable that implements the check for Hyper-V
(like ConditionVirtualization=microsoft in the systemd units).

(cherry picked from commit 50747480c882dae7d3c8f7b4d0df5cf3276c4ee5)
2016-02-21 15:03:47 +00:00
Ben Hutchings cdcc46b5c4 Release linux (4.4.2-1).
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIVAwUAVsT0Jue/yOyVhhEJAQo96w/+IZBasj9Vf3KovHNaOXaW1rZL6GRVNzpB
 OSNqINfAEtvOR8RuwAcA/zgHy7NNDS9CkDQgjGdJKIhdXXem7mG7Oo3iEwb5osL7
 HhUPmeTmXqsa5C6GWzNtERrtX6N8XtBV3inR8iSS46XOm+RHq5UnffqZB35DqUbq
 G0h5hiZSXXIXbn0MYJWSPAekAmTXdcevGUoe8bIBD+wH/X4oPINmQLkH6PL5iK7B
 KHbf7dJ+JnmbsKJdBpfZvPoa6B1a9FL3HLKkOQjmYF0YjIzZe14JHnvjZNULBmj9
 eqmwpfPxAmR5XQgUBu1TPx37FB/nJdMUjZQNz01k0Ybv3l6lKocc7YwX3kViitqe
 CiWqbq7LPwN1QNGI6Sf7UB/1XjWJPzWsYoZ0AjDH3ihIPrxmYCdjJstFXr0W3qEG
 4e3pJv8gqHxP5SSmE5PQQcS8uiisHmADHZc7C02mxWGDLpqb3gmtgrGqQRFjkk55
 tpn8jz2fGGt5VQkhpSBE8wWG4fHRFwiLaAsCVv9jE36pLNq5M9U9VnilCPeoTkti
 JcDfPYBjma6RVADIU6tkNnjxJcHFXAqEb5Jn0Wq89GGaS1egAlch4K/XYS+OnIH9
 m2Fg4P+TdMePDYxh40tNTIwwHcHLffNfe9K+Ien/DmffuQ87Jk4hfKPW/ZXDO3jO
 qdrmLXK2BEg=
 =syys
 -----END PGP SIGNATURE-----

Merge tag 'debian/4.4.2-1'

Drop rt featureset changes.

Drop patches that are already in 4.5-rc4.

Keep the ABI version at 'trunk'.
2016-02-17 22:45:34 +00:00
Ben Hutchings b0ddcef1a9 udeb: Fix issues with wildcards that caused FTBFS on armhf, thanks to Karsten Merker
Karsten did a test-build on armhf and found failures due to missing modules
and directories.

* The wireless drivers from staging need to be optional; this requires
  support for wildcards in optional-inclusion lines
* The check for a containing directory must only be done for non-optional
  inclusion lines

Bump the kernel-wedge version requirement and add the optional-include
suffixes.
2016-02-17 18:00:31 +00:00
Ben Hutchings 641aba8311 Compile with gcc-5 on all architectures 2016-02-15 18:48:03 +00:00
Ben Hutchings d1a2d68dab udeb: input-modules: Include HID drivers by default 2016-02-15 02:40:33 +00:00
Ben Hutchings 6c26fa513e Release linux (4.3.5-1).
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIVAwUAVrbUcee/yOyVhhEJAQqY7RAAvLy0Z5eKYP7/Re1jHCuYqGFwhgIig+uo
 yscoEqKlSWUwC7Tio5ar+oydqdvRyUOYB+ABXvpnQb+ImsPF5xNwYDLO5OIVGIuh
 yc7RgHROYzDMYSqO8ToDAJbhPfd/UVUp25gJQqdbmozXr9lMPL1zH3/d5FUQgrcz
 2AmCFDa6nvcCg6SxuT8IFl2lsDsPA7WI3AYUnFKVwxpwSGwZQmhH4G6SDBOTGd4n
 Zx8ySfHle+Jz4aIYyD6jAFV4RVCsucwswwD78PYDZlfqxr29IzdwOx4MJNuLzxGp
 A6/FVRg6V7b+/1E1BKS7wUAoN2F7JyXgrro7QsZEyq+ckQY/9CyfLopC0shx3+xv
 2nQLGLb3rFySKkYXFBPJdQacr0zGRtEa5QdRWRVYPCUvXc2ju5pv8DTINzb7aW+6
 tkec0Wks5LeDa+zVzbAJHpVgnE3PBSTJHpRWaqZv1C5avp92MmnphXxpjj5ifB2b
 /eu6PzF4zAwM0Sr8aBY2riELQXMbFmtAE60+weMUjYHiL4MHc/yDNHtpjiz3zgrQ
 qptf26uuHClC/FmMq+9jhTlbsXb9X30XWG94Dif0A46iAHAyRrO200DUlMYqx3KF
 tDtHKHsJ2rqso6WQhuLOgd37qTKlt93rA6Se4bbDASQKdQealbY3COsYS1eulyJI
 HXXB8qbopJI=
 =cqNy
 -----END PGP SIGNATURE-----

Merge tag 'debian/4.3.5-1'
2016-02-07 05:28:43 +00:00
Martin Michlmayr 8e44bb11ea Include Device Tree model in reportbug script
It would be nice to include the Device Tree model in the reportbug
output.  On DT based platforms, /proc/cpuinfo only includes quite
generic information.

Please note that the strange "echo ... $(cat ..)" construct is
intentional.  'cat /proc/device-tree/model' leads to a strange
character at the end because there's no newline and using echo
gets rid of it.
2016-02-06 21:15:38 +00:00
Ben Hutchings 3106c3977c linux-headers: Make postinst script less verbose (see: #734266) 2016-01-27 19:52:52 +00:00
Ben Hutchings 2b5391e7a4 linux-{headers,image}: Remove support for version-specific hooks
This was inherited/cargo-culted from kernel-package, undocumented, and
apparently useless.
2016-01-27 19:52:52 +00:00
Ben Hutchings b34af3d32d linux-image: Remove unnecessary debconf initialisations
Only the prerm and postrm scripts need it now.

Also remove the Pre-Depends relation to debconf.
2016-01-27 19:52:52 +00:00
Ben Hutchings daa4d23204 [mips*] linux-image: Remove debconf question for requirement of initramfs
This question was presented during the upgrade to jessie and there's
no need to retain it.
2016-01-27 19:52:52 +00:00
Ben Hutchings 65d6c09bbd Remove residual support for multiple image package types
We only really support the 'plain' type.  Remove all the conditions on
image type and remove 'plain' from all target and file names.
2016-01-27 19:52:52 +00:00
Ben Hutchings 87a5fb1450 Remove all support for monolithic kernel packages
The last such package (s390-tape variant) was removed in
3.6.8-1~experimental.1.
2016-01-27 19:52:48 +00:00
Ben Hutchings 78007e962c linux-image: Make user hook failure handling consistent across maintainer scripts
- Use system_failure_message() to generate the error message
- Exit using "die", not passing up the exit code (which will be 0 in case the
  process was terminated by signal!)
- Remove redundant path lookup since system() already does that
2016-01-27 00:29:27 +00:00
Ben Hutchings f71765e064 linux-image: Make failure of depmod fatal, rather than asking what to do
depmod has been stable for a very long time so there's no reason to
have a configuration variable and debconf question to handle failure.

While we're at it, fix the decoding of $? to handle the exec failure
case ($? == -1).
2016-01-27 00:19:31 +00:00
Ben Hutchings 6a920e6845 linux-perf: Leave -rc suffix out of version in package description 2016-01-19 00:24:30 +00:00
Ben Hutchings 37d4f9e568 Remove version from Depends: linux-base and Recommends: firmware-linux-free
These were unneeded after wheezy.
2015-11-12 20:39:19 +00:00
Ben Hutchings a828066aeb Remove obsolete versioned Breaks: at
This was unneeded after wheezy.
2015-11-12 20:37:37 +00:00
Yves-Alexis Perez e3d56724e4 split docs package to a different template
only include them in the control file if docs are enabled in the config
2015-11-11 12:31:56 +01:00
Yves-Alexis Perez c346a6be26 use source package name as source for binary ones
use source package name in templates so it's easier for derivatives like
src:linux-grsec to not conflict with binaries from src:linux.

Original patch by Ben Hutchings.
2015-11-10 18:27:41 +01:00
Ben Hutchings 900fda3c2b [s390*] Update linux-compiler metapackage to gcc-4.9 2015-11-10 13:50:39 +00:00
Ben Hutchings 16017121d0 debian/control: Add ':any' to Build-Depends on python3, to support cross-bootstrap 2015-11-10 13:44:44 +00:00
Ben Hutchings be6de683ed debian/control,debian/rules: Support a 'stage1' build profile (Closes: #695243)
This builds only linux-libc-dev, needed by native compilers.
2015-11-10 13:34:39 +00:00
Ben Hutchings 4af24f2fc0 debian/control: Move patchutils from Build-Depends to Build-Depends-Indep
We only use filterdiff when building linux-source-<version>.
2015-11-10 12:19:45 +00:00