]> git.pld-linux.org Git - packages/hhvm.git/commitdiff
- save work
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 May 2010 13:09:09 +0000 (13:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cmake-missing-library.diff -> 1.1
    cmake-missing-library.patch -> 1.1
    gcc45.patch -> 1.1
    hiphop-php.spec -> 1.5

cmake-missing-library.diff [new file with mode: 0644]
cmake-missing-library.patch [new file with mode: 0644]
gcc45.patch [new file with mode: 0644]
hiphop-php.spec

diff --git a/cmake-missing-library.diff b/cmake-missing-library.diff
new file mode 100644 (file)
index 0000000..f4c04ea
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/CMake/HPHPFindLibs.cmake b/CMake/HPHPFindLibs.cmake
+index 52f0b7a..9127139 100644
+--- a/CMake/HPHPFindLibs.cmake
++++ b/CMake/HPHPFindLibs.cmake
+@@ -203,4 +203,8 @@ macro(hphp_link target)
+       target_link_libraries(${target} ${ONIG_LIB})
+       target_link_libraries(${target} ${Mcrypt_LIB})
+       target_link_libraries(${target} ${GD_LIBRARY})
++
++      target_link_libraries(${target} crypt)
++      target_link_libraries(${target} rt)
++      target_link_libraries(${target} resolv)
+ endmacro()
diff --git a/cmake-missing-library.patch b/cmake-missing-library.patch
new file mode 100644 (file)
index 0000000..58f2d46
--- /dev/null
@@ -0,0 +1,10 @@
+--- hiphop-php/CMake/HPHPFindLibs.cmake~       2010-05-16 00:08:26.000000000 +0300
++++ hiphop-php/CMake/HPHPFindLibs.cmake        2010-05-16 15:54:09.769893945 +0300
+@@ -209,4 +209,7 @@
+       target_link_libraries(${target} xhp)
+       target_link_libraries(${target} afdt)
+       target_link_libraries(${target} mbfl)
++      target_link_libraries(${target} crypt)
++      target_link_libraries(${target} rt)
++      target_link_libraries(${target} resolv)
+ endmacro()
diff --git a/gcc45.patch b/gcc45.patch
new file mode 100644 (file)
index 0000000..703935b
--- /dev/null
@@ -0,0 +1,38 @@
+--- hiphop-php/src/cpp/ext/ext_class.cpp~      2010-05-16 15:37:59.000000000 +0300
++++ hiphop-php/src/cpp/ext/ext_class.cpp       2010-05-16 15:38:01.043525285 +0300
+@@ -41,13 +41,13 @@
+ }
+ bool f_class_exists(CStrRef class_name, bool autoload /* = false */) {
+-  const ClassInfo::ClassInfo *info =
++  const ClassInfo *info =
+     ClassInfo::FindClass(class_name.data());
+   return info && info->isDeclared();
+ }
+ bool f_interface_exists(CStrRef interface_name, bool autoload /* = false */) {
+-  const ClassInfo::ClassInfo *info =
++  const ClassInfo *info =
+     ClassInfo::FindInterface(interface_name.data());
+   return info && info->isDeclared();
+ }
+--- hiphop-php/src/cpp/ext/ext_misc.cpp~       2010-05-16 15:39:59.000000000 +0300
++++ hiphop-php/src/cpp/ext/ext_misc.cpp        2010-05-16 15:40:03.153302857 +0300
+@@ -76,7 +76,7 @@
+       }
+     }
+     if (f_class_exists(className)) { // taking care of volatile class
+-      const ClassInfo::ClassInfo *info;
++      const ClassInfo *info;
+       for (const char *parentClass = className.data(); parentClass;
+            parentClass = info->getParentClass()) {
+         info = ClassInfo::FindClass(parentClass);
+@@ -134,7 +134,7 @@
+       }
+     }
+     if (f_class_exists(className)) { // taking care of volatile class
+-      const ClassInfo::ClassInfo *info;
++      const ClassInfo *info;
+       for (const char *parentClass = className.data();
+            parentClass && *parentClass;
+            parentClass = info->getParentClass()) {
index e511e0d86e79f49cd39fe89750d3339d2b11d012..b28d31ac490bda560efe9f0905d748692210cdfd 100644 (file)
@@ -1,5 +1,12 @@
 # TODO
-# - offline build (without git)
+# - system libmbfl, system xhp, sqlite3
+# - there should be a bit more packaged into files
+# - build fail:
+#Linking CXX executable hphp
+#Building hphpi
+#Exception: ParseError: [<string>:1] Unable to parse line hphpi_build.hdf
+#make[2]: *** [src/hphp/hphp] Error 255
+#make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
 Summary:       HipHop for PHP transforms PHP source code into highly optimized C++
 Name:          hiphop-php
 Version:       0.1
@@ -7,23 +14,26 @@ Release:     0.1
 License:       PHP 3.01
 Group:         Development/Languages
 # git clone git://github.com/facebook/hiphop-php.git
-# tar -cjf hiphop-php.tar.bz2 hiphop-php
+# rm -rf hiphop-php/src/third_party/libmbfl
+# tar --exclude-vcs -cjf hiphop-php.tar.bz2 hiphop-php
 Source0:       %{name}.tar.bz2
 # Source0-md5: fbeaba0785d6ae3a6f513576867fb5a6
+Patch0:                cmake-missing-library.patch
+Patch1:                system-libmbfl.patch
+Patch2:                gcc45.patch
 URL:           http://wiki.github.com/facebook/hiphop-php/
 BuildRequires: binutils-devel
-BuildRequires: bison
+BuildRequires: bison >= 2.3
 BuildRequires: boost-devel >= 1.37
 BuildRequires: cmake >= 2.6.4
 BuildRequires: curl-devel >= 7.20.1-2
 BuildRequires: expat-devel
-BuildRequires: flex
+BuildRequires: flex >= 2.5.35
 BuildRequires: gd-devel
-BuildRequires: git-core
 BuildRequires: libcap-devel
 BuildRequires: libevent-devel >= 1.4.13-2
 BuildRequires: libicu-devel >= 4.2
-#BuildRequires:        libmbfl-devel
+BuildRequires: libmbfl-devel
 BuildRequires: libmcrypt
 BuildRequires: libstdc++-devel >= 6:4.1
 BuildRequires: libxml2-devel
@@ -53,25 +63,34 @@ Discussion Group.
 
 %prep
 %setup -qn %{name}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%{__sed} -i -e 's,/usr/local/bin/php,/usr/bin/php,g' src/crutch.php
 
 %build
 export HPHP_HOME=$(pwd)
 export HPHP_LIB=$HPHP_HOME/bin
 
-git submodule init
-git submodule update
-
-%cmake .
+%cmake . \
+       -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
+       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%if "%{_lib}" == "lib64"
+       -DLIB_SUFFIX=64
+%endif
 %{__make}
 
-%{__sed} -i -e 's,/usr/local/bin/php,/usr/bin/php,g' src/crutch.php
-
 %install
 rm -rf $RPM_BUILD_ROOT
-cd $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%{_includedir}/afdt.h
+%{_libdir}/libafdt.a
+%{_libdir}/libxhp.a
This page took 0.078154 seconds and 4 git commands to generate.