Skip to content

allow local install#17

Open
mahairod wants to merge 2 commits intosailfishos:masterfrom
mahairod:master
Open

allow local install#17
mahairod wants to merge 2 commits intosailfishos:masterfrom
mahairod:master

Conversation

@mahairod
Copy link
Copy Markdown

@mahairod mahairod commented Dec 8, 2024

This change allows local installation of a lib (into $DESTDIR)

@monich
Copy link
Copy Markdown
Member

monich commented Dec 19, 2024

No, I don't think it's going to work because according to the RPM packaging guide DESTDIR is supposed to be a build-specific destination directory, it's not supposed to have any effect on the actual contents of the rpm (and doesn't even have to exist on the system where rpm is being installed)

@mahairod
Copy link
Copy Markdown
Author

mahairod commented Dec 19, 2024

RPM packaging guide

I don't even mind RPM here. I just launch local make install. So suggested change allows local installation only.
Ah. Ok, I see it. Probably should shange to smth like TARGETDIR or whatever.
But how do you suppose to make custom install then? I can't see good solution right now.

The need for this appeared becasue I don't want (or can't) install into the root, but msg tool requires pkgconfig else I have to manually change all paths in the makefile. That's annoying really.

@spiiroin
Copy link
Copy Markdown

But how do you suppose to make custom install then?

Presumably by using empty DESTDIR -> targets local fs root, so something like: make DESTDIR= LIBDIR=/custom/path INCDIR=/somewhere/else build install

At quick glance: LIBDIR bits are already in there and used from rpm spec file, but possibility to override include file target dir would need to be added

@mahairod
Copy link
Copy Markdown
Author

Ok, so now one could call smth like
make LOCDST=$HOME/.local install-dev

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.

3 participants