debian: add extra package build routines#515
Conversation
| ======================= | ||
|
|
||
| There is a checklist in the kernel-team.git repository; see | ||
| <https://salsa.debian.org/kernel-team/kernel-team/-/blob/master/docs/kernel-upload-checklist.md>. |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| for patchdir in debian/patches*; do | ||
| sed '/^#/d; /^[[:space:]]*$/d; /^X /d; s/^+ //; s,^,'"$patchdir"'/,' "$patchdir"/series | ||
| done | sort -u > $TMPDIR/used | ||
| find debian/patches* ! -path '*/series' -type f -name "*.diff" -o -name "*.patch" -printf "%p\n" | sort > $TMPDIR/avail |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
|
|
||
| # Using OrderedDict instead of dict makes the pickled config reproducible | ||
| class ConfigCore(collections.OrderedDict): | ||
| def get_merge(self, section, arch, featureset, flavour, key, default=None): |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| compiler_gnutype: Optional[str] = None | ||
| compiler_gnutype_compat: Optional[str] = None | ||
| config: list[Path] = dataclasses.field(default_factory=list) | ||
| config_default: list[Path] = dataclasses.field(default_factory=list, repr=False) |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| for patchdir in debian/patches*; do | ||
| sed '/^#/d; /^[[:space:]]*$/d; /^X /d; s/^+ //; s,^,'"$patchdir"'/,' "$patchdir"/series | ||
| done | sort -u > $TMPDIR/used | ||
| find debian/patches* ! -path '*/series' -type f -name "*.diff" -o -name "*.patch" -printf "%p\n" | sort > $TMPDIR/avail |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
|
|
||
| # Using OrderedDict instead of dict makes the pickled config reproducible | ||
| class ConfigCore(collections.OrderedDict): | ||
| def get_merge(self, section, arch, featureset, flavour, key, default=None): |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| compiler_gnutype: Optional[str] = None | ||
| compiler_gnutype_compat: Optional[str] = None | ||
| config: list[Path] = dataclasses.field(default_factory=list) | ||
| config_default: list[Path] = dataclasses.field(default_factory=list, repr=False) |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
| major_ver = re.sub(r'^(\d+)\..*', r'\1', cur_ver) | ||
| while cur_ver != new_ver: | ||
| next_ver = next_update(cur_ver) | ||
| print(' https://www.kernel.org/pub/linux/kernel/v{}.x/ChangeLog-{}' |
There was a problem hiding this comment.
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
And remove linux-image*, linux-libc-dev*, and linux-support* to remove unneeded packages (some of those needed are generated with our build_kernel.sh script).
Footnotes
Build these packages with:
apt build-dep .
dpkg-buildpackage -uc -us ↩