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

make clean leave drlm-api binary in place #130

Closed
didacog opened this issue Dec 5, 2019 · 7 comments
Closed

make clean leave drlm-api binary in place #130

didacog opened this issue Dec 5, 2019 · 7 comments
Assignees
Labels
Milestone

Comments

@didacog
Copy link
Member

didacog commented Dec 5, 2019

Disaster Recovery Linux Manager (DRLM) Issue Template

Quick response time is not guaranteed with free support, if you are using DRLM in a production environment and enterprise grade level support services are required, please see: http://www.brainupdaters.net/en/drlm-services.

Please fill in the following items before submitting a new issue:

Issue details:
  • Issue type: Bug
  • Impact: Low
  • How often it happens : Always
  • Brief description of the issue:
    After creation of drlm package in any OS distro the drlm-api binary is not cleaned up upon make clean execution.
  • Work-around, if any:
    rm -f usr/sbin/drlm-api
    This removal must be added to the clean section of Makefile and maybe also the resulting rpm/deb package should also be removed or moved outside the local git repo to complete clean it.
DRLM Server information:
  • DRLM version (/usr/sbin/drlm -V): from 2.3.0
@didacog didacog added the bug label Dec 5, 2019
@didacog didacog added this to the DRLM 2.3.2 milestone Dec 5, 2019
@proura
Copy link
Member

proura commented Mar 5, 2020

Hi @didacog ,

the binary "drlm-api" is by default in the repo, but when make rpm/deb is execute is builded again and it makes it apper in changes not staged for commit.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   usr/sbin/drlm-api

If we put in make clean will appear as deleted.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	deleted:    ../usr/sbin/drlm-api

Maybe the solution will be delete "drlm-api" binary from the repo and then also add to make clean.

@didacog
Copy link
Member Author

didacog commented Mar 9, 2020

Hi @proura,

Yes, as we are building it, will be better to remove from it from the repo and clean it up with make clean.

@proura proura closed this as completed Apr 6, 2020
@peyoz
Copy link
Contributor

peyoz commented Apr 20, 2020

This probably caused a regression, I uploaded a fix on PR #142

@peyoz
Copy link
Contributor

peyoz commented May 5, 2020

This caused a major regression, as now you absolutely need go installed to compile drlm-api and create the deb/rpm package.
I spotted it as I needed to build a new drlm server from hotfix 2.3.2.
Solution to this is trivial, as we can:

  • Provide the binary, but remove the compile from make rpm/deb target
  • Remove the binary from the branch, but then we need to upgrade requirements with go (which is not readily available from package manager for most of the supported platform)

Thoughts?

@didacog
Copy link
Member Author

didacog commented May 6, 2020

Hi @peyoz,

Well ..., IMHO this is a build requirement, not a package dependency. The build is completely documented for each supported distro.

I don't see any issue on that, as we provide the source and how to build the packages.

https://github.com/brainupdaters/drlm-docs/blob/master/docs/source/Install.rst#get-drlm
https://github.com/brainupdaters/drlm-docs/blob/master/docs/source/Install.rst#get-drlm-1
https://github.com/brainupdaters/drlm-docs/blob/master/docs/source/Install.rst#get-drlm-2
https://github.com/brainupdaters/drlm-docs/blob/master/docs/source/Install.rst#get-drlm-3
https://github.com/brainupdaters/drlm-docs/blob/master/docs/source/Install.rst#get-drlm-4
https://github.com/brainupdaters/drlm-docs/blob/master/docs/source/Install.rst#get-drlm-5

We provide built and tested packages with subscription or support plans, and as the package is already built, do not require any build dependency (golang).

Regards,
Didac

@peyoz
Copy link
Contributor

peyoz commented May 6, 2020

Hi @didacog ,
that's my fault, I was working on rhel without epel (which I'm not allowed to enable), and I probably missed the error on golang installation from yum.
Sorry about that,
Cheers

@didacog
Copy link
Member Author

didacog commented May 6, 2020

No problem!! ;)

proura added a commit that referenced this issue Dec 30, 2020
Fixed wget package dependency (issue #127)
Fixed make clean leave drlm-api binary in place (issue #130)
Fixed message errors during drlm version upgrade (issue #131, #132)
Fixed NFS_OPTS variable is not honored (issue #138)
RedHat/CenOS 8 support
Ubuntu 20.04 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants