Skip to content

Remove PYTHON_THRIFT_0_14_1 to help building saiserverv2#12169

Merged
Gfrom2016 merged 1 commit intosonic-net:202205from
Gfrom2016:zitingguo/fix_saiserverv2
Oct 19, 2022
Merged

Remove PYTHON_THRIFT_0_14_1 to help building saiserverv2#12169
Gfrom2016 merged 1 commit intosonic-net:202205from
Gfrom2016:zitingguo/fix_saiserverv2

Conversation

@Gfrom2016
Copy link
Contributor

@Gfrom2016 Gfrom2016 commented Sep 23, 2022

Signed-off-by: zitingguo-ms [email protected]

Why I did it

PYTHON_THRIFT_0_14_1 couldn't be built on the pipeline which caused building docker-saiserverv2 to be failed.
cause the PYTHON_THRIFT_0_14_1 is not built as previous thrift_0.11 for python2.*
for thrift 0.11
https://github.com/sonic-net/sonic-buildimage/blob/master/src/thrift/Makefile#L5

THRIFT_VERSION = 0.11.0
THRIFT_VERSION_FULL = $(THRIFT_VERSION)-4

MAIN_TARGET = libthrift-$(THRIFT_VERSION)_$(THRIFT_VERSION_FULL)_$(CONFIGURED_ARCH).deb
DERIVED_TARGETS = libthrift-dev_$(THRIFT_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
		  python-thrift_$(THRIFT_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
		  thrift-compiler_$(THRIFT_VERSION_FULL)_$(CONFIGURED_ARCH).deb

For thrift 0.14
https://github.com/sonic-net/sonic-buildimage/blob/master/src/thrift_0_14_1/Makefile#L5

THRIFT_VERSION = 0.14.1

MAIN_TARGET = libthrift0_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb
DERIVED_TARGETS = libthrift-dev_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \
		  python3-thrift_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \
		  thrift-compiler_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb

when build this target, there will be an error

tar: target/debs/buster/python-thrift_0.14.1_amd64.deb: Cannot stat: No such file or directory

Cause no build target depends on PYTHON_THRIFT_0_14_1, remove this target from build

How I did it

Remove PYTHON_THRIFT_0_14_1 from rules/thrift_0_14_1.mk.

How to verify it

Run pipeline internally and docker-saiserverv2 is built successfully.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@richardyu-ms
Copy link
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@richardyu-ms
Copy link
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: zitingguo-ms <[email protected]>
@Gfrom2016 Gfrom2016 force-pushed the zitingguo/fix_saiserverv2 branch from 184a333 to 8d3a157 Compare October 10, 2022 09:42
@richardyu-ms
Copy link
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@richardyu-ms
Copy link
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Gfrom2016
Copy link
Contributor Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 12169 in repo sonic-net/sonic-buildimage

@Gfrom2016
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Gfrom2016
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Gfrom2016 Gfrom2016 merged commit 1c14e71 into sonic-net:202205 Oct 19, 2022
@Gfrom2016 Gfrom2016 deleted the zitingguo/fix_saiserverv2 branch November 21, 2022 03:15
richardyu-ms pushed a commit to richardyu-ms/sonic-buildimage that referenced this pull request Nov 21, 2022
Signed-off-by: zitingguo-ms <[email protected]>

Signed-off-by: zitingguo-ms <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants