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

fix make distcheck #19

Closed
Tracked by #74
garlick opened this issue May 24, 2016 · 2 comments
Closed
Tracked by #74

fix make distcheck #19

garlick opened this issue May 24, 2016 · 2 comments

Comments

@garlick
Copy link
Member

garlick commented May 24, 2016

I'm not sure how travis-ci is succeeding, but on my desktop, powerman's make distcheck is failing due to hardwired install paths:

make[3]: Entering directory '/home/garlick/proj/powerman/powerman-66cedb7/_build/sub/scripts'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/lib/systemd/system'
 /usr/bin/install -c ../../../scripts/powerman.service '/lib/systemd/system'
/usr/bin/install: cannot create regular file '/lib/systemd/system/powerman.service': Permission denied
Makefile:392: recipe for target 'install-systemdsystemunitSCRIPTS' failed
make[3]: *** [install-systemdsystemunitSCRIPTS] Error 1
make[3]: Leaving directory '/home/garlick/proj/powerman/powerman-66cedb7/_build/sub/scripts'
Makefile:482: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/garlick/proj/powerman/powerman-66cedb7/_build/sub/scripts'
Makefile:452: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/garlick/proj/powerman/powerman-66cedb7/_build/sub'
Makefile:658: recipe for target 'distcheck' failed
make: *** [distcheck] Error 1
@garlick
Copy link
Member Author

garlick commented Mar 8, 2017

Fails on RHEL 7.3 also:

$ make distcheck
[snip]
Making install in scripts
make[2]: Entering directory `/g/g0/garlick/powerman/powerman-66cedb7/_build/scripts'
make[3]: Entering directory `/g/g0/garlick/powerman/powerman-66cedb7/_build/scripts'
make[3]: Nothing to be done for `install-exec-am'.
 /usr/bin/mkdir -p '/usr/lib/systemd/system'
 /usr/bin/install -c ../../scripts/powerman.service '/usr/lib/systemd/system'
/usr/bin/install: cannot remove '/usr/lib/systemd/system/powerman.service': Read-only file system
make[3]: *** [install-systemdsystemunitSCRIPTS] Error 1
make[3]: Leaving directory `/g/g0/garlick/powerman/powerman-66cedb7/_build/scripts'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/g/g0/garlick/powerman/powerman-66cedb7/_build/scripts'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/g/g0/garlick/powerman/powerman-66cedb7/_build'
make: *** [distcheck] Error 1

@garlick
Copy link
Member Author

garlick commented Jan 23, 2024

Just tested on Ubuntu 22.04 LTS and it worked:

==============================================================
powerman-v2.3.27-30-gad3a31a archives ready for distribution: 
powerman-v2.3.27-30-gad3a31a.tar.gz
==============================================================

@garlick garlick closed this as completed Jan 23, 2024
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