Clifford Sobchuk <[email protected]> writes:

> Hi Dima, That is the way I have always upgraded. When I try to
> initially install via cpan it always fails. I install via apt, then I
> use CPAN to upgrade. I now see what you mean about the two different
> directories for the two versions - apt puts it in /usr/lib/perl5 where
> as cpan puts it into /usr/local/lib/perl/5.14.2/PDL I don't develop
> PDL, I only use PDL in my scripts. I haven't run into any problems
> previously - apparently I have been lucky.

Ok. That's interesting. I suspect what's happening is that when you ask
APT to install PDL, it installs not just PDL, but its dependencies also
(as it should). And it is these dependencies that make the CPAN
installation work. Installing PDL via cpan SHOULD fail if there are
missing dependencies. And in a nutshell, this is why you should always
use APT instead of other tools: it knows about dependencies, while tools
such as cpan do not.

Since all you are trying to do is to install a newer PDL, by far the
best thing you can do is to simply build a new package, and install it.
The PDL sources already have the debianization in them, so this is easy
and painless (just tried it).

Steps:

1. You need to bump the version of the debian package. This entails
creating a new entry in debian/changelog. You can do this yourself, or
you can apply the attached patch (do not commit it; it's just for your
personal package).

2. Make sure your checkout is fresh and clean. 'git reset --hard' and
'git clean -ffdx' is what I generally do. Note that this will delete
existing files.

3. Build the package! From the PDL directory do

 dpkg-buildpackage -us -uc -b

This asks the machine to build the package without signing anything and
without building the sources. This will build a fresh .deb in ..

4. Install it. 'dpkg -i ../pdl_2.6.0~1-1_amd64.deb'



I just tried it on my Debian/sid system; worked fine. Note that if you
have stuff installed via the cpan utility (existing stuff in
/usr/local/lib/perl/...) then these files may confuse the build and/or
tests and it may not work. Having multiple simultaneous installations
such as this is just asking for things to break IMHO.

Let me know if something here doesn't work.

dima

>From 4a1df22ab926ed96622763cb749c07aace926ab0 Mon Sep 17 00:00:00 2001
From: Dima Kogan <[email protected]>
Date: Sun, 21 Apr 2013 23:15:24 -0700
Subject: [PATCH] version bump

---
 debian/changelog |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 998cee5..fbe83e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pdl (1:2.6.0~1-1) unstable; urgency=low
+
+  * snapshot 2.6.0
+
+ -- Dima Kogan <[email protected]>  Sun, 21 Apr 2013 23:15:15 -0700
+
 pdl (1:2.4.11-4) unstable; urgency=low
 
   * fix pdl versioned dep in dh_pdl
-- 
1.7.10.4

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to