Bug 40375 - ports/sysutils/portupgrade incorrectly set ftp directory for packages when os version has -p#
Summary: ports/sysutils/portupgrade incorrectly set ftp directory for packages when os...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Akinori MUSHA
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-09 11:30 UTC by Andriy Gapon
Modified: 2002-08-05 19:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Gapon 2002-07-09 11:30:01 UTC
      if FreeBSD version has form of 4.X-RELEASE-pN, then portupgrade (pkgtools) set OS_RELEASE to this full string and  look for packages in ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.X-release-pN/All/, where it should actually be ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.X-release/All/
in my opinion OS_RELEASE either should be set 4.X-RELEASE or ftp directory name should be constructed differently

Fix: 

in /usr/local/lib/ruby/site_ruby/1.6/pkgtools.rb change pattern to
 if m = /^(((\d+)(?:\.\d+)+)-(\w+))(?:\S*) (\w+)$/.match(uname)
    OS_RELEASE, OS_REVISION, OS_MAJOR, OS_BRANCH, OS_PLATFORM = m[1..-1]
How-To-Repeat:       try to upgrade/install port using packages with the latest portupgrade from ports on FreeBSD with version number of form  4.X-RELEASE-pN
Comment 1 Tetsurou Okazaki freebsd_committer freebsd_triage 2002-07-09 12:25:06 UTC
Responsible Changed
From-To: freebsd-ports->knu

over to the maintainer
Comment 2 Akinori MUSHA freebsd_committer freebsd_triage 2002-08-05 19:54:39 UTC
State Changed
From-To: open->closed

Fixed in the latest version of portupgrade, so check it out. 

Thanks!