Revert runaway commitdiff -r1.54 -r1.55 pkgsrc/mk/fetch/fetch.mk
(fhajny)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: fetch.mk,v 1.54 2012/02/06 12:41:29 fhajny Exp $ | 1 | # $NetBSD: fetch.mk,v 1.55 2012/02/06 12:49:38 fhajny Exp $ | |
2 | 2 | |||
3 | _MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} | 3 | _MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} | |
4 | _MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} | 4 | _MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}} | |
5 | 5 | |||
6 | # Where to put distfiles that don't have any other master site | 6 | # Where to put distfiles that don't have any other master site | |
7 | MASTER_SITE_LOCAL?= ${MASTER_SITE_BACKUP:=LOCAL_PORTS/} | 7 | MASTER_SITE_LOCAL?= ${MASTER_SITE_BACKUP:=LOCAL_PORTS/} | |
8 | 8 | |||
9 | # Set up _ORDERED_SITES to work out the exact list of sites for every file, | 9 | # Set up _ORDERED_SITES to work out the exact list of sites for every file, | |
10 | # using the dynamic sites script, or ordering according to the master site | 10 | # using the dynamic sites script, or ordering according to the master site | |
11 | # list, MASTER_SORT_RANDOM randomization feature, or the patterns in | 11 | # list, MASTER_SORT_RANDOM randomization feature, or the patterns in | |
12 | # MASTER_SORT or MASTER_SORT_REGEX as appropriate. | 12 | # MASTER_SORT or MASTER_SORT_REGEX as appropriate. | |
13 | # No actual sorting is done until _ORDERED_SITES is expanded. | 13 | # No actual sorting is done until _ORDERED_SITES is expanded. | |
14 | # | 14 | # | |
@@ -256,26 +256,27 @@ _FETCH_ARGS+= ${PKG_VERBOSE:D-v} | @@ -256,26 +256,27 @@ _FETCH_ARGS+= ${PKG_VERBOSE:D-v} | |||
256 | .if exists(${DISTINFO_FILE}) | 256 | .if exists(${DISTINFO_FILE}) | |
257 | _FETCH_ARGS+= ${FAILOVER_FETCH:D-c} -f ${DISTINFO_FILE:Q} | 257 | _FETCH_ARGS+= ${FAILOVER_FETCH:D-c} -f ${DISTINFO_FILE:Q} | |
258 | .endif | 258 | .endif | |
259 | .if !empty(PKG_RESUME_TRANSFERS:M[yY][eE][sS]) | 259 | .if !empty(PKG_RESUME_TRANSFERS:M[yY][eE][sS]) | |
260 | _FETCH_ARGS+= -r | 260 | _FETCH_ARGS+= -r | |
261 | .endif | 261 | .endif | |
262 | .if defined(DIST_SUBDIR) && !empty(DIST_SUBDIR) | 262 | .if defined(DIST_SUBDIR) && !empty(DIST_SUBDIR) | |
263 | _FETCH_ARGS+= -d ${DIST_SUBDIR} | 263 | _FETCH_ARGS+= -d ${DIST_SUBDIR} | |
264 | .endif | 264 | .endif | |
265 | 265 | |||
266 | .PHONY: do-fetch-file | 266 | .PHONY: do-fetch-file | |
267 | do-fetch-file: .USE | 267 | do-fetch-file: .USE | |
268 | @${STEP_MSG} "Fetching ${.TARGET:T}" | 268 | @${STEP_MSG} "Fetching ${.TARGET:T}" | |
269 | ${RUN} ${MKDIR} ${.TARGET:H} | |||
269 | ${RUN} \ | 270 | ${RUN} \ | |
270 | for d in "" ${DIST_PATH:S/:/ /g}; do \ | 271 | for d in "" ${DIST_PATH:S/:/ /g}; do \ | |
271 | case $$d in \ | 272 | case $$d in \ | |
272 | ""|${DISTDIR}) continue ;; \ | 273 | ""|${DISTDIR}) continue ;; \ | |
273 | esac; \ | 274 | esac; \ | |
274 | file="$$d/${DIST_SUBDIR}/${.TARGET:T}"; \ | 275 | file="$$d/${DIST_SUBDIR}/${.TARGET:T}"; \ | |
275 | if ${TEST} -f $$file; then \ | 276 | if ${TEST} -f $$file; then \ | |
276 | ${ECHO} "Using $$file"; \ | 277 | ${ECHO} "Using $$file"; \ | |
277 | ${RM} -f ${.TARGET}; \ | 278 | ${RM} -f ${.TARGET}; \ | |
278 | ${LN} -s $$file ${.TARGET}; \ | 279 | ${LN} -s $$file ${.TARGET}; \ | |
279 | fi; \ | 280 | fi; \ | |
280 | done | 281 | done | |
281 | ${RUN} \ | 282 | ${RUN} \ |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: replace.mk,v 1.242 2012/02/06 12:41:29 fhajny Exp $ | 1 | # $NetBSD: replace.mk,v 1.243 2012/02/06 12:49:38 fhajny Exp $ | |
2 | # | 2 | # | |
3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. | 3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. | |
4 | # All rights reserved. | 4 | # All rights reserved. | |
5 | # | 5 | # | |
6 | # This code is derived from software contributed to The NetBSD Foundation | 6 | # This code is derived from software contributed to The NetBSD Foundation | |
7 | # by Johnny C. Lam. | 7 | # by Johnny C. Lam. | |
8 | # | 8 | # | |
9 | # Redistribution and use in source and binary forms, with or without | 9 | # Redistribution and use in source and binary forms, with or without | |
10 | # modification, are permitted provided that the following conditions | 10 | # modification, are permitted provided that the following conditions | |
11 | # are met: | 11 | # are met: | |
12 | # 1. Redistributions of source code must retain the above copyright | 12 | # 1. Redistributions of source code must retain the above copyright | |
13 | # notice, this list of conditions and the following disclaimer. | 13 | # notice, this list of conditions and the following disclaimer. | |
14 | # 2. Redistributions in binary form must reproduce the above copyright | 14 | # 2. Redistributions in binary form must reproduce the above copyright | |
@@ -727,27 +727,27 @@ TOOLS_DEPENDS.shlock?= shlock>=20020114 | @@ -727,27 +727,27 @@ TOOLS_DEPENDS.shlock?= shlock>=20020114 | |||
727 | TOOLS_CREATE+= shlock | 727 | TOOLS_CREATE+= shlock | |
728 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.shlock=shlock | 728 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.shlock=shlock | |
729 | TOOLS_PATH.shlock= ${TOOLS_PREFIX.shlock}/bin/shlock | 729 | TOOLS_PATH.shlock= ${TOOLS_PREFIX.shlock}/bin/shlock | |
730 | . endif | 730 | . endif | |
731 | .endif | 731 | .endif | |
732 | 732 | |||
733 | .if !defined(TOOLS_IGNORE.tar) && !empty(_USE_TOOLS:Mtar) | 733 | .if !defined(TOOLS_IGNORE.tar) && !empty(_USE_TOOLS:Mtar) | |
734 | . if !empty(PKGPATH:Marchivers/pax) | 734 | . if !empty(PKGPATH:Marchivers/pax) | |
735 | MAKEFLAGS+= TOOLS_IGNORE.tar= | 735 | MAKEFLAGS+= TOOLS_IGNORE.tar= | |
736 | . elif !empty(_TOOLS_USE_PKGSRC.tar:M[yY][eE][sS]) | 736 | . elif !empty(_TOOLS_USE_PKGSRC.tar:M[yY][eE][sS]) | |
737 | TOOLS_DEPENDS.tar?= pax>=20040802:../../archivers/pax | 737 | TOOLS_DEPENDS.tar?= pax>=20040802:../../archivers/pax | |
738 | TOOLS_CREATE+= tar | 738 | TOOLS_CREATE+= tar | |
739 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tar=pax | 739 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tar=pax | |
740 | TOOLS_PATH.tar= ${TOOLS_PREFIX.tar}/bin/${NBPAX_PROGRAM_PREFIX}tar | 740 | TOOLS_PATH.tar= ${TOOLS_PREFIX.tar}/bin/tar | |
741 | . endif | 741 | . endif | |
742 | .endif | 742 | .endif | |
743 | 743 | |||
744 | .if !defined(TOOLS_IGNORE.tclsh) && !empty(_USE_TOOLS:Mtclsh) | 744 | .if !defined(TOOLS_IGNORE.tclsh) && !empty(_USE_TOOLS:Mtclsh) | |
745 | . if !empty(PKGPATH:Mlang/tcl) | 745 | . if !empty(PKGPATH:Mlang/tcl) | |
746 | MAKEFLAGS+= TOOLS_IGNORE.tclsh= | 746 | MAKEFLAGS+= TOOLS_IGNORE.tclsh= | |
747 | . elif !empty(_TOOLS_USE_PKGSRC.tclsh:M[yY][eE][sS]) | 747 | . elif !empty(_TOOLS_USE_PKGSRC.tclsh:M[yY][eE][sS]) | |
748 | TOOLS_DEPENDS.tclsh?= tcl>=8.4:../../lang/tcl | 748 | TOOLS_DEPENDS.tclsh?= tcl>=8.4:../../lang/tcl | |
749 | TOOLS_CREATE+= tclsh | 749 | TOOLS_CREATE+= tclsh | |
750 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tclsh=tcl | 750 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.tclsh=tcl | |
751 | TOOLS_PATH.tclsh= ${TOOLS_PREFIX.tclsh}/bin/tclsh | 751 | TOOLS_PATH.tclsh= ${TOOLS_PREFIX.tclsh}/bin/tclsh | |
752 | . endif | 752 | . endif | |
753 | .endif | 753 | .endif |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: transform-gcc,v 1.23 2012/02/06 12:41:29 fhajny Exp $ | 1 | # $NetBSD: transform-gcc,v 1.24 2012/02/06 12:49:38 fhajny Exp $ | |
2 | # | 2 | # | |
3 | # This file handles the transformations needed for gcc that can be done | 3 | # This file handles the transformations needed for gcc that can be done | |
4 | # looking at only one argument at a time. | 4 | # looking at only one argument at a time. | |
5 | # | 5 | # | |
6 | 6 | |||
7 | transform_setname "transform-gcc" | 7 | transform_setname "transform-gcc" | |
8 | 8 | |||
9 | case $arg in | 9 | case $arg in | |
10 | 10 | |||
11 | # Standard options. | 11 | # Standard options. | |
12 | -[EcgOos] |\ | 12 | -[EcgOos] |\ | |
13 | -[DILlU]?* |\ | 13 | -[DILlU]?* |\ | |
14 | -O[01] ) transform_pass ;; | 14 | -O[01] ) transform_pass ;; | |
@@ -102,29 +102,26 @@ case $arg in | @@ -102,29 +102,26 @@ case $arg in | |||
102 | -Wreturn-type |\ | 102 | -Wreturn-type |\ | |
103 | -Wshadow |\ | 103 | -Wshadow |\ | |
104 | -Wsign-compare |\ | 104 | -Wsign-compare |\ | |
105 | -Wstrict-aliasing |\ | 105 | -Wstrict-aliasing |\ | |
106 | -Wstrict-prototypes |\ | 106 | -Wstrict-prototypes |\ | |
107 | -Wswitch |\ | 107 | -Wswitch |\ | |
108 | -Wunused |\ | 108 | -Wunused |\ | |
109 | -Wundef |\ | 109 | -Wundef |\ | |
110 | -Wwrite-strings ) transform_pass ;; | 110 | -Wwrite-strings ) transform_pass ;; | |
111 | 111 | |||
112 | # There are some packages suppressing all warnings. We don't want that. | 112 | # There are some packages suppressing all warnings. We don't want that. | |
113 | -w ) transform_discard ;; | 113 | -w ) transform_discard ;; | |
114 | 114 | |||
115 | # Discard visibility (Sun linker won't support it) | |||
116 | -fvisibility=* ) transform_discard ;; | |||
117 | ||||
118 | # Options specific to g++. | 115 | # Options specific to g++. | |
119 | -fexceptions |\ | 116 | -fexceptions |\ | |
120 | -fmessage-length=* |\ | 117 | -fmessage-length=* |\ | |
121 | -fno-check-new |\ | 118 | -fno-check-new |\ | |
122 | -fno-exceptions |\ | 119 | -fno-exceptions |\ | |
123 | -fno-rtti |\ | 120 | -fno-rtti |\ | |
124 | -Wno-non-virtual-dtor |\ | 121 | -Wno-non-virtual-dtor |\ | |
125 | -ftemplate-depth=* ) transform_pass ;; | 122 | -ftemplate-depth=* ) transform_pass ;; | |
126 | 123 | |||
127 | # Options specific to Objective C | 124 | # Options specific to Objective C | |
128 | -fgnu-runtime |\ | 125 | -fgnu-runtime |\ | |
129 | -fconstant-string-class=* ) transform_pass ;; | 126 | -fconstant-string-class=* ) transform_pass ;; | |
130 | 127 |