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

Debian package build is non-straight forward #355

Open
adriangibanelbtactic opened this issue Jan 12, 2023 · 1 comment
Open

Debian package build is non-straight forward #355

adriangibanelbtactic opened this issue Jan 12, 2023 · 1 comment

Comments

@adriangibanelbtactic
Copy link

1 ) In order to build a Debian package you need to install first its dependencies.
I understand that I cannot install an specific 'npm pkg' package from Debian repos because it's nowhere to be found.

2 ) However I find concerning not having an standard way of installing Debian source packages which are needed.

3 ) In a regular Debian package you can use apt build-dep packagename for doing so.
If you are working on your own package you can use apt build-dep path/to/package/source/directory although I don't seem to find that usage documented anywhere.

In order for apt build-dep to work on your package source directory the package needs to have the Debian package files (debian/ directory) that describe which are the actual source Debian packages.

That's not the case if you clone this repo.

4 ) You need to ensure that the debian dependencies files are built.
However there is not an Makefiletarget that eases that task.

This is where I manually add to Makefile file a custom target so that I can more-or-less automate this task:

deb_dependencies: $(DEB_DEPS)

.

  1. Feedback is appreciated.

As the project does not have a proper README on how this repo is used for building a Debian package there might be an alternative way of achieving what I'm looking for.

Else I don't mind to submit a pull request with that deb_dependencies addition to the Makefile.

Thank you!

My current usage

apt install build-essential m4 npm
npm install -g pkg

cd /root
git clone https://github.com/ONLYOFFICE/document-server-package.git
# Workaround for installing dependencies - BEGIN
cd /root/document-server-package

cat << EOF >> Makefile

deb_dependencies: \$(DEB_DEPS)

EOF

make deb_dependencies
cd /root/document-server-package/deb/build
apt build-dep ./
# Workaround for installing dependencies - END

cd /root/document-server-package
make deb
@adriangibanelbtactic
Copy link
Author

I still find the same problem many months later.

I will open a pull request that adds deb_dependencies to the Makefile so that we can move forward with this.

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

No branches or pull requests

1 participant