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

Attempts to change permissions on bin directory #1863

Open
hackerb9 opened this issue Feb 12, 2024 · 0 comments
Open

Attempts to change permissions on bin directory #1863

hackerb9 opened this issue Feb 12, 2024 · 0 comments

Comments

@hackerb9
Copy link

The target install_main in the Makefile currently runs install -d /usr/local/bin as its first step. However, at some sites that will fail even though the directory exists and is writable. For example:

$ ls -ld /usr/local/bin
drwxrwsr-x 2 root staff 4096 Feb 12 11:01 /usr/local/bin
$ make install
install: cannot change permissions of ‘/usr/local/bin’: Operation not permitted

A simple solution is to only attempt to create the bin directory if it is missing:

-install_main:
-   # Create directories
+ $(DESTDIR)$(BINDIR):
        install -d $(DESTDIR)$(BINDIR)
+
+install_main:  $(DESTDIR)$(BINDIR)
+ # Create directories
        install -d $(DESTDIR)$(DATADIR)/carla/resources

P.S. I like your clean Makefile style build system. The make features target is a nice touch.

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