Safin wrote:
On 1/17/06, Yu Safin <[EMAIL PROTECTED]> wrote:
On 1/17/06, Giorgio Bellussi <[EMAIL PROTECTED]> wrote:
"--no-upgrade-chk" should avoid network connections.
"...
    If your environment requires the use of a proxy, simply set the
environment variable as indicated below in (bash format):

    export HTTP_PROXY=http://user:[EMAIL PROTECTED]:8080
..." (http://perl.arix.com/cpan2rpm/man.html)

Regards.
G


Yu Safin wrote:
On 1/16/06, John Summerfied <[EMAIL PROTECTED]> wrote:
Carsten Otte wrote:
Giorgio Bellussi wrote:

With cpan2rpm (http://sourceforge.net/projects/cpan2rpm/) you can build
your rpm from CPAN tar.gz archive. Some package requires some additional
work but in my (poor) experience the tool works fine with most of them.
Just in case Dag misses your needs.
Alien works fine for me. Can convert between all important package formats.

Quoted description from freshmeat.net:
Alien converts between the rpm, deb, Stampede slp, and
Slackware tgz file formats. If you want to use a package
from another distribution than the one you have installed
on your system, you can use alien to convert it to your
preferred package format and install it.
However, it cannot
1. Cope with different file placements (SUSE has slightly different
places for documentation, for example)
2. Copy with scripts and triggers that might make Bad Assumptions
3. Properly resolve dependencies, whether because of different package
names (most distros use "kernel" whereas *buntu use linux, for example).

Building the source rpm properly fixes the third, and the others can be
resolved by inspection and (maybe) modification of the spec file.



--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

I tried using the cpan2rpm module (installed the rpm) but cpan2rpm
keeps on trying to go to the network to get the x...x.x.tar.gz file (I
have it on disk).  I tried everything in the documentation to convince
cpan2rpm that the xxx.tar.gz file is on my hard drive but it kept on
trying to get to the network.
The problem with the network is that I am behind a proxy.  I tried the
export command to give it the uid:psw but it still kept on being
rejected by the proxy.  Since I don't want it to go to the network
anyway, I just gave up.
Then I downloaded the latest rpm's I could find for the perl modules I
need but somehow they when into my /site_perl/5.8.6  (I am running
5.8.8).  I changed the @inc and perl found the 5.8.6 modules but they
failed (may be wrong version).
I have taken the easy road, downloaded the xxx.tar.gz and I am doing
my own ./configure - make - make install.  Not what I wanted but I had
to move on after spending a lot of time on this issue.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

I'll give it a world, thank you.

Hi, I am back.

I ran:
cpan2rpm --no-upgrade-chk --install AnyData-0.10.tar.gz

and got:
-- cpan2rpm - Ver: 2.027 --
Signatures not set up
Fetch: HTTP

-- module: AnyData-0.10.tar.gz --
Metadata retrieval
Tarball extraction: [/usr/src/packages/SOURCES/AnyData-0.10.tar.gz]
No PL file [/tmp/JLBNxR0V98/AnyData-0.10/AnyData/Makefile.PL] in
tarball at /usr/src/packages/BUILD/cpan2rpm-2.027/cpan2rpm line 398.
-- Done --

Then, I checked insize the tar.gz file and found the MakefilePL.
I just can't understand why I am not getting either the
"AnyData...rpm" or the rpm installed.  I looked everywhere inside
/usr/src/packages to see if the RPM was put there somewhere.  I can
only find the information about cpan2rpm which I built from an rpm
file.  The /tmp/JLBNxR0V98 probably gets erased right after the
command because there was nothing like that in /tmp after execution.

Any guidance will be greatly appreciated.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


(sorry for previous top-post).
I discovered that cpan2rpm needs that Makefile.PL have "execute"
permission (I can't understand why, since usually it runs by issuing
"perl Makefile.PL").

As a workaround, you can:
a) chmod +x Makefile.PL, rebuild the tarball and then run cpan2rpm
against the new tarball.
Or, if you prefer,
b) you can modify the cpan2rpm script, using your preferred editor, and
change the line (around lineno 400) from
"die qq/Cannot read PL file [$_]/ unless -r;"
to
"die qq/Cannot read PL file [$_]/ unless -e;"

Regards.
G






----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to