Re: [MeeGo-dev] Idle hands are the devil's tools, aka the MeeGo SDK installer

2011-03-26 Thread Attila Csipa
On Friday 25 March 2011 22:58:11 you wrote:
 Absolutely, thanks for letting us know and taking the time to dig a bit
 deeper into the issue.
 
 I do encourage you to file a bugzilla so this can be tracked, so that
 this e-mail isn't the last one you will ever hear about that

Sure thing, filed https://bugs.meego.com/show_bug.cgi?id=14925 (under SDK/Other 
until I find a better spot for it).


Best regards,
Attila Csipa
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


[MeeGo-dev] Idle hands are the devil's tools, aka the MeeGo SDK installer

2011-03-25 Thread Attila Csipa
Warning. Agitated rant ahead.


In a moment of Friday afternoon boredom following a tweet about a certain
competition I decided to check out the state of the 'official' offering and
got the Linux install from
http://appdeveloper.intel.com/en-us/meego-sdk-suite. Smallish thing, an
installer I think to myself, okay... Are you sure ? Of course I'm sure. It
says it wants sudo and stuff... well, okay, I would have preferred to do the
apt-getting myself if that's what it does anyway... I know, what kind of
idiot sudos some random installer from the Internet... Well, I did happen to
have a previous install on my otherwise bog-standard Lucid hack-machine and
the installer happily offers to remove 6-7 packages from that. Says continue
with existing not recommended, well, okay, then proceed with remove... And
yes, I know, that's a double fail, I asked for it (cue laugh). As it turns
out, the eager beaver installer apt-get bloody *force* removed pretty much
all of my Kubuntu install, all the way down to kdm. WTF ? But you said just
6-7 packages... (haha, sucker !). But a fail is a fail only if you don't
learn from it, so let's see what we can learn from this incident (apart from
saying 'no thanks' to stupid sudo-requiring installers even if they come
from official sources). Checking out the installer script you can see what
caused the meltdown:

echo  MeeGo SDK components found.
echo $PKGS
setFontColor red
echo -e  The following packages are installed and will be uninstalled\n \
 prior to installing the MeeGo SDK:
echo$PKGS
setFontColor blue
echo -e  Would you like to uninstall all previously  \
installed MeeGo SDK components now?\n \
\t(u)ninstall now\n \
\t(s)kip uninstall and proceed (not recommended)\n \
\t(e)xit installation
read -p  Select option (u/s/e): 
setFontColor default
if [ $REPLY == u ]  [ $REPLY != U ]; then
if [ $OS == Ubuntu ]; then
  apt-get autoremove -y $PKGS \(is this safe / necessary ?)

I don't know who asked that there, but let me answer. I don't know if it's
necessary, but it's VERY not safe (I'll refrain from using derogatory terms
this time). You display the packages YOU want to uninstall and then tell apt
to remove whatever IT thinks is right (along with, you know, dependencies).
What the frack happened to apt-get --just-print (dry-run) and then
proceeding ? And I thought the QtSDK is sometimes a bit rough around the
edges and people are sometimes too heavy criticizing error-prone SDK
setups... but that's peanuts compared to this monster-fail, seeing apt kill
your install was not a pleasant sight (now I know how people accidentlaly
typing rm -rf / feel). Not. Frackin'. Funny. At. All. Sorry about the
agitated mail, now I have the weekend fun of a devel machine to setup,
instead of doing something productive like the initial idea from an hour ago
of publishing something to AppUp developer challenge by using the official
tools in the process. I guess you can call that learning the hard way. End
of rant. And have a nice day.

Attila
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Re: [MeeGo-dev] Idle hands are the devil's tools, aka the MeeGo SDK installer

2011-03-25 Thread Foster, Dawn M

On Mar 25, 2011, at 11:31 AM, Attila Csipa wrote:

 Warning. Agitated rant ahead.
 
 
 In a moment of Friday afternoon boredom following a tweet about a certain 
 competition I decided to check out the state of the 'official' offering and 
 got the Linux install from 
 http://appdeveloper.intel.com/en-us/meego-sdk-suite. Smallish thing, an 
 installer I think to myself, okay... Are you sure ? Of course I'm sure. It 
 says it wants sudo and stuff... well, okay, I would have preferred to do the 
 apt-getting myself if that's what it does anyway... I know, what kind of 
 idiot sudos some random installer from the Internet... Well, I did happen to 
 have a previous install on my otherwise bog-standard Lucid hack-machine and 
 the installer happily offers to remove 6-7 packages from that. Says continue 
 with existing not recommended, well, okay, then proceed with remove... And 
 yes, I know, that's a double fail, I asked for it (cue laugh). As it turns 
 out, the eager beaver installer apt-get bloody *force* removed pretty much 
 all of my Kubuntu install, all the way down to kdm. WTF ? B
 ut you said just 6-7 packages... (haha, sucker !). But a fail is a fail only 
