incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erin A Boyd (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-3291) ambari-server RPM claims ownership of /usr/sbin
Date Thu, 19 Sep 2013 19:19:51 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-3291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Erin A Boyd updated AMBARI-3291:
--------------------------------

          Component/s:     (was: agent)
          Description: 
**This also affects trunk**
The ambari-server.spec (generated from rpm-maven-plugin) claims ownership of /usr/sbin,

$ grep sbin target/rpm/ambari-server/SPECS/ambari-server.spec | grep attr
%attr(755,root,root) /usr/sbin

This is a problem because the filesystem RPM owns /usr/sbin.

According to rpm-maven-plugin documentation[0], this is because the only file under /usr/sbin
is ambari-server and

"directoryIncluded

If the value is true then the attribute string will be written for the directory if the sources
identify all of the files in the directory (that is, no other mapping contributed files to
the directory). This is the default behavior."

The "no other mapping contributed files to the directory" bit is important.

The solution is to add directoryInclude=false to the mapping.

[0] http://mojo.codehaus.org/rpm-maven-plugin/map-params.html


  was:
This may impact other versions, only branch-1.2 was changed.

The ambari-agent.spec (generated from rpm-maven-plugin) claims ownership of /usr/sbin,

$ grep sbin target/rpm/ambari-agent/SPECS/ambari-agent.spec | grep attr
%attr(755,root,root) /usr/sbin

This is a problem because the filesystem RPM owns /usr/sbin.

According to rpm-maven-plugin documentation[0], this is because the only file under /usr/sbin
is ambari-agent and

"directoryIncluded

If the value is true then the attribute string will be written for the directory if the sources
identify all of the files in the directory (that is, no other mapping contributed files to
the directory). This is the default behavior."

The "no other mapping contributed files to the directory" bit is important.

The solution is to add directoryInclude=false to the mapping.

[0] http://mojo.codehaus.org/rpm-maven-plugin/map-params.html


          Environment: 
Fedora 19 


  was:
Fedora 17 w/
maven-3.0.4-14.1.fc17.noarch
javac 1.7.0_09

    Affects Version/s:     (was: 1.2.2)
                       1.2.5
        Fix Version/s:     (was: 1.2.3)
                       1.2.5
    
> ambari-server RPM claims ownership of /usr/sbin
> -----------------------------------------------
>
>                 Key: AMBARI-3291
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3291
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.2.5
>         Environment: Fedora 19 
>            Reporter: Erin A Boyd
>            Assignee: Erin A Boyd
>             Fix For: 1.2.5
>
>
> **This also affects trunk**
> The ambari-server.spec (generated from rpm-maven-plugin) claims ownership of /usr/sbin,
> $ grep sbin target/rpm/ambari-server/SPECS/ambari-server.spec | grep attr
> %attr(755,root,root) /usr/sbin
> This is a problem because the filesystem RPM owns /usr/sbin.
> According to rpm-maven-plugin documentation[0], this is because the only file under /usr/sbin
is ambari-server and
> "directoryIncluded
> If the value is true then the attribute string will be written for the directory if the
sources identify all of the files in the directory (that is, no other mapping contributed
files to the directory). This is the default behavior."
> The "no other mapping contributed files to the directory" bit is important.
> The solution is to add directoryInclude=false to the mapping.
> [0] http://mojo.codehaus.org/rpm-maven-plugin/map-params.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message