I'll switch it in the trunk then, and see if anyone else notices any side-effects :)

C

On Dec 3, 2006, at 8:42 AM, Steve Sakoman wrote:

Dave,

That did the trick and didn't seem to introduce any negative side effects in the rest of the build.

Thanks!

Steve

On 12/2/06, Dave Hylands <dhylands@gmail.com> wrote:
Hi Steve,

> I've run into a problem with one package that needs to create a target
> directory with 777 permissions.  It does this successfully in the
> gumstix-buildroot/build_arm_nofpu/root directory.  However
> when rootfs.arm_nofpu.jffs2 is generated, the permissions on this directory
> are changed to 755.
>
> Anyone understand the fakeroot process enough to know why this happens?

It actually has nothing to do with fakeroot and everything to do with mkfs.jffs2

If you go into menuconfig (from gumstix-buildroot) under "Target
Options" is an option called "Make all files be owned by root". This
translates into a -q option being passed into mkfs.jffs2.

>From the mkfs.jffs2 docs:

-q, --squash
Squash permissions and owners, making all files be owned by root and
removing write permission for 'group' and 'other'.

-U, --squash-uids
Squash owners making all files be owned by root.

So, I think you want the -U option instead of the -q option. Since
menuconfig doesn't seem to have the option to adjust this, I think
you'll need to tweak the makefile.

gumstix-buildroot/target/jffs2/jffs2root.mk

is the makefile to edit.  Find these lines

ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_SQUASH)),y)
JFFS2_OPTS += -q
endif

and replace the -q with a -U

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users