|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (MOJO-1058) <filemode> is used for directories<filemode> is used for directories
---------------------------------- Key: MOJO-1058 URL: http://jira.codehaus.org/browse/MOJO-1058 Project: Mojo Issue Type: Bug Components: rpm Reporter: Jürgen Hermann A mapping like this: <mapping> <directory>/path/foo</directory> <username>root</username> <groupname>root</groupname> <filemode>644</filemode> <sources> <source>bar.txt</source> </sources> </mapping> leads to this in the generated .spec: %attr(644,root,root) /path/foo Problem here is that the "foo" directory gets the filemode too, as do any subdirectories, resulting in unbrowsable directory structures. The *workaround* for the root dir is to repeat the mapping w/o a source section and a filemode of 755 (which is tedious at best). A proper solution would be to use %attr(-,u,g) and set the permissions dynamically while copying into the target (build-stage) directory, which would also work for any subdirs. Also, there should be a <dirmode> in addition to <filemode>. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (MOJO-1058) <filemode> is used for directories[ http://jira.codehaus.org/browse/MOJO-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160935#action_160935 ] Brett Okken commented on MOJO-1058: ----------------------------------- Is this indirectly fixed by MOJO-931 (at least partially)? In the case you have given, I believe the .spec would have: %attr(644,root,root) /path/foo/bar.txt A <dirmode> could potentially work, however having an second mapping just for the directory to specify username, groupname, and filemode for the directory explicitly does not seem terribly onerous. > <filemode> is used for directories > ---------------------------------- > > Key: MOJO-1058 > URL: http://jira.codehaus.org/browse/MOJO-1058 > Project: Mojo > Issue Type: Bug > Components: rpm > Reporter: Jürgen Hermann > > A mapping like this: > <mapping> > <directory>/path/foo</directory> > <username>root</username> > <groupname>root</groupname> > <filemode>644</filemode> > <sources> > <source>bar.txt</source> > </sources> > </mapping> > leads to this in the generated .spec: > %attr(644,root,root) /path/foo > Problem here is that the "foo" directory gets the filemode too, as do any subdirectories, resulting in unbrowsable directory structures. > The *workaround* for the root dir is to repeat the mapping w/o a source section and a filemode of 755 (which is tedious at best). > A proper solution would be to use %attr(-,u,g) and set the permissions dynamically while copying into the target (build-stage) directory, which would also work for any subdirs. Also, there should be a <dirmode> in addition to <filemode>. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Closed: (MOJO-1058) <filemode> is used for directories[ http://jira.codehaus.org/browse/MOJO-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Okken closed MOJO-1058. ----------------------------- Resolution: Won't Fix I am closing this as there is a valid way to achieve the desired outcome. > <filemode> is used for directories > ---------------------------------- > > Key: MOJO-1058 > URL: http://jira.codehaus.org/browse/MOJO-1058 > Project: Mojo > Issue Type: Bug > Components: rpm > Reporter: Jürgen Hermann > > A mapping like this: > <mapping> > <directory>/path/foo</directory> > <username>root</username> > <groupname>root</groupname> > <filemode>644</filemode> > <sources> > <source>bar.txt</source> > </sources> > </mapping> > leads to this in the generated .spec: > %attr(644,root,root) /path/foo > Problem here is that the "foo" directory gets the filemode too, as do any subdirectories, resulting in unbrowsable directory structures. > The *workaround* for the root dir is to repeat the mapping w/o a source section and a filemode of 755 (which is tedious at best). > A proper solution would be to use %attr(-,u,g) and set the permissions dynamically while copying into the target (build-stage) directory, which would also work for any subdirs. Also, there should be a <dirmode> in addition to <filemode>. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Moved: (MRPM-8) <filemode> is used for directories[ http://jira.codehaus.org/browse/MRPM-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett Okken moved MOJO-1058 to MRPM-8: -------------------------------------- Component/s: (was: rpm) rpm Complexity: (was: Intermediate) Key: MRPM-8 (was: MOJO-1058) Project: Mojo RPM Plugin (was: Mojo) > <filemode> is used for directories > ---------------------------------- > > Key: MRPM-8 > URL: http://jira.codehaus.org/browse/MRPM-8 > Project: Mojo RPM Plugin > Issue Type: Bug > Components: rpm > Reporter: Jürgen Hermann > > A mapping like this: > <mapping> > <directory>/path/foo</directory> > <username>root</username> > <groupname>root</groupname> > <filemode>644</filemode> > <sources> > <source>bar.txt</source> > </sources> > </mapping> > leads to this in the generated .spec: > %attr(644,root,root) /path/foo > Problem here is that the "foo" directory gets the filemode too, as do any subdirectories, resulting in unbrowsable directory structures. > The *workaround* for the root dir is to repeat the mapping w/o a source section and a filemode of 755 (which is tedious at best). > A proper solution would be to use %attr(-,u,g) and set the permissions dynamically while copying into the target (build-stage) directory, which would also work for any subdirs. Also, there should be a <dirmode> in addition to <filemode>. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |