components/python/python34/patches/00-dtrace.patch
changeset 5229 b7b91ddbbdce
parent 3869 eb4c6284602f
child 7095 6469e6424607
equal deleted inserted replaced
5228:b457e3bd2acc 5229:b7b91ddbbdce
  1011 +if __name__ == '__main__':
  1011 +if __name__ == '__main__':
  1012 +    test_main()
  1012 +    test_main()
  1013 +
  1013 +
  1014 --- Python-3.4.3/Lib/test/test_sys.py.~1~	2015-02-25 03:27:45.000000000 -0800
  1014 --- Python-3.4.3/Lib/test/test_sys.py.~1~	2015-02-25 03:27:45.000000000 -0800
  1015 +++ Python-3.4.3/Lib/test/test_sys.py	2015-02-25 07:32:22.294936251 -0800
  1015 +++ Python-3.4.3/Lib/test/test_sys.py	2015-02-25 07:32:22.294936251 -0800
  1016 @@ -761,6 +761,7 @@
  1016 @@ -762,6 +762,7 @@
  1017          self.assertEqual(sys.getsizeof(True, -1), size('') + self.longdigit)
  1017          self.assertEqual(sys.getsizeof(True, -1), size('') + self.longdigit)
  1018  
  1018  
  1019      def test_objecttypes(self):
  1019      def test_objecttypes(self):
  1020 +        import dtrace
  1020 +        import dtrace
  1021          # check all types defined in Objects/
  1021          # check all types defined in Objects/
  1022          size = test.support.calcobjsize
  1022          size = test.support.calcobjsize
  1023          vsize = test.support.calcvobjsize
  1023          vsize = test.support.calcvobjsize
  1024 @@ -786,13 +787,17 @@
  1024 @@ -790,13 +791,17 @@
  1025              return inner
  1025              return inner
  1026          check(get_cell().__closure__[0], size('P'))
  1026          check(get_cell().__closure__[0], size('P'))
  1027          # code
  1027          # code
  1028 -        check(get_cell().__code__, size('5i9Pi3P'))
  1028 -        check(get_cell().__code__, size('5i9Pi3P'))
  1029 -        check(get_cell.__code__, size('5i9Pi3P'))
  1029 -        check(get_cell.__code__, size('5i9Pi3P'))
  1143 +	fi;
  1143 +	fi;
  1144 +
  1144 +
  1145  ############################################################################
  1145  ############################################################################
  1146  # Header files
  1146  # Header files
  1147  
  1147  
  1148 @@ -1535,6 +1587,11 @@
  1148 @@ -1534,6 +1586,11 @@
  1149  	find build -name '*.py[co]' -exec rm -f {} ';' || true
  1149  	find build -name '*.py[co]' -exec rm -f {} ';' || true
  1150  	-rm -f pybuilddir.txt
  1150  	-rm -f pybuilddir.txt
  1151  	-rm -f Lib/lib2to3/*Grammar*.pickle
  1151  	-rm -f Lib/lib2to3/*Grammar*.pickle
  1152 +	rm -f Include/pydtrace.h
  1152 +	rm -f Include/pydtrace.h
  1153 +	rm -f Include/pydtrace_offsets Include/pydtrace_offsets.h
  1153 +	rm -f Include/pydtrace_offsets Include/pydtrace_offsets.h
  1155 +	rm -f Modules/gcmodule.o.ts_dtrace
  1155 +	rm -f Modules/gcmodule.o.ts_dtrace
  1156 +	rm -f Objects/typeobject.o.ts_dtrace
  1156 +	rm -f Objects/typeobject.o.ts_dtrace
  1157  	-rm -f Modules/_testembed Modules/_freeze_importlib
  1157  	-rm -f Modules/_testembed Modules/_freeze_importlib
  1158  
  1158  
  1159  profile-removal:
  1159  profile-removal:
  1160 @@ -1566,6 +1623,11 @@
  1160 @@ -1565,6 +1622,11 @@
  1161  				     -o -name '*.orig' -o -name '*.rej' \
  1161  				     -o -name '*.orig' -o -name '*.rej' \
  1162  				     -o -name '*.bak' ')' \
  1162  				     -o -name '*.bak' ')' \
  1163  				     -exec rm -f {} ';'
  1163  				     -exec rm -f {} ';'
  1164 +	rm -f Include/pydtrace.h
  1164 +	rm -f Include/pydtrace.h
  1165 +	rm -f Include/pydtrace_offsets Include/pydtrace_offsets.h
  1165 +	rm -f Include/pydtrace_offsets Include/pydtrace_offsets.h
  1752 +DFLAGS
  1752 +DFLAGS
  1753 +DTRACE
  1753 +DTRACE
  1754  THREADOBJ
  1754  THREADOBJ
  1755  LDLAST
  1755  LDLAST
  1756  USE_THREAD_MODULE
  1756  USE_THREAD_MODULE
  1757 @@ -814,6 +819,7 @@
  1757 @@ -815,6 +820,7 @@
  1758  with_tsc
  1758  with_tsc
  1759  with_pymalloc
  1759  with_pymalloc
  1760  with_valgrind
  1760  with_valgrind
  1761 +with_dtrace
  1761 +with_dtrace
  1762  with_fpectl
  1762  with_fpectl
  1763  with_libm
  1763  with_libm
  1764  with_libc
  1764  with_libc
  1765 @@ -1500,6 +1506,7 @@
  1765 @@ -1501,6 +1507,7 @@
  1766    --with(out)-tsc         enable/disable timestamp counter profile
  1766    --with(out)-tsc         enable/disable timestamp counter profile
  1767    --with(out)-pymalloc    disable/enable specialized mallocs
  1767    --with(out)-pymalloc    disable/enable specialized mallocs
  1768    --with-valgrind         Enable Valgrind support
  1768    --with-valgrind         Enable Valgrind support
  1769 +  --with(out)-dtrace      disable/enable dtrace support
  1769 +  --with(out)-dtrace      disable/enable dtrace support
  1770    --with-fpectl           enable SIGFPE catching
  1770    --with-fpectl           enable SIGFPE catching
  1771    --with-libm=STRING      math library
  1771    --with-libm=STRING      math library
  1772    --with-libc=STRING      C library
  1772    --with-libc=STRING      C library
  1773 @@ -10460,6 +10467,174 @@
  1773 @@ -10468,6 +10475,174 @@
  1774      OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
  1774      OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
  1775  fi
  1775  fi
  1776  
  1776  
  1777 +# Check for dtrace support
  1777 +# Check for dtrace support
  1778 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
  1778 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
  1945  # -I${DLINCLDIR} is added to the compile rule for importdl.o
  1945  # -I${DLINCLDIR} is added to the compile rule for importdl.o
  1946  
  1946  
  1947  DLINCLDIR=.
  1947  DLINCLDIR=.
  1948 --- Python-3.4.3/configure.ac.~1~	2015-02-25 03:27:46.000000000 -0800
  1948 --- Python-3.4.3/configure.ac.~1~	2015-02-25 03:27:46.000000000 -0800
  1949 +++ Python-3.4.3/configure.ac	2015-02-25 07:45:54.186719967 -0800
  1949 +++ Python-3.4.3/configure.ac	2015-02-25 07:45:54.186719967 -0800
  1950 @@ -2877,6 +2877,62 @@
  1950 @@ -2884,6 +2884,62 @@
  1951      OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
  1951      OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
  1952  fi
  1952  fi
  1953  
  1953  
  1954 +# Check for dtrace support
  1954 +# Check for dtrace support
  1955 +AC_MSG_CHECKING(for --with-dtrace)
  1955 +AC_MSG_CHECKING(for --with-dtrace)