Author Topic: Perl In 3.5.2?  (Read 3218 times)

kclayton

  • Newbie
  • *
  • Posts: 19
    • View Profile
Perl In 3.5.2?
« on: December 12, 2004, 01:01:19 pm »
Hola,

Anyone know of the status of perl in 3.5.x?  Before handhelds.org went down and took the maillists archives with it I saw discussions of building perl 5.8.3 w/oe.  However perl didn't show up in either 3.5.x feed.  Was there a signficant build prob that shelved it?  Is anyone working on it?

Cheers,
K

kclayton

  • Newbie
  • *
  • Posts: 19
    • View Profile
Perl In 3.5.2?
« Reply #1 on: December 14, 2004, 08:39:29 am »
I appear to have perl 5.8.4 working with OZ 3.5.2.  I took the perl-base, perl and perm-modules 5.8.4-4_arm.deb packages from
http://http.us.debian.org/debian/pool/main/p/perl/

and extracted then w/ 'ar x' then re-tgz'd them up into ipks and they installed and ran fine.

Sone things to note:

(1) I know virtually nothing about building ipks.  These pkgs were installed to sd and the package manager didn't run ipkg-link as usual.  Had to run it manually I suspect fine-tuning is needed in control.tar.gz somewhere.  

(2) Initial install put dir /usr/share/perl/5.8  This should be a symlink to /usr/share/perl/5.8.4 so that perl can find modules such as strict.pm

(3) Had to create a perl_defaults script in /etc/profile.d so that LANGUAGE="en_US" and LC_ALL="C" got set and removed warnings at launch. (same ideas as opie_defaults.

(4) I made no effort to strip out things such as man pages and docs.  And I don't have time for such right now.  So, resulting ipks are certainly larger than necessary.

(5) I've done only rudimentary testing.  Hello world, a couple of personal text processing scripts (open file, read and tweak text, write new file) and a quick test of multiplying 2 scalars (1.234, 2.1).  Tests all went fine but you are on your own from here.

I'd be willing to send these to people if you email me privately (keith@claytons.org) or post them if someone has a good public site.  However, I don't have time to enhance, support or fix these packages except to meet my own needs.  Don't email me looking for help . . not trying to be a jerk . . just buried right now.  So basically if you have problems you are on your own.  

Long term the way this "should" be done is via the OE build system. I just had immediate need so I made it work.   Maybe in a couple of months, after some work projects are behind me and I have some time, I'll pull the OE build tools, chat with the deb packager and see if I can get some legit packages going.

Cheers,
K

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Perl In 3.5.2?
« Reply #2 on: June 09, 2005, 01:12:40 pm »
FWIW I've just installed perl 5.8.4 on my 5600 under OZ 3.5.3 with the help of kclayton's post. Thanks kclayton. But in my case I didn't even re-package the .deb files, just installed them directly.

Here's specifically what I did:

Installed these packages in the following order:
    perl-base_5.8.4-8_arm.deb
    libgdbm3_1.8.3-r0_arm.ipk (from OZ's feed)
    perl_5.8.4-8_arm.deb (use --force-depends)
    perl-modules_5.8.4-8_all.deb

I ran 'ipkg-link add pkgname' after each package install just in case (I was installing to my sd card).

After that I had to remove the empty directories created by the install & symlink them to the proper one's:
    rm -Rf /usr/share/perl/5.8
    ln -s /usr/share/perl/5.8.4 /usr/share/perl/5.8
    rm -Rf /usr/lib/perl/5.8
    ln -s /usr/lib/perl/5.8.4 /usr/share/perl/5.8

So far so good. HTH
GROG!

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Perl In 3.5.2?
« Reply #3 on: June 09, 2005, 02:40:05 pm »
Very good. Could you fix the recipes in OE as well? Then it would be in the feed for coming versions.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

darkloran

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://freeloran.free.fr/zaurus.html
Perl In 3.5.2?
« Reply #4 on: October 08, 2005, 09:35:31 am »
Hi,

Quote
Very good. Could you fix the recipes in OE as well? Then it would be in the feed for coming versions.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83572\"][{POST_SNAPBACK}][/a][/div]

 i've got a sl-c3000 and i've decided to try openzaurus for a while. (i've used Qtopia ROM for 6 months and Cacko b1 for 6 other months).

  i've read that perl was previously in OZ... you're talking about to put it in OZ feed in 3.5.x but i've found it nowhere... can you tell me if it exists ?

if not i'll go further and compile it...

loran
SL-C3000 -- Cacko1.23b1
CE-RH2 remote / Belkin usblan / Asus WL-110 / Sandisk SD UII 256MB / Sandisk CF UII 1GB
STOREX OTG Club 40GB / Belkin IR Keyboard / Logitech mouse

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Perl In 3.5.2?
« Reply #5 on: October 08, 2005, 10:59:23 am »
Perl was always in OE, it was just broken (not building), however I think it's fixed now - I've just started bitbake to see whether it builds or not.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva