Skip to content

Make linux packaging easier#12055

Merged
trivialfis merged 6 commits into
dmlc:masterfrom
bkmgit:patch-1
Mar 9, 2026
Merged

Make linux packaging easier#12055
trivialfis merged 6 commits into
dmlc:masterfrom
bkmgit:patch-1

Conversation

@bkmgit

@bkmgit bkmgit commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

- Enable use of system dmlc
- Add soname to shared library
@trivialfis

Copy link
Copy Markdown
Member

I understand that distributions frown upon submodules, but the coupling between XGBoost and dmlc core is tie at the moment. We bump dmlc to fix issues there. Are you quite sure using a system one is desirable?

@bkmgit

bkmgit commented Mar 2, 2026

Copy link
Copy Markdown
Contributor Author

Yes, this is ok. Both can be upgraded at the same time.

@trivialfis

Copy link
Copy Markdown
Member

ref dmlc/dmlc-core#720

I will wait for @hcho3 with the dmlc PR.

Comment thread CMakeLists.txt
add_library(xgboost STATIC)
else()
add_library(xgboost SHARED)
set_target_properties(xgboost PROPERTIES

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread CMakeLists.txt Outdated
xgboost_target_link_libraries(${target})
xgboost_target_defs(${target})
endforeach()
if(NOT BUILD_WTIH_DMLC_SYSTEM)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed, what's changed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DMLC does not need to be built and installed if it is already on the system and the system version is used.

Comment thread CMakeLists.txt Outdated
@trivialfis

Copy link
Copy Markdown
Member

The GHA test is being throttled by GH?

@trivialfis
trivialfis merged commit 2bdcf68 into dmlc:master Mar 9, 2026
78 checks passed
@bkmgit
bkmgit deleted the patch-1 branch March 9, 2026 14:08
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.

3 participants