[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cross Compilation problems SOLVED



On Sun, Dec 20, 1998 at 01:12:03PM -0500, John Tobey wrote:
> On Sun, 20 Dec 1998 18:13:45 +0100 Marcus Brinkmann wrote:
> > I think that was all. I have a booting hurd system again now. This means the
> > fun is starting *now*.
> 
> Awwwright!!  Let the fun begin!!  Woohoo!  Yip-yip-yippity!!
> 
> btw, if you are updating deb_install, you might want to simplify the
> perl a little:

Thanks, I forgot the option to replace the while loop :)
 
> 24c24
> < dpkg-deb -c $2 | colrm 1 48 | perl -e 'while (<>) {$_ = "/".$_; s/\/$//; s/ -> .*$//; print $_;}' > var/lib/dpkg/info/$1.list
> ---
> > dpkg-deb -c $2 | perl -ne 'm,^.{48}(.*?)/?($| ),; print "/$1\n"' > var/lib/dpkg/info/$1.list
> 
> Perl is our friend.

Be careful! I wanted to do it this way, but it didn't work. dpkg-deb does
pipe in the output of tar, and tar is smart enough to put *tabulators*
instead of spaces if useful. Because {48} does kill 48 characters, and not
48 columns, too much is deleted. Can you fix this in perl? I would be happy
to simplify it.

Thanks,
Marcus

-- 
"Rhubarb is no Egyptian god."        Debian GNU/Linux        finger brinkmd@ 
Marcus Brinkmann                   http://www.debian.org    master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de                        for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       PGP Key ID 36E7CD09


Reply to: