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

Issue with Makefile? #70

Open
typoworx-de opened this issue Nov 20, 2023 · 0 comments
Open

Issue with Makefile? #70

typoworx-de opened this issue Nov 20, 2023 · 0 comments

Comments

@typoworx-de
Copy link

typoworx-de commented Nov 20, 2023

I'm tring to build a debian package using checkinstall. It fails with this error and I think there's a little bug in the install script:

========================= Installation results ===========================
Making install in .
make[1]: Entering directory '/build/network-manager-wireguard'
make[2]: Entering directory '/build/network-manager-wireguard'
 /usr/bin/mkdir -p '/usr/lib/NetworkManager'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c src/nm-wireguard-service auth-dialog/nm-wireguard-auth-dialog '/usr/lib/NetworkManager'
libtool: install: /usr/bin/install -c src/nm-wireguard-service /usr/lib/NetworkManager/nm-wireguard-service
libtool: install: /usr/bin/install -c auth-dialog/nm-wireguard-auth-dialog /usr/lib/NetworkManager/nm-wireguard-auth-dialog
 /usr/bin/mkdir -p '/usr/share/appdata'
 /usr/bin/install -c -m 644 appdata/network-manager-wireguard.metainfo.xml '/usr/share/appdata'
/usr/bin/install: cannot create regular file '/usr/share/appdata': File exists <----- NOTE THIS!
make[2]: *** [Makefile:1589: install-appdataDATA] Error 1
make[2]: Leaving directory '/build/network-manager-wireguard'
make[1]: *** [Makefile:2144: install-am] Error 2
make[1]: Leaving directory '/build/network-manager-wireguard'
make: *** [Makefile:1679: install-recursive] Error 1

****  Installation failed. Aborting package creation.

Shouldn't this line:
/usr/bin/install -c -m 644 appdata/network-manager-wireguard.metainfo.xml '/usr/share/appdata'

look like this to point to appdata as directory? It looks like install command tries to override appdata as file
/usr/bin/install -c -m 644 appdata/network-manager-wireguard.metainfo.xml '/usr/share/appdata/'

or shouldn't Makefile:install make shure the path exists?
mkdir -p /usr/share/appdata?

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