From patchwork Fri Jul 26 09:00:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Ignacio Tornos Martinez X-Patchwork-Id: 13742525 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 521FA2582 for ; Fri, 26 Jul 2024 09:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721984447; cv=none; b=FgZQav0TKpVZJBRRps5UYoOPAvz1UqjSh05Q3nJ/1eXLqD+80VPY+mfoSwOLH5ETL9GUF/CA9sZzRNINaiq9CewpJGgV+xoxrMgStomp7uBdE7wOecJsrFwmrpxkrl4GorLa3UEOmWmLQHF3NcajsdOjYVr05WgKeoPYcYHfncU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721984447; c=relaxed/simple; bh=Q3ep/kqRKGVh6qNLDhbOIaY72ZPDO/vccwtW2nb/zNw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xs1VF8L/xaJqHR1NmL58mq8az69qDZmvBNf7r6tNcRM7GTmV0sacQXl+NsDW2s1N+OFEKEGxopsbrIaP8vaXbltJdv8WGMiVD8WtTVw1sgjADZiRd4SEiMoX2CTZnx4VTigI87i02Y47mQnE2Sx3GD6N4YPWYuA7ttBeHvXJaJ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=K7UR0zr0; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="K7UR0zr0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721984444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xLN319cy2ybo/eIqJgIWzJakYdZYuxDFmsQ44YyLNJM=; b=K7UR0zr0IqUn1gbFey5cc+bw+6V8RAY5GpA5HSKiEbEGZdiLsBD6N5IgjF8pigYCuHzevj tSqEwi5u01k2pGACGm7d9wUZdARIFarJAp/5o1Ve8dU4iJRxChe4R8QZm8yZty5Pj5/t+M gvAeN5Ydt6E9xytcHCyoO3htEFjy1bc= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-352-l2tfbY7qN6iEJIB6PJjxqw-1; Fri, 26 Jul 2024 05:00:42 -0400 X-MC-Unique: l2tfbY7qN6iEJIB6PJjxqw-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5C88D19560A2; Fri, 26 Jul 2024 09:00:40 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.105]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CD3BF1955F6B; Fri, 26 Jul 2024 09:00:36 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: masahiroy@kernel.org, nathan@kernel.org, nicolas@fjasle.eu, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jose Ignacio Tornos Martinez Subject: [PATCH] kbuild: rpm-pkg: ghost modules.weakdep file Date: Fri, 26 Jul 2024 11:00:26 +0200 Message-ID: <20240726090032.97793-1-jtornosm@redhat.com> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 In the same way as for other similar files, mark as ghost the new file generated by depmod for configured weak dependencies for modules, modules.weakdep, so that although it is not included in the package, claim the ownership on it. Signed-off-by: Jose Ignacio Tornos Martinez --- scripts/package/kernel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index 74355ff0e106..d558d39c01b6 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -74,7 +74,7 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEA echo "/lib/modules/%{KERNELRELEASE}" for x in alias alias.bin builtin.alias.bin builtin.bin dep dep.bin \ - devname softdep symbols symbols.bin; do + devname softdep weakdep symbols symbols.bin; do echo "%ghost /lib/modules/%{KERNELRELEASE}/modules.${x}" done