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

Install libs as non-executable files #3127

Merged
merged 1 commit into from
Nov 11, 2015

Conversation

lukeyeager
Copy link
Contributor

According to the Debian policy manual:

Shared libraries should not be installed executable, since the dynamic linker does not require this and trying to execute a shared library usually results in a core dump."

https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-runtime

According to the Debian policy manual, "Shared libraries should not be
installed executable, since the dynamic linker does not require this and
trying to execute a shared library usually results in a core dump."

https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-runtime
@lukeyeager
Copy link
Contributor Author

The Travis build failed with:

Cloning into 'BVLC/caffe'...
fatal: unable to access 'https://github.com/BVLC/caffe.git/': Couldn't resolve host 'github.com'

Can someone restart it please?

@bhack
Copy link
Contributor

bhack commented Sep 28, 2015

/cc @cdluminate

@lukeyeager
Copy link
Contributor Author

It looks like @cdluminate is using the CMake build for debian packaging in #2601.
http://anonscm.debian.org/cgit/debian-science/packages/caffe.git/tree/debian/rules

CMake already does this correctly.

@cdluminate
Copy link
Contributor

@lukeyeager Yes, using CMake for Debian packaging.

By my side, the mode of shared lib doesn't disturb since

  • CMake handles shared lib mode.
  • dh_fixperms will fix it if anything wrong according to Policy.
    (the permission checker in debian packaging suite)

FYI: Generally .so permission is Access: (0644/-rw-r--r--).

shelhamer added a commit that referenced this pull request Nov 11, 2015
[build] Install libs as non-executable files
@shelhamer shelhamer merged commit 19028e7 into BVLC:master Nov 11, 2015
@shelhamer
Copy link
Member

Thanks for the Debian conformance @lukeyeager.

@lukeyeager lukeyeager deleted the install-lib-permissions branch November 11, 2015 17:33
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.

4 participants