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

Bad call to dh_link in main Makefile #1512

Closed
marillat opened this issue Jun 17, 2020 · 2 comments
Closed

Bad call to dh_link in main Makefile #1512

marillat opened this issue Jun 17, 2020 · 2 comments

Comments

@marillat
Copy link

dh_link must be called without DESTDIR otherwise the link is created in teh wrong path

debian/gpac/src/gpac-1.0.1/debian/tmp/usr/share/pixmaps/gpac.png

Otherwise this call to dh_link is really necessary ?

--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,7 @@ ifeq ($(IS_DEB_MAKE),undefined)
 	ln -sf $(DESTDIR)$(prefix)/share/gpac/res/gpac.png $(DESTDIR)/usr/share/pixmaps/gpac.png
 	$(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/share/gpac.desktop "$(DESTDIR)/usr/share/applications/"
 else
-	dh_link $(DESTDIR)$(prefix)/share/gpac/res/gpac.png $(DESTDIR)$(prefix)/share/pixmaps/gpac.png
+	dh_link $(prefix)/share/gpac/res/gpac.png $(prefix)/share/pixmaps/gpac.png
 	$(INSTALL) $(INSTFLAGS) -m 644 $(SRC_PATH)/share/gpac.desktop "$(DESTDIR)$(prefix)/share/applications/"
 endif
@aureliendavid
Copy link
Member

Otherwise this call to dh_link is really necessary ?

It's not and I don't know why I did that in the first place, we can just install this file like the others.

We still have an issue with the gpac.application file though where the icon path is hardcoded. It will work ok with the debian package but fail to find the icon if there was a prefix.

It should be generated by the configure to take the prefix into account like we do with gpac.pc

But I'll do that tomorrow..

@aureliendavid
Copy link
Member

We still have an issue with the gpac.application file though where the icon path is hardcoded. It will work ok with the debian package but fail to find the icon if there was a prefix.

It should be generated by the configure to take the prefix into account like we do with gpac.pc

did that, hopefully the make install makes more sense now

i'm (optimistically) closing this issue but feel free to reopen if there are further issues

thanks

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

2 participants