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

remove -o root and -g root options to install in Makefile #18

Open
pravi opened this issue Jan 13, 2023 · 1 comment
Open

remove -o root and -g root options to install in Makefile #18

pravi opened this issue Jan 13, 2023 · 1 comment

Comments

@pravi
Copy link

pravi commented Jan 13, 2023

I'm making a debian package suitable to be uploaded to debian (and mobian) but get this error when building as a normal user,

install -D -o root -g root -m 644 system-wake-up.service ${DESTDIR}/lib/systemd/system/system-wake-up.service
install: cannot change ownership of 'debian/birdie-alarm-mobile/lib/systemd/system/system-wake-up.service': Operation not permitted

if install is called with sudo (as most projects recommend sudo make install) the owner and group is set to root and debhelper will set this ownership when building the debian package.

I have removed this by a patch https://salsa.debian.org/debian/birdie-alarm-mobile/-/blob/master/debian/patches/remove-root-chown.patch but would be nice if it is included in this repo.

@pravi
Copy link
Author

pravi commented Jan 13, 2023

$ sudo install -D -m 644 system-wake-up.service ${DESTDIR}/lib/systemd/system/system-wake-up.service
$ ls -l ${DESTDIR}/lib/systemd/system/system-wake-up.service
-rw-r--r-- 1 root root 75 Jan 13 15:39 debian/birdie-alarm-mobile/lib/systemd/system/system-wake-up.service

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