kemenaran / iwidarwin

Automatically exported from code.google.com/p/iwidarwin
4 stars 4 forks source link

normail user cannot build dmg package. #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
no-root user cannot make dmg package.

instation must be root user.
but building package has capability in no-root user.

% xcodebuild
...
chown: build/Debug/iwi2200.kext/Contents/Info.plist: Operation not permitted
chown: build/Debug/iwi2200.kext/Contents/MacOS/iwi2200: Operation not permitted
chown: build/Debug/iwi2200.kext/Contents/MacOS: Operation not permitted
chown:
build/Debug/iwi2200.kext/Contents/Resources/English.lproj/InfoPlist.strings:
Operation not permitted
chown: build/Debug/iwi2200.kext/Contents/Resources/English.lproj: Operation
not permitted
chown: build/Debug/iwi2200.kext/Contents/Resources: Operation not permitted
chown: build/Debug/iwi2200.kext/Contents: Operation not permitted
chown: build/Debug/iwi2200.kext: Operation not permitted
rm: /System/Library/Extensions/iwi2200.kext/Contents/Info.plist: Permission
denied
rm: /System/Library/Extensions/iwi2200.kext/Contents/MacOS/iwi2200:
Permission denied
rm: /System/Library/Extensions/iwi2200.kext/Contents/MacOS: Permission denied
rm:
/System/Library/Extensions/iwi2200.kext/Contents/Resources/English.lproj/InfoPli
st.strings:
Permission denied
rm:
/System/Library/Extensions/iwi2200.kext/Contents/Resources/English.lproj:
Permission denied
rm: /System/Library/Extensions/iwi2200.kext/Contents/Resources: Permission
denied
rm: /System/Library/Extensions/iwi2200.kext/Contents: Permission denied
rm: /System/Library/Extensions/iwi2200.kext: Permission denied
cp: /System/Library/Extensions/iwi2200.kext/Contents/MacOS/iwi2200:
Permission denied
cp:
/System/Library/Extensions/iwi2200.kext/Contents/Resources/English.lproj/InfoPli
st.strings:
Permission denied
cp: /System/Library/Extensions/iwi2200.kext/Contents/Info.plist: Permission
denied

Original issue reported on code.google.com by kazuh...@gmail.com on 16 Feb 2007 at 11:49

GoogleCodeExporter commented 9 years ago
yes. should i change the build directory to / instead?

Original comment by jalav...@gmail.com on 17 Feb 2007 at 2:10

GoogleCodeExporter commented 9 years ago
I am researching building package in Mac OS X.
"run script"(script is packaging ) should not be included.
because xcode try to packaging when we type "xcodebuild build" in terminal.

this script should be called when "xcodebuild install" or 
     should be sprited to another scirpt.

and I change the script at first. ( this chaninge dont use another directory).

I dont know detail about packaging  in Mac OS X.

I think that there are method of changing file,permission at install time. 
we should change it in future. ( this is requirement in no-root user build) 

Original comment by kazuh...@gmail.com on 20 Feb 2007 at 8:29

GoogleCodeExporter commented 9 years ago
i fixed this in iwi3945

add support for all users

i've add a .dmg for the project - this means the svn last version now includes 
a build version. i'll port this to 
iwi2100, iwi2200 soon

Original comment by jalav...@gmail.com on 21 Feb 2007 at 4:37

GoogleCodeExporter commented 9 years ago
kazu

latest svn is stable and with full rx speed :)

i'm not shure about https download - can you check?

i've put a .dmg inside svn - we should build one for each new svn version

can you post the link to the forum?

Original comment by jalav...@gmail.com on 21 Feb 2007 at 6:47

GoogleCodeExporter commented 9 years ago
this is not fixed.

>chown -R root:wheel build/Debug/iwi2200.kext

>rm -rf /System/Library/Extensions/iwi2200.kext

this should not do at build time.

>cp -rf build/Debug/iwi2200.kext /System/Library/Extensions

installation dont should be at build time.

if you want to install, type "xcodebuild install -t /System/Library/Extensions"

you must not copy binaries  to real target in packaging time.

i revert anything about packaging.

and binaries must not be commited in svn .
svn is *source repository*.

Original comment by kazuh...@gmail.com on 21 Feb 2007 at 7:40

GoogleCodeExporter commented 9 years ago
jalavoui,

binary  and its package should not be commited in svn.
*sources* repository. 

if you require , you should upload dmg to download section without Features 
label.
I deleted this.

i reverse all files related with packaging.

Original comment by kazuh...@gmail.com on 21 Feb 2007 at 8:38

GoogleCodeExporter commented 9 years ago
please put the code exactly as it was.

i've fixed several bug in .pkg, .dmg

if you like - rewrite the code to have an install feature - also write an howto
install in wiki.

i'll be using the .dmg in svn - this is the best way to share the current svn 
build
version with other users.

if you disagree don't use it - but don't delete it!

Original comment by jalav...@gmail.com on 22 Feb 2007 at 5:48

GoogleCodeExporter commented 9 years ago
> if you like - rewrite the code to have an install feature - also write an 
howto
> install in wiki.

ok. i would not like to write document on wiki about packaging.
I write it beucase you dont understand theory about packaging. 

> i'll be using the .dmg in svn - this is the best way to share the current svn 
build
> version with other users.
>
> if you disagree don't use it - but don't delete it!

Generaly, binaries files  in version control system.
all peopele which comple source  dont have the same environment. 
if u want to upload daily snap shot binaries, you write upload script and 
should put
it Download section.

Original comment by kazuh...@gmail.com on 22 Feb 2007 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by jalav...@gmail.com on 9 Mar 2007 at 10:32