Commit 7887626f authored by marino's avatar marino
Browse files

lang/gcc-aux: significantly reduce c++ testsuite diff file size

The majority of the 234k c++ testsuite patch can be eliminated with
REINPLACE_CMD at the post-extract phase.  Now it's 1/100th the size
at 2.3k.  No revbump necessary; the testsuite isn't even a default
option.  The same treatment can be done to lang/gcc47-aux later.
parent e9ae1414
......@@ -180,6 +180,16 @@ post-extract:
@${ECHO} "Applying composite patch diff-${suffix}"
@${PATCH} -d ${WRKSRC} -s -E < ${FILESDIR}/diff-${suffix}
.endfor
@(cd ${WRKSRC}/libstdc++-v3/testsuite && ${REINPLACE_CMD} \
-e 's|\*-\*-freebsd\*|*-*-dragonfly *-*-freebsd*|' ${CXXTS4DF})
@(cd ${WRKSRC}/libstdc++-v3/testsuite/22_locale && ${REINPLACE_CMD} \
-e 's|ISO-8859|ISO8859|g' \
-e 's|ja_JP.eucjp|ja_JP.eucJP|g' \
-e 's|en_HK|zh_HK|g' \
-e 's|en_PH|en_NZ|g' \
-e 's|se_NO|no_NO|g' \
-e 's|es_MX|es_ES|g' \
-e 's|ru_RU.UTF8|ru_RU.UTF-8|g' ${LOCALE22FIX})
.if ${PORT_OPTIONS:MSTATIC} || ${PORT_OPTIONS:MBOOTSTRAP}
# Ensure GNAT tools are built statically
${REINPLACE_CMD} -e 's/^GCC_LINK_FLAGS=.*/GCC_LINK_FLAGS=-static/' \
......
......@@ -9,7 +9,306 @@ LIB_DEPENDS+= libmpc.so:${PORTSDIR}/math/mpc
ONLY_FOR_ARCHS= i386 amd64
GNU_CONFIGURE= yes
USE_BZIP2= yes
USES= iconv gmake perl5
USES= iconv gmake perl5 tar:bzip2
USE_PERL5= build
ALL_TARGET= default
CXXTS4DF= \
17_intro/headers/c++1998/stdc++.cc \
17_intro/headers/c++1998/stdc++_multiple_inclusion.cc \
17_intro/headers/c++200x/stdc++.cc \
17_intro/headers/c++200x/stdc++_multiple_inclusion.cc \
18_support/pthread_guard.cc \
20_util/shared_ptr/thread/default_weaktoshared.cc \
21_strings/basic_string/pthread18185.cc \
21_strings/basic_string/pthread4.cc \
22_locale/locale/cons/12658_thread-1.cc \
22_locale/locale/cons/12658_thread-2.cc \
23_containers/list/pthread1.cc \
23_containers/list/pthread5.cc \
23_containers/map/pthread6.cc \
23_containers/vector/debug/multithreaded_swap.cc \
26_numerics/headers/cmath/c_math_dynamic.cc \
27_io/basic_ofstream/pthread2.cc \
27_io/basic_ostringstream/pthread3.cc \
30_threads/async/42819.cc \
30_threads/async/49668.cc \
30_threads/async/any.cc \
30_threads/async/async.cc \
30_threads/async/launch.cc \
30_threads/async/sync.cc \
30_threads/call_once/39909.cc \
30_threads/call_once/49668.cc \
30_threads/call_once/call_once1.cc \
30_threads/condition_variable/cons/1.cc \
30_threads/condition_variable/members/1.cc \
30_threads/condition_variable/members/2.cc \
30_threads/condition_variable/native_handle/typesizes.cc \
30_threads/condition_variable_any/50862.cc \
30_threads/condition_variable_any/cons/1.cc \
30_threads/condition_variable_any/members/1.cc \
30_threads/condition_variable_any/members/2.cc \
30_threads/future/cons/move.cc \
30_threads/future/members/45133.cc \
30_threads/future/members/get.cc \
30_threads/future/members/get2.cc \
30_threads/future/members/share.cc \
30_threads/future/members/valid.cc \
30_threads/future/members/wait.cc \
30_threads/future/members/wait_for.cc \
30_threads/future/members/wait_until.cc \
30_threads/lock/1.cc \
30_threads/lock/2.cc \
30_threads/lock/3.cc \
30_threads/lock/4.cc \
30_threads/mutex/cons/1.cc \
30_threads/mutex/dest/destructor_locked.cc \
30_threads/mutex/lock/1.cc \
30_threads/mutex/native_handle/1.cc \
30_threads/mutex/native_handle/typesizes.cc \
30_threads/mutex/try_lock/1.cc \
30_threads/mutex/try_lock/2.cc \
30_threads/mutex/unlock/1.cc \
30_threads/packaged_task/49668.cc \
30_threads/packaged_task/cons/1.cc \
30_threads/packaged_task/cons/2.cc \
30_threads/packaged_task/cons/3.cc \
30_threads/packaged_task/cons/alloc.cc \
30_threads/packaged_task/cons/move.cc \
30_threads/packaged_task/cons/move_assign.cc \
30_threads/packaged_task/members/get_future.cc \
30_threads/packaged_task/members/get_future2.cc \
30_threads/packaged_task/members/invoke.cc \
30_threads/packaged_task/members/invoke2.cc \
30_threads/packaged_task/members/invoke3.cc \
30_threads/packaged_task/members/invoke4.cc \
30_threads/packaged_task/members/invoke5.cc \
30_threads/packaged_task/members/reset.cc \
30_threads/packaged_task/members/reset2.cc \
30_threads/packaged_task/members/swap.cc \
30_threads/packaged_task/members/valid.cc \
30_threads/promise/cons/1.cc \
30_threads/promise/cons/alloc.cc \
30_threads/promise/cons/move.cc \
30_threads/promise/cons/move_assign.cc \
30_threads/promise/members/get_future.cc \
30_threads/promise/members/get_future2.cc \
30_threads/promise/members/set_exception.cc \
30_threads/promise/members/set_exception2.cc \
30_threads/promise/members/set_value.cc \
30_threads/promise/members/set_value2.cc \
30_threads/promise/members/set_value3.cc \
30_threads/promise/members/swap.cc \
30_threads/recursive_mutex/cons/1.cc \
30_threads/recursive_mutex/dest/destructor_locked.cc \
30_threads/recursive_mutex/lock/1.cc \
30_threads/recursive_mutex/native_handle/1.cc \
30_threads/recursive_mutex/native_handle/typesizes.cc \
30_threads/recursive_mutex/try_lock/1.cc \
30_threads/recursive_mutex/try_lock/2.cc \
30_threads/recursive_mutex/unlock/1.cc \
30_threads/recursive_timed_mutex/cons/1.cc \
30_threads/recursive_timed_mutex/dest/destructor_locked.cc \
30_threads/recursive_timed_mutex/lock/1.cc \
30_threads/recursive_timed_mutex/lock/2.cc \
30_threads/recursive_timed_mutex/native_handle/1.cc \
30_threads/recursive_timed_mutex/native_handle/typesizes.cc \
30_threads/recursive_timed_mutex/try_lock/1.cc \
30_threads/recursive_timed_mutex/try_lock/2.cc \
30_threads/recursive_timed_mutex/try_lock_for/1.cc \
30_threads/recursive_timed_mutex/try_lock_for/2.cc \
30_threads/recursive_timed_mutex/try_lock_for/3.cc \
30_threads/recursive_timed_mutex/try_lock_until/1.cc \
30_threads/recursive_timed_mutex/try_lock_until/2.cc \
30_threads/recursive_timed_mutex/unlock/1.cc \
30_threads/shared_future/cons/move.cc \
30_threads/shared_future/members/45133.cc \
30_threads/shared_future/members/get.cc \
30_threads/shared_future/members/get2.cc \
30_threads/shared_future/members/valid.cc \
30_threads/shared_future/members/wait.cc \
30_threads/shared_future/members/wait_for.cc \
30_threads/shared_future/members/wait_until.cc \
30_threads/this_thread/1.cc \
30_threads/this_thread/2.cc \
30_threads/this_thread/3.cc \
30_threads/this_thread/4.cc \
30_threads/thread/cons/1.cc \
30_threads/thread/cons/2.cc \
30_threads/thread/cons/3.cc \
30_threads/thread/cons/4.cc \
30_threads/thread/cons/49668.cc \
30_threads/thread/cons/5.cc \
30_threads/thread/cons/6.cc \
30_threads/thread/cons/7.cc \
30_threads/thread/cons/8.cc \
30_threads/thread/cons/9.cc \
30_threads/thread/cons/moveable.cc \
30_threads/thread/members/1.cc \
30_threads/thread/members/2.cc \
30_threads/thread/members/3.cc \
30_threads/thread/members/4.cc \
30_threads/thread/members/5.cc \
30_threads/thread/members/hardware_concurrency.cc \
30_threads/thread/swap/1.cc \
30_threads/timed_mutex/cons/1.cc \
30_threads/timed_mutex/dest/destructor_locked.cc \
30_threads/timed_mutex/lock/1.cc \
30_threads/timed_mutex/native_handle/1.cc \
30_threads/timed_mutex/native_handle/typesizes.cc \
30_threads/timed_mutex/try_lock/1.cc \
30_threads/timed_mutex/try_lock/2.cc \
30_threads/timed_mutex/try_lock_for/1.cc \
30_threads/timed_mutex/try_lock_for/2.cc \
30_threads/timed_mutex/try_lock_for/3.cc \
30_threads/timed_mutex/try_lock_until/1.cc \
30_threads/timed_mutex/try_lock_until/2.cc \
30_threads/timed_mutex/unlock/1.cc \
30_threads/try_lock/1.cc \
30_threads/try_lock/2.cc \
30_threads/try_lock/3.cc \
30_threads/try_lock/4.cc \
30_threads/unique_lock/cons/1.cc \
30_threads/unique_lock/cons/2.cc \
30_threads/unique_lock/cons/3.cc \
30_threads/unique_lock/cons/4.cc \
30_threads/unique_lock/cons/5.cc \
30_threads/unique_lock/cons/6.cc \
30_threads/unique_lock/locking/1.cc \
30_threads/unique_lock/locking/2.cc \
30_threads/unique_lock/locking/3.cc \
30_threads/unique_lock/locking/4.cc \
30_threads/unique_lock/modifiers/1.cc \
30_threads/unique_lock/modifiers/2.cc \
ext/rope/pthread7-rope.cc \
tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc \
tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc
LOCALE22FIX= \
codecvt/always_noconv/char/wrapped_locale.cc \
codecvt/always_noconv/wchar_t/2.cc \
codecvt/always_noconv/wchar_t/3.cc \
codecvt/always_noconv/wchar_t/wrapped_locale.cc \
codecvt/encoding/char/wrapped_locale.cc \
codecvt/encoding/wchar_t/2.cc \
codecvt/encoding/wchar_t/3.cc \
codecvt/encoding/wchar_t/wrapped_locale.cc \
codecvt/in/char/wrapped_locale.cc \
codecvt/in/wchar_t/2.cc \
codecvt/in/wchar_t/3.cc \
codecvt/in/wchar_t/wrapped_locale.cc \
codecvt/length/char/wrapped_locale.cc \
codecvt/length/wchar_t/2.cc \
codecvt/length/wchar_t/3.cc \
codecvt/length/wchar_t/wrapped_locale.cc \
codecvt/max_length/char/wrapped_locale.cc \
codecvt/max_length/wchar_t/2.cc \
codecvt/max_length/wchar_t/3.cc \
codecvt/max_length/wchar_t/wrapped_locale.cc \
codecvt/out/char/wrapped_locale.cc \
codecvt/out/wchar_t/2.cc \
codecvt/out/wchar_t/3.cc \
codecvt/out/wchar_t/7.cc \
codecvt/out/wchar_t/wrapped_locale.cc \
codecvt/unshift/char/wrapped_locale.cc \
codecvt/unshift/wchar_t/2.cc \
codecvt/unshift/wchar_t/3.cc \
codecvt/unshift/wchar_t/wrapped_locale.cc \
collate/compare/char/wrapped_locale.cc \
collate/compare/wchar_t/wrapped_locale.cc \
collate/hash/char/wrapped_locale.cc \
collate/hash/wchar_t/wrapped_locale.cc \
collate/transform/char/wrapped_locale.cc \
collate/transform/wchar_t/wrapped_locale.cc \
ctype/cons/char/wrapped_locale.cc \
ctype/is/char/wrapped_locale.cc \
ctype/is/wchar_t/wrapped_locale.cc \
ctype/narrow/char/wrapped_locale.cc \
ctype/narrow/wchar_t/3.cc \
ctype/narrow/wchar_t/wrapped_locale.cc \
ctype/scan/char/wrapped_locale.cc \
ctype/scan/wchar_t/wrapped_locale.cc \
ctype/to/char/wrapped_locale.cc \
ctype/to/wchar_t/wrapped_locale.cc \
ctype/widen/char/wrapped_locale.cc \
ctype/widen/wchar_t/2.cc \
ctype/widen/wchar_t/3.cc \
ctype/widen/wchar_t/wrapped_locale.cc \
facet/2.cc \
locale/cons/40184.cc \
locale/cons/5.cc \
locale/cons/unicode.cc \
locale/global_locale_objects/2.cc \
messages/members/char/wrapped_locale.cc \
money_get/get/char/16.cc \
money_get/get/char/18.cc \
money_get/get/char/2.cc \
money_get/get/char/4.cc \
money_get/get/char/wrapped_env.cc \
money_get/get/char/wrapped_locale.cc \
money_get/get/wchar_t/16.cc \
money_get/get/wchar_t/18.cc \
money_get/get/wchar_t/2.cc \
money_get/get/wchar_t/4.cc \
money_get/get/wchar_t/wrapped_env.cc \
money_get/get/wchar_t/wrapped_locale.cc \
money_put/put/char/2.cc \
money_put/put/char/wrapped_env.cc \
money_put/put/char/wrapped_locale.cc \
money_put/put/wchar_t/2.cc \
money_put/put/wchar_t/wrapped_env.cc \
money_put/put/wchar_t/wrapped_locale.cc \
moneypunct/members/char/wrapped_locale.cc \
moneypunct/members/wchar_t/wrapped_locale.cc \
num_get/get/char/3.cc \
num_get/get/char/wrapped_env.cc \
num_get/get/char/wrapped_locale.cc \
num_get/get/wchar_t/3.cc \
num_get/get/wchar_t/wrapped_env.cc \
num_get/get/wchar_t/wrapped_locale.cc \
num_put/put/char/3.cc \
num_put/put/char/wrapped_env.cc \
num_put/put/char/wrapped_locale.cc \
num_put/put/wchar_t/3.cc \
num_put/put/wchar_t/wrapped_env.cc \
num_put/put/wchar_t/wrapped_locale.cc \
numpunct/members/char/wrapped_locale.cc \
numpunct/members/wchar_t/wrapped_locale.cc \
time_get/date_order/char/wrapped_locale.cc \
time_get/date_order/wchar_t/wrapped_locale.cc \
time_get/get_date/char/2.cc \
time_get/get_date/char/wrapped_env.cc \
time_get/get_date/char/wrapped_locale.cc \
time_get/get_date/wchar_t/2.cc \
time_get/get_date/wchar_t/wrapped_env.cc \
time_get/get_date/wchar_t/wrapped_locale.cc \
time_get/get_monthname/char/2.cc \
time_get/get_monthname/char/wrapped_env.cc \
time_get/get_monthname/char/wrapped_locale.cc \
time_get/get_monthname/wchar_t/2.cc \
time_get/get_monthname/wchar_t/wrapped_env.cc \
time_get/get_monthname/wchar_t/wrapped_locale.cc \
time_get/get_time/char/2.cc \
time_get/get_time/char/wrapped_env.cc \
time_get/get_time/char/wrapped_locale.cc \
time_get/get_time/wchar_t/2.cc \
time_get/get_time/wchar_t/wrapped_env.cc \
time_get/get_time/wchar_t/wrapped_locale.cc \
time_get/get_weekday/char/2.cc \
time_get/get_weekday/char/38081-1.cc \
time_get/get_weekday/char/38081-2.cc \
time_get/get_weekday/char/wrapped_env.cc \
time_get/get_weekday/char/wrapped_locale.cc \
time_get/get_weekday/wchar_t/2.cc \
time_get/get_weekday/wchar_t/wrapped_env.cc \
time_get/get_weekday/wchar_t/wrapped_locale.cc \
time_get/get_year/char/wrapped_locale.cc \
time_get/get_year/wchar_t/wrapped_locale.cc \
time_put/put/char/3.cc \
time_put/put/char/7.cc \
time_put/put/char/wrapped_env.cc \
time_put/put/char/wrapped_locale.cc \
time_put/put/wchar_t/3.cc \
time_put/put/wchar_t/7.cc \
time_put/put/wchar_t/wrapped_env.cc \
time_put/put/wchar_t/wrapped_locale.cc
This source diff could not be displayed because it is too large. You can view the blob instead.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment