pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/30114: opera 8.0 distfile fetch fails (patch proposition)



>Number:         30114
>Category:       pkg
>Synopsis:       opera 8.0 fetch fails, and a patch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 02 13:27:00 +0000 2005
>Originator:     Antoine Reilles
>Release:        NetBSD 3.99.3
>Organization:
        
>Environment:
        
        
System: NetBSD arcelot.loria.fr 3.99.3 NetBSD 3.99.3 (XEN0) #0: Tue Apr 12 
14:45:09 CEST 2005 
tonio%arcelot.loria.fr@localhost:/usr/obj/sys/arch/i386/compile/XEN0 i386
Architecture: i386
Machine: i386
>Description:
Fetch fails in www/opera
The problem is that 8.0 has ony one digit as minor version, and the distfile
directory OPERA_DIR has to be 800, and not 80.
I fixed that by adding a OPERA_PKG_VERSION_DIR variable, and using it while
calculating OPERA_DIR.
This is probably not the better way to fix this, but it is the only one who
came into my mind.

>How-To-Repeat:
cd pkgsrc/www/opera
make fetch

It fails.
>Fix:
Here the patch i used to have it work:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/opera/Makefile,v
retrieving revision 1.33
diff -u -r1.33 Makefile
--- Makefile    2 May 2005 08:59:08 -0000       1.33
+++ Makefile    2 May 2005 13:20:01 -0000
@@ -31,6 +31,7 @@
 OPERA_LANG=            en
 OPERA_VER_DATE=                20050415
 OPERA_PKG_VERSION=     8.0
+OPERA_PKG_VERSION_DIR= 8.00
 
 _OPERA_OPSYS?=         ${OPSYS}
 _OPERA_MACHINE_ARCH?=  ${MACHINE_ARCH}
@@ -45,7 +46,7 @@
 
 EXTRACT_SUFX=          .rpm
 OPERA_ARCH=            .i386
-OPERA_DIR=             
linux/${OPERA_PKG_VERSION:S/.//g:C/beta.*//}/final/${OPERA_LANG}/${OPERA_ARCH:S/.//}/static
+OPERA_DIR=             
linux/${OPERA_PKG_VERSION_DIR:S/.//g:C/beta.*//}/final/${OPERA_LANG}/${OPERA_ARCH:S/.//}/static
 OPERA_DIST_VERSION=    
${OPERA_PKG_VERSION:C/beta.*//:C/u.*//}-${OPERA_VER_DATE}.1-static-qt
 
 RPMFILES=      ${DISTFILES}

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index