Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD/RPM: enable build rpm with optional debug function #221

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

changchengx
Copy link

Signed-off-by: Changcheng Liu jerrliu@nvidia.com

@changchengx
Copy link
Author

Waiting for openucx#7632

@changchengx changchengx changed the title BUILD/RPM: enable optional build rpm with debug function [WIP]BUILD/RPM: enable optional build rpm with debug function Nov 11, 2021
Signed-off-by: Changcheng Liu <jerrliu@nvidia.com>
@changchengx
Copy link
Author

changchengx commented Nov 11, 2021

  • Build debug version after this PR is merged
    Method 1:
$ git clone https://github.com/yosefe/ucx.git
$ git checkout origin/integration3 -b int3_debug
$ ./autogen.sh
$ ./contrib/configure-release
$ ./contrib/buildrpm.sh -s -t -b -d --nodeps

Method 2 (If there's src.rpm package e.g. ucx-1.9.0-1.el8.src.rpm)

$ rpmbuild --rebuild --define='debug 1' ucx-1.9.0-1.el8.src.rpm --without java
  • Build release version after this PR is merged
    Method 1:
$ git clone https://github.com/yosefe/ucx.git
$ git checkout origin/integration3 -b int3_release
$ ./autogen.sh
$ ./contrib/configure-release
$ ./contrib/buildrpm.sh -s -t -b --nodeps

Method 2 (If there's src.rpm package e.g. ucx-1.9.0-1.el8.src.rpm)

$ rpmbuild --rebuild ucx-1.9.0-1.el8.src.rpm --without java

@changchengx changchengx changed the title [WIP]BUILD/RPM: enable optional build rpm with debug function BUILD/RPM: enable build rpm with optional debug function Nov 11, 2021
@yosefe yosefe merged commit 4c6e17d into yosefe:integration3 Nov 11, 2021
@changchengx changchengx deleted the rpm_dbg_int3 branch November 12, 2021 00:48
@changchengx
Copy link
Author

You can also refer to below link for more info:
https://gist.github.com/changchengx/10987ea07ad5d6276cd5016338a97b18

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.

2 participants