From patchwork Sun Sep 4 23:43:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Sigurdsson X-Patchwork-Id: 9312925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3872600CA for ; Sun, 4 Sep 2016 23:53:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A4D4284B4 for ; Sun, 4 Sep 2016 23:53:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BBAD2882C; Sun, 4 Sep 2016 23:53:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32385284B4 for ; Sun, 4 Sep 2016 23:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754128AbcIDXxs (ORCPT ); Sun, 4 Sep 2016 19:53:48 -0400 Received: from dd34104.kasserver.com ([85.13.151.79]:59344 "EHLO dd34104.kasserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754115AbcIDXxs (ORCPT ); Sun, 4 Sep 2016 19:53:48 -0400 X-Greylist: delayed 559 seconds by postgrey-1.27 at vger.kernel.org; Sun, 04 Sep 2016 19:53:14 EDT Received: from localhost.localdomain (HSI-KBW-46-223-1-93.hsi.kabel-badenwuerttemberg.de [46.223.1.93]) by dd34104.kasserver.com (Postfix) with ESMTPSA id C5A146C802A1; Mon, 5 Sep 2016 01:43:52 +0200 (CEST) From: Timo Sigurdsson To: mmarek@suse.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Timo Sigurdsson Subject: [PATCH] builddeb: Update a few outdated and hardcoded strings Date: Mon, 5 Sep 2016 01:43:37 +0200 Message-Id: <1473032617-21914-1-git-send-email-public_timo.s@silentcreek.de> X-Mailer: git-send-email 2.1.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The builddeb script has some hardcoded references to linux version 2.6 which is ancient. Use a variable instead in order to keep in sync with new releases and avoid the need to manually update this. In addition, change the copyright notice to include the year 2016. Signed-off-by: Timo Sigurdsson --- scripts/package/builddeb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 8ea9fd2..d85120c 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -84,6 +84,7 @@ set_debarch() { # Some variables and settings used throughout the script version=$KERNELRELEASE +majorversion=$VERSION.$PATCHLEVEL revision=$(cat .version) if [ -n "$KDEB_PKGVERSION" ]; then packageversion=$KDEB_PKGVERSION @@ -265,7 +266,7 @@ This is a packacked upstream version of the Linux kernel. The sources may be found at most Linux ftp sites, including: ftp://ftp.kernel.org/pub/linux/kernel -Copyright: 1991 - 2015 Linus Torvalds and others. +Copyright: 1991 - 2016 Linus Torvalds and others. The git repository for mainline kernel development is at: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git @@ -296,7 +297,7 @@ if [ "$ARCH" = "um" ]; then cat <> debian/control Package: $packagename -Provides: linux-image, linux-image-2.6, linux-modules-$version +Provides: linux-image, linux-image-$majorversion, linux-modules-$version Architecture: any Description: User Mode Linux kernel, version $version User-mode Linux is a port of the Linux kernel to its own system call @@ -313,7 +314,7 @@ else cat <> debian/control Package: $packagename -Provides: linux-image, linux-image-2.6, linux-modules-$version +Provides: linux-image, linux-image-$majorversion, linux-modules-$version Suggests: $fwpackagename Architecture: any Description: Linux kernel, version $version @@ -346,7 +347,7 @@ rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles" cat <> debian/control Package: $kernel_headers_packagename -Provides: linux-headers, linux-headers-2.6 +Provides: linux-headers, linux-headers-$majorversion Architecture: any Description: Linux kernel headers for $KERNELRELEASE on \${kernel:debarch} This package provides kernel header files for $KERNELRELEASE on \${kernel:debarch}