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

Permission of files changed #114

Open
jacob-carlborg opened this issue Oct 27, 2016 · 2 comments
Open

Permission of files changed #114

jacob-carlborg opened this issue Oct 27, 2016 · 2 comments

Comments

@jacob-carlborg
Copy link
Contributor

jacob-carlborg commented Oct 27, 2016

I'm not entirely sure if this is an issue with Pkgr or the buildpack. The issue I'm having is that I build an RPM with Pkgr from a Rails application. When I install the RPM I can see that the installed files don't have the same permissions as the original files.

I've done some debugging, like running fpm with the --debug-workspace flag, which keeps the workspace after the packaging is complete. I can see that the files have the wrong permission in the workspace. I've also tried to run fpm manually to package a simple directory with a file. That will not change the permission of the file. So it looks like it's not fpm that changes the permissions.

Is it Pkgr that changes the permissions? If that's the case, is that intentional?

Most files end up with the -rwxr-xr-t permission instead of -rw-r--r--. It adds executable permission and sets the sticky bit.

@crohr
Copy link
Owner

crohr commented Oct 27, 2016

Do you have an example of a file that gets incorrect permissions? For instance, does it apply to your Procfile file? Which distribution are you using?

@jacob-carlborg
Copy link
Contributor Author

It applies to all files. For example, the readme file I have in the root directory of the project. I'm using CentOS 6. This is from the debug output, the Pkgr::Config instance:

dependencies=[
  "postgresql94-libs = 9.4.8-1PGDG.rhel6",
  "libxml2 = 2.7.6-21.el6_8.1",
  "openssl >= 1.0.1e-42.el6_7.2
    readline >= 6.0-4.el6 libxslt >= 1.1.26-2.el6_3.1
    postgresql94-libs = 9.4.8-1PGDG.rhel6
    libxml2 = 2.7.6-21.el6_8.1"
],
crons=["lvnetc/cron/foo"],
verbose=false,
debug=true,
buildpacks_cache_dir="/root/.pkgr/buildpacks",
architecture="x86_64",
category="none",
iteration="20161027083811",
build_dependencies=[],
disable_default_dependencies=true,
auto=false,
clean=true,
edge=true,
env=[],
verify=true,
data_dir="/usr/local/rvm/gems/ruby-2.2.1/gems/pkgr-1.5.1/data",
disable_cli=true,
maintainer="Foo",
vendor="Foo",
license="Foo",
user="foo",
runner="sysv-lsb-3.1",
force_os="centos-6",
version="1.4.6",
description="foo",
before_precompile="/tmp/before_compile.sh20161027-5111-ui1zf1",
after_precompile="/tmp/after_compile.sh20161027-5111-am73ho",
before_install="/tmp/before_install.sh20161027-5111-qqdsfe",
after_install="/tmp/after_install.rb20161027-5111-ei327n",
name="foo"

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

2 participants