Re: pkg_add adds an extra / to pkg_path
Hello, Checking on my own box (running 4.1), $PKG_PATH echoes ; ftp://ftp.stacken.kth.se/pub/OpenBSD/4.1/packages/i386/ # uname -a OpenBSD ## 4.1 GENERIC.MP#1225 i386 I have export PKG_PATH=ftp://ftp.stacken.kth.se/pub/OpenBSD/4.1/packages/i386/ Set in my .profile, and it works for me. From the error message you are getting, it seems it cannot find the host ftp.openbsd.org... Can you connect to it from a command line (i.e ftp ftp.openbsd.org)? Also, make sure that your uname -r corresponds with the version directory for the ftp path... Simon. On Tue Feb 3 8:51 , Siju George sent: Hi, I have this in my PKG_PATH variable $ echo $PKG_PATH ftp://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ $ When I try to update a package it shows an error $ sudo pkg_add -ui firefox3 Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: ftp: connect: Connection refused ftp: Can't connect or login to host `ftp.openbsd.org' No packages available in the PKG_PATH Looking for updates: complete Cannot find updates for esound-0.2.38v0 glitz-0.5.6p0 firefox3-3.0.1p3 nspr-4.7.1p0 desktop-file-utils-0.15 libaudiofile-0.2.6p0 nss-3.12 hicolor-icon-theme-0.10p1 png-1.2.28 sqlite3-3.5.9p0 jpeg-6bp3 glib2-2.16.4p1 tiff-3.8.2p0 atk-1.22.0 libiconv-1.12 pango-1.20.0p0 cairo-1.6.4 gettext-0.17 pcre-7.7p0 gtk+2-2.12.11 Proceed? [y/N] y $ I noticed in the line Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: there are two forward slashes after the ftp.openbsd.org part. Is that what is causing the trouble? How do I solve this? Thanks --Siju - Fe din egen, gratis e-postadresse pe Start.no
Re: pkg_add adds an extra / to pkg_path
On Tue, Feb 3, 2009 at 1:41 PM, Simen Stavdal sstav...@start.no wrote: From the error message you are getting, it seems it cannot find the host ftp.openbsd.org... Can you connect to it from a command line (i.e ftp ftp.openbsd.org)? No I was not able to. When I fixed that the update is working. Thankyou so much Simon :-)
Re: pkg_add adds an extra / to pkg_path
In gmane.os.openbsd.misc, Siju George wrote: I have this in my PKG_PATH variable $ echo $PKG_PATH ftp://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ $ When I try to update a package it shows an error $ sudo pkg_add -ui firefox3 Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: ftp: connect: Connection refused ftp: Can't connect or login to host `ftp.openbsd.org' ... I noticed in the line Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: there are two forward slashes after the ftp.openbsd.org part. Is that what is causing the trouble? How do I solve this? This diff removes the extra / and hasn't broken anything yet in my testing (add/update with ftp and http): Index: PackageRepository.pm === RCS file: /data/cvsroot/open/anoncvs/cvs/src/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm,v retrieving revision 1.62 diff -u -p -r1.62 PackageRepository.pm --- PackageRepository.pm2 Feb 2009 20:41:47 - 1.62 +++ PackageRepository.pm3 Feb 2009 10:54:24 - @@ -394,7 +394,7 @@ sub baseurl { my $self = shift; - return //$self-{host}/$self-{path}; + return //$self-{host}$self-{path}; } sub parse_url
Re: pkg_add adds an extra / to pkg_path
On 2009-02-03, Stuart Henderson s...@spacehopper.org wrote: In gmane.os.openbsd.misc, Siju George wrote: I have this in my PKG_PATH variable $ echo $PKG_PATH ftp://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ $ When I try to update a package it shows an error $ sudo pkg_add -ui firefox3 Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: ftp: connect: Connection refused ftp: Can't connect or login to host `ftp.openbsd.org' ... I noticed in the line Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: there are two forward slashes after the ftp.openbsd.org part. Is that what is causing the trouble? How do I solve this? This diff removes the extra / and hasn't broken anything yet in my testing (add/update with ftp and http): ftp, http, and scp. d Index: PackageRepository.pm === RCS file: /data/cvsroot/open/anoncvs/cvs/src/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm,v retrieving revision 1.62 diff -u -p -r1.62 PackageRepository.pm --- PackageRepository.pm 2 Feb 2009 20:41:47 - 1.62 +++ PackageRepository.pm 3 Feb 2009 10:54:24 - @@ -394,7 +394,7 @@ sub baseurl { my $self = shift; - return //$self-{host}/$self-{path}; + return //$self-{host}$self-{path}; } sub parse_url
Re: pkg_add adds an extra / to pkg_path
On 2/3/09, Stuart Henderson s...@spacehopper.org wrote: This diff removes the extra / and hasn't broken anything yet in my testing (add/update with ftp and http): Hi, This Diff failed to apply. Hmm... Looks like a unified diff to me... The text leading up to this was: -- |Index: PackageRepository.pm |=== |RCS file: /data/cvsroot/open/anoncvs/cvs/src/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm,v |retrieving revision 1.62 |diff -u -p -r1.62 PackageRepository.pm |--- PackageRepository.pm2 Feb 2009 20:41:47 - 1.62 |+++ PackageRepository.pm3 Feb 2009 10:54:24 - -- Patching file PackageRepository.pm using Plan A... Hunk #1 failed at 394. 1 out of 1 hunks failed--saving rejects to PackageRepository.pm.rej done # cat PackageRepository.pm.rej @@ -394,7 +394,7 @@ { my $self = shift; - return //$self-{host}/$self-{path}; + return //$self-{host}$self-{path}; } sub parse_url # What did I do Wrong? The command I Issued was # pwd /usr/src/usr.sbin/pkg_add/OpenBSD # patch PackageRepository.pm /var/software/patches/PackageRepository.pm Thanks Siju Index: PackageRepository.pm === RCS file: /data/cvsroot/open/anoncvs/cvs/src/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm,v retrieving revision 1.62 diff -u -p -r1.62 PackageRepository.pm --- PackageRepository.pm2 Feb 2009 20:41:47 - 1.62 +++ PackageRepository.pm3 Feb 2009 10:54:24 - @@ -394,7 +394,7 @@ sub baseurl { my $self = shift; - return //$self-{host}/$self-{path}; + return //$self-{host}$self-{path}; } sub parse_url
Re: pkg_add adds an extra / to pkg_path
On Tue, 3 Feb 2009 19:28:36 +0530 Siju George sgeorge...@gmail.com wrote: What did I do Wrong? The command I Issued was # pwd /usr/src/usr.sbin/pkg_add/OpenBSD # patch PackageRepository.pm /var/software/patches/PackageRepository.pm # man diff # man patch # cd /usr/src/usr.sbin/pkg_add/OpenBSD # patch -p0 /var/software/patches/PackageRepository.pm ^if that is the file where you saved the diff ^-p0 won't work for every diff you might encounter
pkg_add adds an extra / to pkg_path
Hi, I have this in my PKG_PATH variable $ echo $PKG_PATH ftp://ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ $ When I try to update a package it shows an error $ sudo pkg_add -ui firefox3 Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: ftp: connect: Connection refused ftp: Can't connect or login to host `ftp.openbsd.org' No packages available in the PKG_PATH Looking for updates: complete Cannot find updates for esound-0.2.38v0 glitz-0.5.6p0 firefox3-3.0.1p3 nspr-4.7.1p0 desktop-file-utils-0.15 libaudiofile-0.2.6p0 nss-3.12 hicolor-icon-theme-0.10p1 png-1.2.28 sqlite3-3.5.9p0 jpeg-6bp3 glib2-2.16.4p1 tiff-3.8.2p0 atk-1.22.0 libiconv-1.12 pango-1.20.0p0 cairo-1.6.4 gettext-0.17 pcre-7.7p0 gtk+2-2.12.11 Proceed? [y/N] y $ I noticed in the line Error from ftp://ftp.openbsd.org//pub/OpenBSD/4.4/packages/i386/: there are two forward slashes after the ftp.openbsd.org part. Is that what is causing the trouble? How do I solve this? Thanks --Siju