From patchwork Tue Nov 12 08:21:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Stancek X-Patchwork-Id: 13871848 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 4FE5420B813 for ; Tue, 12 Nov 2024 08:21:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731399712; cv=none; b=YyKm2TyISg7203vsTYLtBVRK7Jol92Ra7WgIKpqFUMqwEn7UYaaWhjTIZUoBPGo2Wb8KkbHv796+4XHwtZNRU/QoBTNLzuPJcaaj3LHHIYXgxgXpzkeqJCDkKimkaWr5pOmMD+yQQm5iEjArOeK2cqQdkFItvopee1uepuaymBI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731399712; c=relaxed/simple; bh=E2JnKx+5iCgJILO+r22UoLU1siqCaV3PfeuXSkuonLQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=Oibptq7tTDNhOCxJbVRmuSobvotWRuu80hRV2zlAJrBC8Y2r9MlVE/xeRSpBNlfwfyUO0pVBK7wUBkJHKn5ypUUNFGQvS6F/bdU97522fYCwySrJTfnSQ1C4bVXRRqFHhullyGvVAb1b03Z/Fq4xQXGXUdhx0jNCLi0jCU/yCFQ= 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=UXsWOG38; arc=none smtp.client-ip=170.10.129.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="UXsWOG38" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731399709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kzi9gdJPeVpG71SW03k//T9gQOGNKFRiWfLnFWSTCbM=; b=UXsWOG38ZvJlvxPuhvcqE9XlefI2naN8S4NdpJKvQsBT7wLC5kayXW3STiazoVBY0AYg5t lRD/0anPQ3YAPLgqc1hUQrfw1KJO2oW+/4EmIkuDCzGXceyzWgnudovjSjzRd/EXwC/fvL vn0PGTMiGyFv2u7qmQXpoRULuVhjDNI= Received: from mx-prod-mc-03.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-157-NL_IQbuNNMGixk4i6X3dHg-1; Tue, 12 Nov 2024 03:21:47 -0500 X-MC-Unique: NL_IQbuNNMGixk4i6X3dHg-1 X-Mimecast-MFC-AGG-ID: NL_IQbuNNMGixk4i6X3dHg Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5462B1955F42; Tue, 12 Nov 2024 08:21:46 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.45.224.51]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 138F430000DF; Tue, 12 Nov 2024 08:21:42 +0000 (UTC) From: Jan Stancek To: donald.hunter@gmail.com, kuba@kernel.org Cc: pabeni@redhat.com, davem@davemloft.net, edumazet@google.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jstancek@redhat.com Subject: [PATCH v2 0/2] tools: ynl: two patches to ease building with rpmbuild Date: Tue, 12 Nov 2024 09:21:31 +0100 Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 I'm looking to build and package ynl for Fedora and Centos Stream users. Default rpmbuild has couple hardening options enabled by default [1][2], which currently prevent ynl from building. This series contains 2 small patches to address it. [1] https://fedoraproject.org/wiki/Changes/Harden_All_Packages [2] https://fedoraproject.org/wiki/Changes/PythonSafePath Changes in v2: - rebased on top of https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/ Jan Stancek (2): tools: ynl: add script dir to sys.path tools: ynl: extend CFLAGS to keep options from environment tools/net/ynl/cli.py | 3 +++ tools/net/ynl/ethtool.py | 2 ++ tools/net/ynl/generated/Makefile | 2 +- tools/net/ynl/lib/Makefile | 2 +- tools/net/ynl/samples/Makefile | 2 +- tools/net/ynl/ynl-gen-c.py | 3 +++ 6 files changed, 11 insertions(+), 3 deletions(-)