From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9579EA04C9; Tue, 11 Aug 2020 13:27:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4E061C07D; Tue, 11 Aug 2020 13:27:33 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id D3A791C044 for ; Tue, 11 Aug 2020 13:27:32 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 85BBB5C016C; Tue, 11 Aug 2020 07:27:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 11 Aug 2020 07:27:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=0+wzf3D4bJQ3I j/4VqnN0SfnUn817/OelzJJSA2qBXI=; b=Ek2VGqzibmz8FEzBCgAA+IOF/6fvH mn90NBhOtcwBanbfOIIa1DVDyLiqkMXhX9Ti3lnVxspXOyzMEDIzjd//Gz+XU+T/ J2xzeEuA0x1bfRJTUr5bTzPYNZx0pRyIeElr7IwifuEn8GmgecIx9cy+swsvzirS 2bbpnJHGiJArP8+66SEdqzwfJ3nwcDiX0qqGIqkRpfFJnxqtupaJKmS4keJ7DAWs YoQrPVjZYXKMskrvvp98oJAKaitRpeEV2w3/LeWB5/a6XAfSMnwd/CL50wpwepH0 VzBLWUWEoi3r/MlqkUG+n5/aO0GCmLjX6S1lcNh6lr3eXSmk9ssHYp0VQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=0+wzf3D4bJQ3Ij/4VqnN0SfnUn817/OelzJJSA2qBXI=; b=cjlVYJvG Hm3Te2uQqTHNqKHLo5cLiQeOkO5u2E/B77kb6MaFuiO16Ph7KnWMjiOrML02JHY9 7zOiytOUAPSqJonbhUjkbIAoeS6vYeDBltf16tS7AJM/VP5BEOb3+TX5Y73n6r96 qgWsR87Ljusoq1fKjastjpFWkAF5SfsyEnDyKGhcrr04VJKjrCV6BiAjelppx9DV Z1FSefdxN9MtuDqq7b/iFbzyv1pbOfvmWvnFfen1cNYSrAL4SMcfeNHIihww7dOi CydQGuMX5qcTvSuyM4SfK3UoLxH5b85cLQ0oAR+l2pr0YCp4BKYIGdkSfiem1gXR brSO15qg0BJ08g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrledtgdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtveehfe fhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeelfedriedrudegledr uddugeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (114.149.6.93.rev.sfr.net [93.6.149.114]) by mail.messagingengine.com (Postfix) with ESMTPA id 7F7A63280063; Tue, 11 Aug 2020 07:27:31 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, mdr@ashroe.eu, nhorman@tuxdriver.com, kevin.laatz@intel.com, bruce.richardson@intel.com Date: Tue, 11 Aug 2020 13:27:20 +0200 Message-Id: <20200811112720.2103052-2-thomas@monjalon.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200811112720.2103052-1-thomas@monjalon.net> References: <20200810151531.1297831-1-thomas@monjalon.net> <20200811112720.2103052-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 2/2] devtools: fix ABI update in map files X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The script was using the full ABI version, including the minor number, to version the symbols in the map files. It is fixed to use only the major number for symbol versioning. Signed-off-by: Thomas Monjalon --- devtools/update_version_map_abi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/devtools/update_version_map_abi.py b/devtools/update_version_map_abi.py index 80a61641ed..10c3bc8098 100755 --- a/devtools/update_version_map_abi.py +++ b/devtools/update_version_map_abi.py @@ -105,9 +105,9 @@ def __parse_map_file(f_in): return has_stable, stable_lines, experimental_lines, internal_lines -def __generate_stable_abi(f_out, abi_version, lines): +def __generate_stable_abi(f_out, abi_major, lines): # print ABI version header - print("DPDK_{} {{".format(abi_version), file=f_out) + print("DPDK_{} {{".format(abi_major), file=f_out) # print global section if it exists if lines: @@ -186,6 +186,7 @@ def __main(): file=sys.stderr) arg_parser.print_help() sys.exit(1) + abi_major = parsed.abi_version.split('.')[0] with open(parsed.map_file) as f_in: has_stable, stable_lines, experimental_lines, internal_lines = __parse_map_file(f_in) @@ -193,7 +194,7 @@ def __main(): with open(parsed.map_file, 'w') as f_out: need_newline = has_stable and experimental_lines if has_stable: - __generate_stable_abi(f_out, parsed.abi_version, stable_lines) + __generate_stable_abi(f_out, abi_major, stable_lines) if need_newline: # separate sections with a newline print(file=f_out) -- 2.27.0