SHARE
TWEET

Untitled

a guest Dec 18th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SUMMARY="Database server that makes tables"
  2. DESCRIPTION="SQL database server."
  3. HOMEPAGE="http://www.mysql.com"
  4. COPYRIGHT="2000, 2012, Oracle and/or its affiliates. All rights reserved."
  5. LICENSE="GNU GPL v2"
  6. REVISION="1"
  7. SOURCE_URI="https://github.com/mysql/mysql-server/archive/mysql-5.7.17.tar.gz"
  8. CHECKSUM_SHA256="790aef3355091948fdca51acff6140fb9280ebcb25b77affccca00a99464ed0b"
  9. DEPEND="sys-libs/readline >= 5.2"
  10. SOURCE_DIR="mysql-server-mysql-5.7.17"
  11. #PATCHES="mysql-${portVersion}.patch"
  12.  
  13. ARCHITECTURES="x86_gcc2 x86 x86_64"
  14. SECONDARY_ARCHITECTURES="x86_gcc2 x86"
  15.  
  16. PROVIDES="
  17.     mysql${secondaryArchSuffix} = $portVersion
  18.     "
  19. REQUIRES="
  20.     haiku${secondaryArchSuffix}
  21.     "
  22.  
  23. PROVIDES_devel="
  24.     mysql${secondaryArchSuffix}_devel = $portVersion
  25.     "
  26. REQUIRES_devel="
  27.     mysql$secondaryArchSuffix == $portVersion base
  28.     "
  29.  
  30. BUILD_REQUIRES="
  31.     "
  32. BUILD_PREREQUIRES="
  33.     haiku${secondaryArchSuffix}_devel
  34.     cmd:aclocal
  35.     cmd:autoconf
  36.     cmd:gcc$secondaryArchSuffix
  37.     cmd:ld$secondaryArchSuffix
  38.     cmd:libtool
  39.     cmd:make
  40.     "
  41.  
  42. BUILD()
  43. {
  44.     libtoolize --force --install --copy
  45.     aclocal
  46.     autoconf
  47.     runConfigure ./configure
  48.     make $jobArgs
  49. }
  50.  
  51. INSTALL()
  52. {
  53.     make install
  54. }
  55.  
  56.  
  57.  
  58.  
  59. diff -Naur mysql-5.7.17/configure.in mysql-5.7.17-haiku/configure.in
  60. --- mysql-5.7.17/configure.in   2009-05-29 18:15:45.000000000 +0000
  61. +++ mysql-5.7.17-haiku/configure.in 2012-12-04 18:14:48.000000000 +0000
  62. @@ -884,7 +884,8 @@
  63.    AC_CHECK_LIB(nsl, gethostbyname_r))
  64.  AC_CHECK_FUNC(gethostbyname_r)
  65.  
  66. -AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
  67. +AC_SEARCH_LIBS(socket, [socket network])
  68. +AC_SEARCH_LIBS(setsockopt,[socket network])
  69.  AC_CHECK_FUNC(yp_get_default_domain, ,
  70.    AC_CHECK_LIB(nsl, yp_get_default_domain))
  71.  AC_CHECK_FUNC(p2open, , AC_CHECK_LIB(gen, p2open))
  72. @@ -893,7 +894,7 @@
  73.  # Check if crypt() exists in libc or libcrypt, sets LIBS if needed
  74.  AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
  75.  # See if we need a library for address lookup.
  76. -AC_SEARCH_LIBS(inet_aton, [socket nsl resolv])
  77. +AC_SEARCH_LIBS(inet_aton, [socket nsl resolv network])
  78.  
  79.  # For the sched_yield() function on Solaris
  80.  AC_CHECK_FUNC(sched_yield, , AC_CHECK_LIB(posix4, sched_yield))
  81. @@ -1939,6 +1940,13 @@
  82.  MYSQL_CHECK_TIME_T
  83.  
  84.  
  85. +
  86. +AC_CHECK_MEMBERS([struct rusage.ru_maxrss, struct rusage.ru_idrss, struct rusage.ru_minflt, struct rusage.ru_majflt,
  87. +struct rusage.ru_nswap, struct rusage.ru_inblock, struct rusage.ru_oublock, struct rusage.ru_msgsnd, struct rusage.ru_msgrcv,
  88. +struct rusage.ru_nsignals, struct rusage.ru_nvcsw, struct rusage.ru_nivcsw ],[AC_DEFINE([ADDITIONAL_RUSAGE_MEMBERS],[1],[
  89. +Define 1 if structure have this members])],,)
  90. +
  91. +
  92.  # do we need #pragma interface/#pragma implementation ?
  93.  # yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
  94.  AC_MSG_CHECKING(the need for @%:@pragma interface/implementation)
  95. diff -Naur mysql-5.7.17/dbug/dbug_analyze.c mysql-5.7.17-haiku/dbug/dbug_analyze.c
  96. --- mysql-5.7.17/dbug/dbug_analyze.c    2009-05-29 18:15:46.000000000 +0000
  97. +++ mysql-5.7.17-haiku/dbug/dbug_analyze.c  2012-12-02 12:17:35.000000000 +0000
  98. @@ -100,13 +100,13 @@
  99.     while(0)
  100.  
  101.  
  102. -struct stack_t {
  103. +struct my_stack_t {
  104.      unsigned int pos;          /* which function? */
  105.      unsigned long time;            /* Time that this was entered */
  106.      unsigned long children;        /* Time spent in called funcs */
  107.  };
  108.  
  109. -static struct stack_t fn_stack[STACKSIZ+1];
  110. +static struct my_stack_t fn_stack[STACKSIZ+1];
  111.  
  112.  static unsigned int stacktop = 0;  /* Lowest stack position is a dummy */
  113.  
  114. @@ -130,7 +130,7 @@
  115.  register unsigned int name_pos;
  116.  register unsigned long time_entered;
  117.  {
  118. -    register struct stack_t *t;
  119. +    register struct my_stack_t *t;
  120.  
  121.      DBUG_ENTER("push");
  122.      if (++stacktop > STACKSIZ) {
  123. @@ -157,7 +157,7 @@
  124.  register unsigned long *time_entered;
  125.  register unsigned long *child_time;
  126.  {
  127. -    register struct stack_t *temp;
  128. +    register struct my_stack_t *temp;
  129.      register unsigned int rtnval;
  130.  
  131.      DBUG_ENTER ("pop");
  132. @@ -313,7 +313,7 @@
  133.    unsigned int oldpos;
  134.    unsigned long oldtime;
  135.    unsigned long oldchild;
  136. -  struct stack_t *t;
  137. +  struct my_stack_t *t;
  138.  
  139.    DBUG_ENTER ("process");
  140.    while (fgets (buf,BUFSIZ,inf) != NULL) {
  141. diff -Naur mysql-5.7.17/mysys/my_init.c mysql-5.7.17-haiku/mysys/my_init.c
  142. --- mysql-5.7.17/mysys/my_init.c    2009-05-29 18:18:19.000000000 +0000
  143. +++ mysql-5.7.17-haiku/mysys/my_init.c  2012-12-04 18:16:27.368050176 +0000
  144. @@ -162,6 +162,7 @@
  145.      /* Purify assumes that rus is uninitialized after getrusage call */
  146.      bzero((char*) &rus, sizeof(rus));
  147.  #endif
  148. +#ifdef ADDITIONAL_RUSAGE_MEMBERS
  149.      if (!getrusage(RUSAGE_SELF, &rus))
  150.        fprintf(info_file,"\n\
  151.  User time %.2f, System time %.2f\n\
  152. @@ -179,6 +180,7 @@
  153.           rus.ru_msgsnd, rus.ru_msgrcv, rus.ru_nsignals,
  154.           rus.ru_nvcsw, rus.ru_nivcsw);
  155.  #endif
  156. +#endif
  157.  #if ( defined(MSDOS) || defined(__NETWARE__) ) && !defined(__WIN__)
  158.      fprintf(info_file,"\nRun time: %.1f\n",(double) clock()/CLOCKS_PER_SEC);
  159.  #endif
  160.  
  161.  
  162.  
  163.  
  164. ERROR without patch included
  165.  
  166. waiting for build package mysql-5.7.17-1 to be activated
  167. waiting for build package mysql_devel-5.7.17-1 to be activated
  168. Building ...
  169. aclocal: error: 'configure.ac' is required
  170. Command '['bash', '-c', '. /wrapper-script']' returned non-zero exit status 1
  171. keeping chroot folder /boot/home/haikuports/dev-db/mysql/work-5.7.17 intact for inspection
  172. Error: Build has failed - stopping.
  173.  
  174.  
  175. with patch
  176.  
  177.  
  178. Skipping unpack of mysql-5.7.17.tar.gz
  179. HEAD is now at 91638ca import
  180. Applying patch "/boot/home/haikuports/dev-db/mysql/patches/mysql-5.7.17.patch" ...
  181. /boot/home/haikuports/dev-db/mysql/patches/mysql-5.7.17.patch:28: trailing whitespace.
  182. AC_CHECK_MEMBERS([struct rusage.ru_maxrss, struct rusage.ru_idrss, struct rusage.ru_minflt, struct rusage.ru_majflt,
  183. /boot/home/haikuports/dev-db/mysql/patches/mysql-5.7.17.patch:29: trailing whitespace.
  184. struct rusage.ru_nswap, struct rusage.ru_inblock, struct rusage.ru_oublock, struct rusage.ru_msgsnd, struct rusage.ru_msgrcv,
  185. error: configure.in: does not exist in index
  186. error: patch failed: dbug/dbug_analyze.c:130
  187. error: dbug/dbug_analyze.c: patch does not apply
  188. error: patch failed: mysys/my_init.c:162
  189. error: mysys/my_init.c: patch does not apply
  190. Command '['git', 'apply', '--ignore-whitespace', '-p1', '--index', u'/boot/home/haikuports/dev-db/mysql/patches/mysql-5.7.17.patch']' returned non-zero exit status 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top