if you don't learn from it, so let's see what we can learn from this incident 
(apart from saying 'no thanks' to stupid sudo-requiring installers even if they 
come from official sources). Checking out the installer script you can see what 
caused the meltdown:
 
 echo  MeeGo SDK components found. 
 echo $PKGS
 setFontColor red
 echo -e  The following packages are installed and will be uninstalled\n \
  prior to installing the MeeGo SDK:
 echo$PKGS  
 setFontColor blue
 echo -e  Would you like to uninstall all previously  \
 installed MeeGo SDK components now?\n \
 \t(u)ninstall now\n \
 \t(s)kip uninstall and proceed (not recommended)\n \
 \t(e)xit installation
 read -p  Select option (u/s/e): 
 setFontColor default
 if [ $REPLY == u ]  [ $REPLY != U ]; then 
 if [ $OS == Ubuntu ]; then 
   apt-get autoremove -y $PKGS \(is this safe / necessary ?)
 
 I don't know who asked that there, but let me answer. I don't know if it's 
 necessary, but it's VERY not safe (I'll refrain from using derogatory terms 
 this time). You display the packages YOU want to uninstall and then tell apt 
 to remove whatever IT thinks is right (along with, you know, dependencies). 
 What the frack happened to apt-get --just-print (dry-run) and then proceeding 
 ? And I thought the QtSDK is sometimes a bit rough around the edges and 
 people are sometimes too heavy criticizing error-prone SDK setups... but 
 that's peanuts compared to this monster-fail, seeing apt kill your install 
 was not a pleasant sight (now I know how people accidentlaly typing rm -rf / 
 feel). Not. Frackin'. Funny. At. All. Sorry about the agitated mail, now I 
 have the weekend fun of a devel machine to setup, instead of doing something 
 productive like the initial idea from an hour ago of publishing something to 
 AppUp developer challenge by using the official tools in the process. I guess 
 yo
 u can call that learning the hard way. End of rant. And have a nice day.
 

I'm looking into this now to get that installer pulled off of the website and 
fixed.

Dawn

___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Idle hands are the devil's tools, aka the MeeGo SDK installer

2011-03-25 Thread Foster, Dawn M

On Mar 25, 2011, at 12:31 PM, Attila Csipa wrote:

 Please do. I would also recommend a *thorough* review for the whole script. 

Absolutely. The Linux SDK has been removed from the website, and we're doing
a thorough review of the code now. The team was already in the process of 
re-writing
that code anyway (unaware of this particular bug) to make other improvements. We
hope to have a new version out next week (assuming QA goes well on this new 
code),
and you can be sure we're testing some additional use cases to make sure we 
don't
have a repeat of your issues.

Thanks for all of your detailed descriptions about the problems. They were very
helpful in narrowing down the issue!

Dawn
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Idle hands are the devil's tools, aka the MeeGo SDK installer

2011-03-25 Thread Auke Kok

On 03/25/11 13:03, Foster, Dawn M wrote:


On Mar 25, 2011, at 12:31 PM, Attila Csipa wrote:


Please do. I would also recommend a *thorough* review for the whole script.


Absolutely. The Linux SDK has been removed from the website, and we're doing
a thorough review of the code now. The team was already in the process of 
re-writing
that code anyway (unaware of this particular bug) to make other improvements. We
hope to have a new version out next week (assuming QA goes well on this new 
code),
and you can be sure we're testing some additional use cases to make sure we 
don't
have a repeat of your issues.

Thanks for all of your detailed descriptions about the problems. They were very
helpful in narrowing down the issue!


Absolutely, thanks for letting us know and taking the time to dig a bit 
deeper into the issue.


I do encourage you to file a bugzilla so this can be tracked, so that 
this e-mail isn't the last one you will ever hear about that


Auke
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines