Ubuntu Hoary - Upgrade to latest subversion release

Shot - Piotr Szotkowski shot at hot.pl
Tue Jul 19 16:32:01 UTC 2005


Hello.

Gregory PiƱero:

> I wonder if I could grab the latest Subversion package from Breezy
> without changing my sources.list?  That's the only program I need the
> latest from.  Can you tell apt to install a package you bring in from
> somewhere else?

You could do this with `dpkg -i package.deb`, but you'd have to track
the dependencies by hand. Unfortunately, Breezy's packages are compiled
for Breezy's libc6:

shot at dawid:~$ apt-cache policy subversion
subversion:
  Installed: 1.1.1-2ubuntu3
  Candidate: 1.1.1-2ubuntu3
  Version table:
     1.2.0-1ubuntu1 0
          1 http://archive.ubuntu.com breezy/main Packages
 *** 1.1.1-2ubuntu3 0
        500 http://archive.ubuntu.com hoary/main Packages
        100 /var/lib/dpkg/status
shot at dawid:~$ apt-cache showpkg subversion
[...]
Dependencies:
1.2.0-1ubuntu1 - libapr0 (2 2.0.54) libc6 (2 2.3.4-1) [...]
1.1.1-2ubuntu3 - libapr0 (2 2.0.52) libc6 (2 2.3.2.ds1-4) [...]

This means you'd have to upgrade libc6, and as it is the GNU C Library,
you could as well go full-Breezy, which you definitely don't want to do.

> Alternatively, maybe I could compile Subversion from source or however
> that works?  I really do want the stability of Hoary so I'd prefer not
> to get anything else from Breezy.

Yup. I learned this not a week ago when I wanted to have Breezy's Ruby
under Hoary, and the way I did is is described in the comments here:
http://weblog.zerokspot.com/posts/426/#comments

If I were to do this again, I'd wouldn't add the Breezy sources
(`apt-get source subversion` ignores the pinning and tries to
install Breezy's versions of build-depends, so it's useless).

What I'd most probably do would be to find subversion's source
package[1], apt-get the build-depends mentioned there plus the
build-essential and fakeroot packages (all from Hoary), get the
subversion_1.2.0.orig.tar.gz and subversion_1.2.0-1ubuntu1.diff.gz
files, untar the original, unzip the diff, patch the orig with the
diff and `fakeroot dpkg-buildpackage`. After a longish wait I'd be
presented with all of the .debs built from that source, so I'd check
their dependencies (with `dpkg-deb -f package.deb`) and install them
by hand (satisfying the dependencies as I go along).

[1] http://packages.ubuntu.com/breezy/source/subversion

Cheers,
-- Shot
-- 
Carelessly planned projects take three times longer to complete than expected.
Carefully planned projects take four times longer to complete than expected,
mostly because the planners expect their planning to reduce the time it takes.
====================== http://shot.pl/hovercraft/ === http://shot.pl/1/125/ ===
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050719/5b70cec9/attachment.sig>


More information about the ubuntu-users mailing list