<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma">Well adding the "\r" won't help as then tar will more than likely not recognise the file type.</font><div style="font-family: Tahoma; "><br></div><div><span class="Apple-style-span" style="font-family: Tahoma; ">So when opening the downloaded</span><font class="Apple-style-span" face="Tahoma"> <span class="Apple-style-span" style="line-height: 14px; white-space: pre; ">Proto-20101205.wget in vim it reports that it is a dos</span></font></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma">file. Also if you put something like the following around the package variable:</font></span></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma"><br></font></span></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma">echo "|$package|"</font></span></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma"><br></font></span></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma">You will see that the final pipe is not displayed.</font></span></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma">Also, cat -A Proto-20101205.wget reveals all lines look like:</font></span></div><div><span class="Apple-style-span" style="line-height: 14px; white-space: pre; "><font class="Apple-style-span" face="Tahoma"><br></font></span></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;">applewmproto-1.4.1.tar.bz2^M$</span></font></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;">So this quick fix worked for me:</span></font></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="line-height: 14px; white-space: pre;">sed -i 's/^M$//' </span></font><span class="Apple-style-span" style="font-family: Tahoma; line-height: 14px; white-space: pre; ">Proto-20101205.wget</span></div><div><span class="Apple-style-span" style="font-family: Tahoma; line-height: 14px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: Tahoma; line-height: 14px; white-space: pre; ">Hope that helps</span></div><div><span class="Apple-style-span" style="font-family: Tahoma; line-height: 14px; white-space: pre; ">grail</span></div><div><br><div id="SkyDrivePlaceholder" style="font-family: Tahoma; "></div><font class="Apple-style-span" face="Tahoma">> Date: Mon, 28 Mar 2011 22:37:42 -0600</font><br><font class="Apple-style-span" face="Tahoma">> From: rdach@telus.net</font><br><font class="Apple-style-span" face="Tahoma">> To: clfs-support@lists.cross-lfs.org</font><br><font class="Apple-style-span" face="Tahoma">> Subject: Re: [Clfs-support] xorg 7 script problem</font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> that part of "done" not being a file isn't the problem.</font><br><font class="Apple-style-span" face="Tahoma">> this was all done under a previous build of CLFS that I did. </font><br><font class="Apple-style-span" face="Tahoma">> the problem is that tar will not open any of the packages supplied by Proto-20101205.wget, if I use the script and yes I've successfully downloaded all the packages in the above wget file. </font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> I can tar each package individually </font><br><font class="Apple-style-span" face="Tahoma">> example tar xvpf xproto-7.0.19.tar.bz2 will successfully unpack the package and I can then build it as per instructions.</font><br><font class="Apple-style-span" face="Tahoma">> If I use the script it will correctly echo </font><br><font class="Apple-style-span" face="Tahoma">> echo $package</font><br><font class="Apple-style-span" face="Tahoma">> xproto-7.0.19.tar.bz2</font><br><font class="Apple-style-span" face="Tahoma">> echo $packagedir</font><br><font class="Apple-style-span" face="Tahoma">> xporto-7.0.19</font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> but tar will not work because it adds the \r to the package name and that applies to all the packages and of course none of the packages have that name.</font><br><font class="Apple-style-span" face="Tahoma">> On this computer I am using Debian and it results in the same output.</font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> I think I'll have to try and cp all the packages and add the "\r" to the package name.</font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> tks</font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> On Tue, 29 Mar 2011 00:45:03 +0000</font><br><font class="Apple-style-span" face="Tahoma">> Grail Dane <grail69@hotmail.com> wrote:</font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> > </font><br><font class="Apple-style-span" face="Tahoma">> > Well the grep error is due to you not having the complete script, ie the following line:</font><br><font class="Apple-style-span" face="Tahoma">> > echo "$packagedir" >> done || break</font><br><font class="Apple-style-span" face="Tahoma">> > Is what populates the done file, bad name in my opinion as it is confusing, however, have you also performed the priorstep of:</font><br><font class="Apple-style-span" face="Tahoma">> > wget -B http://xorg.freedesktop.org/releases/individual/proto/ -i ../Proto-20101205.wget</font><br><font class="Apple-style-span" face="Tahoma">> > As this will download the files you require which seems to be the complaint about no file?The \r may be a remnant if you performed any of this under Windows?</font><br><font class="Apple-style-span" face="Tahoma">> > Let us know how you go?</font><br><font class="Apple-style-span" face="Tahoma">> > cheersgrail</font><br><font class="Apple-style-span" face="Tahoma">> > </font><br><font class="Apple-style-span" face="Tahoma">> > > Date: Mon, 28 Mar 2011 13:03:38 -0600</font><br><font class="Apple-style-span" face="Tahoma">> > > From: rdach@telus.net</font><br><font class="Apple-style-span" face="Tahoma">> > > To: clfs-support@lists.cross-lfs.org</font><br><font class="Apple-style-span" face="Tahoma">> > > Subject: [Clfs-support] xorg 7 script problem</font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > Hi </font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > I am trying to rebuild CFLS and I have run into a problem with the script for helping build the xorg7 proto section of the CBLFS</font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > when I run the script </font><br><font class="Apple-style-span" face="Tahoma">> > > top=$PWD</font><br><font class="Apple-style-span" face="Tahoma">> > > cat ../Proto-20101205.wget | while read package; do packagedir=$(sed -e "s/\.tar\.bz2//" <<< $package); cd $top || break; </font><br><font class="Apple-style-span" face="Tahoma">> > > grep ^$packagedir$ done && continue; </font><br><font class="Apple-style-span" face="Tahoma">> > > echo $package && </font><br><font class="Apple-style-span" face="Tahoma">> > > echo $packagedir && </font><br><font class="Apple-style-span" face="Tahoma">> > > tar xvf $package; </font><br><font class="Apple-style-span" face="Tahoma">> > > done</font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > I get the output of </font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > grep: done: No such file or directory</font><br><font class="Apple-style-span" face="Tahoma">> > > applewmproto-1.4.1.tar.bz2</font><br><font class="Apple-style-span" face="Tahoma">> > > applewmproto-1.4.1</font><br><font class="Apple-style-span" face="Tahoma">> > > tar: applewmproto-1.4.1.tar.bz2\r: Cannot open: No such file or directory</font><br><font class="Apple-style-span" face="Tahoma">> > > tar: Error is not recoverable: exiting now</font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > etc for all the rest of the tar.bz2 files</font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > I copied this directly from the website??? and of course only added the echo parts to see if the package and packagedir were correctly shown </font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > why does tar put in the \r at the end of the package name????</font><br><font class="Apple-style-span" face="Tahoma">> > > </font><br><font class="Apple-style-span" face="Tahoma">> > > tks</font><br><font class="Apple-style-span" face="Tahoma">> > > -- </font><br><font class="Apple-style-span" face="Tahoma">> > > Randolph D Dach <rdach@telus.net></font><br><font class="Apple-style-span" face="Tahoma">> > > _______________________________________________</font><br><font class="Apple-style-span" face="Tahoma">> > > Clfs-support mailing list</font><br><font class="Apple-style-span" face="Tahoma">> > > Clfs-support@lists.cross-lfs.org</font><br><font class="Apple-style-span" face="Tahoma">> > > http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</font><br><font class="Apple-style-span" face="Tahoma">> > </font><br><font class="Apple-style-span" face="Tahoma">> </font><br><font class="Apple-style-span" face="Tahoma">> -- </font><br><font class="Apple-style-span" face="Tahoma">> Randolph D Dach <rdach@telus.net></font><br><font class="Apple-style-span" face="Tahoma">> _______________________________________________</font><br><font class="Apple-style-span" face="Tahoma">> Clfs-support mailing list</font><br><font class="Apple-style-span" face="Tahoma">> Clfs-support@lists.cross-lfs.org</font><br><font class="Apple-style-span" face="Tahoma">> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org</font><br></div> </body>
</html>