From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f346cb4e302d0a14 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!c16g2000yqd.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Using Debian Ada packages on Ubuntu Date: Sat, 27 Feb 2010 04:06:21 -0800 (PST) Organization: http://groups.google.com Message-ID: <82c35cad-d16c-48e0-a1a4-520b504778c2@c16g2000yqd.googlegroups.com> References: <4c59d9cd-fc2d-49ca-ab23-422c329104cb@m37g2000yqf.googlegroups.com> NNTP-Posting-Host: 94.108.192.230 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1267272381 15676 127.0.0.1 (27 Feb 2010 12:06:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 27 Feb 2010 12:06:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c16g2000yqd.googlegroups.com; posting-host=94.108.192.230; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-2),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9339 Date: 2010-02-27T04:06:21-08:00 List-Id: Rolf wrote: > I recently purchased an Eee PC (nice little gadget!). It didn't take > long to install Eeebuntu on it, a special edition of Ubuntu 9 for the > Eee PC. As others have already reported, the Ada packages on Ubuntu > are not as nice as the original ones available for Debian. > > Is there a way to install the Debian Ada packages on an Ubuntu system? > Any experience or hints? I'd suggest creating a chroot and installing Debian in it, then do all your programming work in the chroot. The procedure is a little involved if you do it for the first time, but then it is very stable. I have been using this for years; mu main system runs Debian a 64-bit testing and my chroots run unstable in 32-bit and 64-bit mode respectively. First, install the package debootstrap then read the man page debootstrap(8). The manual page has a complete example of how to create a sid (unstable) chroot. You can adjust this to a testing or stable chroot, at your option. Second, bind-mount your home directory and mount the /proc, /sys and / dev/pts pseudo-filesystems in the chroot. You do this by adding lines to /etc/fstab in your main system and then saying "mount -a" in your main system as root; here is an excerpt from my own top-level /etc/ fstab: # unstable proc /chroot/unstable/proc proc defaults 0 0 none /chroot/unstable/dev/pts devpts defaults 0 0 /var/tmp /chroot/unstable/tmp tmpfs bind 0 0 /home /chroot/unstable/home xfs bind 0 0 Third, copy /etc/passwd, /etc/shadow, /etc/group, /etc/passwd-, /etc/ shadow- and /etc/group- to /chroot/debian/etc to replicate the user accounts from the main system to the chroot. Fourth, install the package schroot in your top-level system. Configure schroot to grant access to the chroot to select non-root user. Here is an excerpt from my own /etc/shcroot/schroot.conf: [unstable] description=Debian sid (amd64) directory=/chroot/unstable priority=3 groups=src aliases=sid,default Note that my user account belongs to the group "src" in /etc/group; all members of this group have access to the chroot. Fifth and last, as your normal user account, do: $ schroot (to start a shell in the Debian chroot), or $ schroot -- aptitude to start a command (in this case, aptitude) in the chroot. I routinely run emacs in my main system and launch compilations with M- x compile and a command such as: $ schroot -- dpkg-buildpackage -uc -us or $ schroot -- gnatmake -P If you want to run GUI programs (such as gnat-gps) from the chroot, simply export DISPLAY=:0 so they can see the X server running in your main system. HTH -- Ludovic Brenta.