Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 03:26:23 -0700 (PDT)
From:      Andriy Gapon <agapon@excite.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/40375: ports/sysutils/portupgrade incorrectly set ftp directory for packages when os version has -p#
Message-ID:  <200207091026.g69AQNdV089978@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         40375
>Category:       ports
>Synopsis:       ports/sysutils/portupgrade incorrectly set ftp directory for packages when os version has -p#
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 09 03:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andriy Gapon
>Release:        4.6-RELEASE
>Organization:
>Environment:
FreeBSD edge.icyb.net 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #0: Thu Jul  4 01:45:33 EDT 2002     avg@edge.icyb.net:/sys-devel/obj/sys-devel/src/sys/EDGE  i386
>Description:
      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
>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
>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]


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207091026.g69AQNdV089978>