FreeBSD Bugzilla – Attachment 229862 Details for
Bug 260190
finance/chiapos: Update to 1.0.7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to bring finance/chiapos to 1.0.6
chiapos-1.0.6.diff (text/plain), 7.39 KB, created by
risner
on 2021-12-03 17:14:06 UTC
(
hide
)
Description:
patch to bring finance/chiapos to 1.0.6
Filename:
MIME Type:
Creator:
risner
Created:
2021-12-03 17:14:06 UTC
Size:
7.39 KB
patch
obsolete
>diff -ruN chiapos.old/Makefile chiapos/Makefile >--- chiapos.old/Makefile 2021-12-03 11:38:37.196642000 -0500 >+++ chiapos/Makefile 2021-12-03 11:04:08.355786000 -0500 >@@ -1,5 +1,5 @@ > PORTNAME= chiapos >-DISTVERSION= 1.0.3 >+DISTVERSION= 1.0.6 > CATEGORIES= finance > MASTER_SITES= CHEESESHOP > DISTFILES= ${DISTNAME}${EXTRACT_SUFX} >@@ -30,8 +30,6 @@ > > post-extract: > # This example is experimental, currently broken (upstream) and unnecessary. >-# The placeholder Makefile is for when/if they release a future fixed version. >- @${CP} ${FILESDIR}/Hellman-Makefile ${WRKSRC}/hellman_example/Makefile > # Remove extraneous unused files to prevent confusion > @${RM} ${WRKSRC}/lib/FiniteStateEntropy/fetch-content-CMakeLists.txt > @${RM} ${WRKSRC}/pyproject.toml >diff -ruN chiapos.old/distinfo chiapos/distinfo >--- chiapos.old/distinfo 2021-12-03 11:37:20.807631000 -0500 >+++ chiapos/distinfo 2021-12-03 09:01:13.540519000 -0500 >@@ -1,6 +1,6 @@ >-TIMESTAMP = 1623067298 >-SHA256 (chiapos-1.0.3.tar.gz) = d987b481a3acbff1e0d77eb713af8d99ecec2bd11c2c465528a5078a433686bd >-SIZE (chiapos-1.0.3.tar.gz) = 1291513 >+TIMESTAMP = 1638540073 >+SHA256 (chiapos-1.0.6.tar.gz) = 661e4050b3e06c6d2860f70164ca7fbe6f7830fc9f76d627e0fe55fb52de32a0 >+SIZE (chiapos-1.0.6.tar.gz) = 1293169 > SHA256 (jarro2783-cxxopts-302302b30839505703d37fb82f536c53cf9172fa_GH0.tar.gz) = 74e21646f3278243c9466665794d45410e63453ab7f3652acdae1d62efc4b21d > SIZE (jarro2783-cxxopts-302302b30839505703d37fb82f536c53cf9172fa_GH0.tar.gz) = 89640 > SHA256 (gulrak-filesystem-4e21ab305794f5309a1454b4ae82ab9a0f5e0d25_GH0.tar.gz) = fef3e809d584b77fd3ec677bd0d40cbe6737bbb3dbb1570fe1b2025262ea82c2 >diff -ruN chiapos.old/files/Hellman-Makefile chiapos/files/Hellman-Makefile >--- chiapos.old/files/Hellman-Makefile 2021-12-03 11:41:02.309169000 -0500 >+++ chiapos/files/Hellman-Makefile 1969-12-31 19:00:00.000000000 -0500 >@@ -1,14 +0,0 @@ >-all: HellmanAttacks >- >-OBJ = aes.o bits.o calculate_bucket.o cxxopts.o encoding.o hellman.o picosha2.o plotter_disk.o pos_constants.o prover_disk.o sort_on_disk.o util.o verifier.o >- >-.SUFFIXES:.hpp .o >- >-.hpp.o: >- $(CC) -c $(CXXFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@ >- >-HellmanAttacks: ${OBJ} >- ${CC} -o HellmanAttacks ${OBJ} >- >-clean: >- rm -f HellmanAttacks ${OBJ} >diff -ruN chiapos.old/files/patch-CMakeLists.txt chiapos/files/patch-CMakeLists.txt >--- chiapos.old/files/patch-CMakeLists.txt 2021-12-03 11:41:15.351870000 -0500 >+++ chiapos/files/patch-CMakeLists.txt 2021-12-03 11:22:11.752429000 -0500 >@@ -1,17 +1,21 @@ >---- CMakeLists.txt.orig 2021-05-28 02:40:44 UTC >+--- CMakeLists.txt.orig 2021-10-28 19:29:17 UTC > +++ CMakeLists.txt >-@@ -14,29 +14,7 @@ endif() >+@@ -14,33 +14,7 @@ endif() > project(chiapos C CXX ASM) > > # CMake 3.14+ > -include(FetchContent) > >+-if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") >+-include(${CMAKE_INSTALL_PREFIX}/share/cmake/pybind11/pybind11Config.cmake) >+-else() > -FetchContent_Declare( > - pybind11-src > - GIT_REPOSITORY https://github.com/pybind/pybind11.git >-- GIT_TAG v2.6.2 >+- GIT_TAG v2.7.1 > -) > -FetchContent_MakeAvailable(pybind11-src) >+-endif() > - > -FetchContent_Declare( > - cxxopts >@@ -30,7 +34,7 @@ > set(FSE_LIB ${CMAKE_CURRENT_SOURCE_DIR}/lib/FiniteStateEntropy/lib) > set(FSE_FILES > ${FSE_LIB}/fse_compress.c >-@@ -48,8 +26,8 @@ set(FSE_FILES >+@@ -52,8 +26,8 @@ set(FSE_FILES > include_directories( > ${INCLUDE_DIRECTORIES} > ${CMAKE_CURRENT_SOURCE_DIR}/../lib/include >@@ -41,7 +45,7 @@ > ${CMAKE_CURRENT_SOURCE_DIR}/../lib/FiniteStateEntropy/lib > ${CMAKE_CURRENT_SOURCE_DIR}/src > ${CMAKE_CURRENT_SOURCE_DIR}/test >-@@ -130,8 +108,6 @@ set(BLAKE3_SRC >+@@ -134,8 +108,6 @@ set(BLAKE3_SRC > ) > ENDIF() > >@@ -50,7 +54,7 @@ > add_executable(ProofOfSpace > src/cli.cpp > src/chacha8.c >-@@ -145,33 +121,30 @@ add_executable(RunTests >+@@ -155,13 +127,15 @@ add_executable(RunTests > ${BLAKE3_SRC} > ) > >@@ -67,23 +71,11 @@ > target_compile_features(RunTests PUBLIC cxx_std_17) > > if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") >-- target_link_libraries(chiapos PRIVATE fse Threads::Threads) >+@@ -173,7 +147,6 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") > target_link_libraries(ProofOfSpace fse Threads::Threads) > target_link_libraries(RunTests fse Threads::Threads) >- elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") >-- target_link_libraries(chiapos PRIVATE fse Threads::Threads) >- target_link_libraries(ProofOfSpace fse Threads::Threads) >- target_link_libraries(RunTests fse Threads::Threads) > elseif (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") > - target_link_libraries(chiapos PRIVATE fse Threads::Threads) > target_link_libraries(ProofOfSpace fse Threads::Threads) > target_link_libraries(RunTests fse Threads::Threads) > elseif (MSVC) >-- target_link_libraries(chiapos PRIVATE fse Threads::Threads uint128) >- target_link_libraries(ProofOfSpace fse Threads::Threads uint128) >- target_link_libraries(RunTests fse Threads::Threads uint128) >- else() >-- target_link_libraries(chiapos PRIVATE fse stdc++fs Threads::Threads) >- target_link_libraries(ProofOfSpace fse stdc++fs Threads::Threads) >- target_link_libraries(RunTests fse stdc++fs Threads::Threads) >- endif() >diff -ruN chiapos.old/files/patch-setup.py chiapos/files/patch-setup.py >--- chiapos.old/files/patch-setup.py 2021-12-03 11:41:26.616791000 -0500 >+++ chiapos/files/patch-setup.py 2021-12-03 12:03:43.795481000 -0500 >@@ -1,5 +1,19 @@ >---- setup.py.orig 2021-05-28 02:40:44 UTC >+--- setup.py.orig 2021-10-28 19:29:17 UTC > +++ setup.py >+@@ -9,13 +9,6 @@ from setuptools import setup, setuptools, Extension >+ from setuptools.command.build_ext import build_ext >+ from distutils.version import LooseVersion >+ >+- >+-class CMakeExtension(Extension): >+- def __init__(self, name, sourcedir=""): >+- Extension.__init__(self, name, sources=["./"]) >+- self.sourcedir = os.path.abspath(sourcedir) >+- >+- >+ class CMakeBuild(build_ext): >+ def run(self): >+ try: > @@ -107,9 +100,6 @@ ext_modules = [ > "src/chacha8.c", > ], >@@ -10,21 +24,20 @@ > "src", > "uint128_t", > ".", >-@@ -202,6 +192,7 @@ if platform.system() == "Windows": >+@@ -203,6 +193,7 @@ if platform.system() == "Windows": > else: > setup( > name="chiapos", >-+ version="1.0.3", >++ version="1.0.6", > author="Mariano Sorgente", > author_email="mariano@chia.net", > description="Chia proof of space plotting, proving, and verifying (wraps C++)", >-@@ -209,8 +200,7 @@ else: >- python_requires=">=3.7", >+@@ -211,8 +202,6 @@ else: > long_description=open("README.md").read(), > long_description_content_type="text/markdown", >-- url="https://github.com/Chia-Network/chiavdf", >+ url="https://github.com/Chia-Network/chiapos", >+- tests_require=["pytest"], > - ext_modules=[CMakeExtension("chiapos", ".")], >-+ url="https://github.com/Chia-Network/chiapos", > cmdclass=dict(build_ext=CMakeBuild), > zip_safe=False, > ) >diff -ruN chiapos.old/pkg-descr chiapos/pkg-descr >--- chiapos.old/pkg-descr 2021-12-03 11:36:31.783071000 -0500 >+++ chiapos/pkg-descr 2021-12-03 08:50:56.803354000 -0500 >@@ -3,7 +3,8 @@ > Space document to learn about what proof of space is and how it works. > > Notes: >-i386 is not supported, and would be too slow for practical use if supported. >+Any ghc references are not Haskell related, rather a developer initials. >+The HellmanAttacks example is experimental and incomplete upstream. > > This port is for the cmake build (binaries). >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260190
:
229862
|
229870
|
229871
|
229930