DRU

install.sh breaks using wget

Bug #131351 reported by Brad Crittenden
2
Affects Status Importance Assigned to Milestone
DRU
Fix Committed
Medium
Michael Morgan

Bug Description

Running the 'wget' installation method fails.

% wget -q -O- http://linux.dell.com/dru/install.sh | bash /dev/stdin devel

[...]

Setting up squashfs-tools (3.1r2-6) ...
Setting up syslinux (3.11-3ubuntu4) ...
/dev/stdin: line 44: syntax error near unexpected token `else'
/dev/stdin: line 44: ` else'

Revision history for this message
Brad Crittenden (bac) wrote :

I should've mentioned this was on a Feisty machine.

Revision history for this message
Michael Morgan (mikmorg) wrote :

This is very odd, seeing as how there is only one 'else' in that entire file, and it shouldn't run anywhere close to that point.

If you could do me a favor and do:

wget http://linux.dell.com/dru/install.sh
chmod 755 install.sh
sed -i '2s/^/set -x/' install.sh
./install.sh devel

And paste that result here, it would be very helpful. Thanks.

Revision history for this message
Brad Crittenden (bac) wrote :

Following the directions you posted above works.

Seeing it work, though, I'm pretty surprised at everything that gets installed. I'm not sure most people would expect all of these packages to be installed when all they really want is a copy of the source code. In fact, I chose to use the second method provided on the DRU web site precisely because I didn't want to install Hg.

Revision history for this message
Michael Morgan (mikmorg) wrote : RE: [Bug 131351] Re: install.sh breaks using wget

Do you mean that you used 'hg clone'?

The problem with any mercurial pre-0.9.4 is that 'hg clone' will not
download symbolic links properly. There are files in drudell which are
links to other files, under systems/.

You could also use http://linux.dell.com/hg/drudell/archive/tip.tar.gz
to download the drudell tip, and
http://linux.dell.com/hg/dru/archive/tip.tar.gz for DRU.

We should probably begin discussion about moving to Bazaar. I need to
first research that program a bit before diving head first.

The package dependencies are only partially 'required'. The requirements
for DRU could be split from that of DRUdell, to make it much lighter. At
the moment, the script installs both projects, so it was not my concern
to split them yet.

Sorry for the inconvenience.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Brad Crittenden
Sent: Thursday, August 09, 2007 2:22 PM
To: Morgan, Mike
Subject: [Bug 131351] Re: install.sh breaks using wget

Following the directions you posted above works.

Seeing it work, though, I'm pretty surprised at everything that gets
installed. I'm not sure most people would expect all of these packages
to be installed when all they really want is a copy of the source code.
In fact, I chose to use the second method provided on the DRU web site
precisely because I didn't want to install Hg.

--
install.sh breaks using wget
https://bugs.launchpad.net/bugs/131351
You received this bug notification because you are a member of DRU Team,
which is the bug contact for DRU.

Revision history for this message
Michael Morgan (mikmorg) wrote :

The install script seems to break only when run the first time. I'm still not sure why. This should be run on a clean machine with set -x on, so we can tell exactly when it breaks.

The 'else' on line 44 is non-existent, but this bug is reproduceable. Is this something with APT being called?

Changed in dru:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Michael Morgan (mikmorg) wrote :

Install scripts were completely rewritten, and added under dru/docs directory in repository. This should fix any problems.

Changed in dru:
assignee: nobody → mikmorg
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.