VirtualBox

Changes between Version 1 and Version 2 of Ticket #18818, comment 2


Ignore:
Timestamp:
Aug 8, 2019 4:33:55 PM (5 years ago)
Author:
Frank Batschulat (Oracle)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18818, comment 2

    v1 v2  
    11{{{
    2 I've looked into the RPM packaging background on this issue a bit, for the
    3 record here are the details discussed in the proposed change, just in case
    4 we have to do it that way:
     2I've looked into the RPM packaging background on
     3this issue a bit, for the record here are the
     4details discussed in the proposed change,
     5just in case we have to do it that way:
    56
    67%files:
     
    1415{{{
    1516<snip>
    16 "The %files list indicates which files on the build system are to be packaged. The list consists of one file per line. If a directory is specified, by default all files and subdirectories will be packaged."
     17"The %files list indicates which files on the build
     18system are to be packaged. The list consists of
     19one file per line. If a directory is specified,
     20by default all files and subdirectories will be packaged."
    1721
    1822"%files         The list of files that will be installed in their final resting place in the context of the target system."
     
    5458<snip end>
    5559
    56 So as the touch in the build area (which is when the %install section is executed)
    57 is unlikely going to have the proper set of permissions that we want to
    58 have on the final install destination, we'd also need to add an %attr or
    59 %defattr% directive to the %files section to manage proper install
    60 permissions.
     60So as the touch in the build area (which is when the
     61%install section is executed) is unlikely going to
     62have the proper set of permissions that we want to
     63have on the final install destination, we'd also need
     64to add an %attr or %defattr% directive to the %files
     65section to manage proper install permissions.
    6166
    62 The %files section will pull into the binary RPM package from
    63 the build directory. So the %files section would need to make sure to use
    64 a permission directive for the empty log %file using%attr and %defattr
    65 when deploying the package on the destination:
     67The %files section will pull into the binary RPM package
     68from the build directory. So the %files section would
     69need to make sure to use a permission directive for the
     70empty log %file using%attr and %defattr when deploying
     71the package on the destination:
    6672}}}
    6773http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html#S3-RPM-INSIDE-FLIST-DEFATTR-DIRECTIVE

© 2023 Oracle
ContactPrivacy policyTerms of Use