Skip to content

build from source: fix "make install" and add "make uninstall"#556

Merged
pstorz merged 10 commits intomasterfrom
dev/pstorz/master/fix-make-install
Jul 15, 2020
Merged

build from source: fix "make install" and add "make uninstall"#556
pstorz merged 10 commits intomasterfrom
dev/pstorz/master/fix-make-install

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Jul 15, 2020

When building bareos from source, "make install" still had some problems which are solved now.
Also, "make uninstall" was added which removes the files that are listed in the cmake install "manifest" file.

pstorz added 9 commits July 10, 2020 12:03
The "make install" target created by cmake was not completely working.
Also, "make uninstall" was not available.

This patch fixes the problems with the "make install" target and added
the "make uninstall" target by reading the installed files from the
cmake manifest file and deleting them.

The code for the uninstall target was taken from:
https://gist.github.com/royvandam/3033428
The default database driver is now got from the configured
database options. To set the placeholder there, the
default_db_backend cmake variable needs to be set during build via

  -Ddefault_db_backend="XXX_REPLACE_WITH_DATABASE_DRIVER_XXX"
Copy link
Contributor

@franku franku left a comment

Choose a reason for hiding this comment

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

You may want to remove commented line.

@franku
Copy link
Contributor

franku commented Jul 15, 2020

make install rises Bareos to a higher level of developer awareness.
Good work!

Co-authored-by: Frank Ueberschar <frank.ueberschar@bareos.com>
@pstorz pstorz merged commit 170117a into master Jul 15, 2020
@pstorz pstorz deleted the dev/pstorz/master/fix-make-install branch July 15, 2020 10:55
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