Coder Social home page Coder Social logo

fpm's People

Contributors

anthezium avatar asenchi avatar barn avatar brutasse avatar chrisdotm avatar cpennington avatar doismellburning avatar dpeters avatar ebastien avatar fidothe avatar hatt avatar igalic avatar jaybuff avatar jneen avatar jordansissel avatar mblair avatar miked63017 avatar ohookins avatar oker1 avatar pjjw avatar r4um avatar rajatvig avatar scalp42 avatar specialunderwear avatar stepanstipl avatar tabletcorry avatar timsutton avatar tmm1 avatar vstone avatar zllak avatar

Watchers

 avatar

fpm's Issues

RPM: do not set file ownership if both --rpm-use-file-permissions and --rpm-user / --rpm-group are set

Currently, when you create a RPM using --rpm-use-file-permissions, --rpm-user and --rpm-group, the spec file that is built correctly contains a %defattr with the specified user and/or group; but, all the files contain also a %attr directive specifying not only the permissions, but also the ownership of the file, setting the ownership to that of the build system.

For example, consider you have a file like this:

-rw-r--r--  1 vagrant vagrant  2616 Feb 14 17:28 test.rb

that is packaged with the following fpm command:

fpm ... --rpm-use-file-permissions --rpm-user test --rpm-group test

This results in a spec file like this:

...
%defattr(-, test, test, -)
...
%attr(644, vagrant, vagrant) test.rb
...

thus overwriting the specified default. It would be more useful, instead, if the following output is produced:

...
%defattr(-, test, test, -)
...
%attr(644, -, -) test.rb
...

This would allow to actually mix the two/three options, as the installed file will keep the original permissions, while using the custom user/group specified at wrapping time.

NOTE: The issue can be solved by modifying FPM::Package::RPM#rpm_file_entry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.