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

Re: Resurrecting Debian on SPARC



So...
Following the directions given (on two different machines just to make
sure) I get to the point where I try to use dpkg -i to install the
downloaded file and I end up with this error:

I have no name!@ravirin:/# dpkg -i libpcre3_8.35-7.1+sparc64_sparc64.deb
dpkg: error while loading shared libraries: libpcre.so.3: cannot open
shared object file: No such file or directory

Q1: did I miss a step? I am logged in as myself and not as root. Does it
matter?

Q2: should debootstrap --second-stage be run from within chroot or from
outside?

Rod

(apologies to Adrian whom I keep pestering... )

On 9/17/2015 2:13 PM, John Paul Adrian Glaubitz wrote:
> On 09/17/2015 05:26 PM, rod wrote:
>> In my efforts to help this along I am trying to set up a chroot
>> environment for testing.  I have tried multistrap and sbuild setup from
>> the debian wiki and from various places found whilst googling.  To date
>> I've not had any success.
> 
> There is no real trick behind it, you just use debbootstrap. If you want
> to create the chroot in the directory "sid-sparc-sbuild", you run:
> 
> $ debootstrap --no-check-gpg --arch=sparc64 --variant=buildd unstable \
>   sid-sparc64-sbuild ftp://ftp.debian-ports.org/debian
> 
> However, this will currently fail for sparc64 as the libpcre3 package is
> not installable from *unstable* as I had to built it manually with tests
> disabled and therefore had to upload it to the *unreleased*
> distribution.
> 
> As a workaround, you need to run debbootstrap with "--foreign" which
> will just download the packages, unpack them but not configure them:
> 
> $ debootstrap --no-check-gpg --foreign --arch=sparc64 --variant=buildd \
>   unstable sid-sparc64-sbuild ftp://ftp.debian-ports.org/debian
> 
> Once this has finished, you change into the directory you just created:
> 
> $ cd sid-sparc64-sbuild
> 
> Then wget the libpcre3 package;
> 
> $ wget
> ftp://ftp.debian-ports.org/debian/pool-sparc64/main/p/pcre3/libpcre3_8.35-7.1+sparc64_sparc64.deb
> 
> Then chroot into the newly created build root:
> 
> $ chroot .
> 
> Install the libpcre3 package manually:
> 
> $ dpkg -i ibpcre3_8.35-7.1+sparc64_sparc64.deb
> 
> And finally run the second stage of debbootstrap:
> 
> $ debbootstrap/debboostrap --second-stage
> 
> After that, you need to add entries to the etc/apt/sources.list (best
> done from outside the chroot):
> 
> deb http://ftp.debian-ports.org/debian/ unstable main
> deb http://ftp.debian-ports.org/debian unreleased main
> deb http://incoming.debian-ports.org/buildd unstable main
> deb-src http://ftp.debian.org/debian/ unstable main
> deb-src http://incoming.debian.org/debian-buildd buildd-unstable main
> 
> And add the Debian Ports GPG key (this has to be done inside the
> chroot):
> 
> $ gpg --keyserver pgp.mit.edu --recv-keys A53AB45AC448326E && gpg
> --export --armor A53AB45AC448326E |apt-key add -
> 
> Then the chroot is basically set up. But you need to add a configuration
> for sbuild, namely:
> 
> root@ravirin:~# cat /etc/schroot/chroot.d/sid-sparc64-sbuild
> [sid-sparc64-sbuild]
> description=Debian sid chroot for sparc64
> type=directory
> directory=/var/sid-sparc64-sbuild
> #groups=Debian,guest,d-i
> #profile=dsa
> #aliases=sid
> groups=root,sbuild,glaubitz,buildd
> root-groups=root,sbuild,glaubitz,buildd
> command-prefix=eatmydata
> #source-root-users=glaubitz,sbuild,buildd
> #run-setup-scripts=true
> #run-exec-scripts=true
> root@ravirin:~#
> 
> That should be all. On a new machine, you also need to run
> "sbuild-update --keygen" after creating .gnupg in the home
> directory of the root user (mkdir /root/.gnupg).
> 
> Cheers,
> Adrian
> 


Reply to: