Guest User

Untitled

a guest
Aug 15th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.11 KB | Software | 0 0
  1. Pkgfile:
  2. # Description: LibXISF is C++ library that can read and write XISF files produced by PixInsight. It implement XISF 1.0 specification.
  3. # URL: https://gitea.nouspiro.space/nou/libXISF
  4. # Maintainer: Andrey Orlov
  5. # Depends on: lz4 zlib
  6.  
  7. name=libxisf
  8. version=0.2.9
  9. release=1
  10. source=(https://gitea.nouspiro.space/nou/libXISF/archive/v$version.tar.gz)
  11.  
  12. build() {
  13. cd $name
  14. cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
  15. cmake --build build --parallel
  16. cmake -DCMAKE_INSTALL_PREFIX=/usr . && make install
  17. }
  18.  
  19. Build log:
  20. # pkgmk
  21. =======> WARNING: Signature file not found, falling back to old md5sum checking.
  22. =======> Building '/home/andrey/libxisf/libxisf#0.2.9-1.pkg.tar.gz'.
  23. bsdtar -p -o -C /home/andrey/libxisf/work/src -xf /home/andrey/libxisf/v0.2.9.tar.gz
  24. + build
  25. + cd libxisf
  26. + cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
  27. -- The CXX compiler identification is GNU 12.4.0
  28. -- The C compiler identification is GNU 12.4.0
  29. -- Detecting CXX compiler ABI info
  30. -- Detecting CXX compiler ABI info - done
  31. -- Check for working CXX compiler: /usr/bin/c++ - skipped
  32. -- Detecting CXX compile features
  33. -- Detecting CXX compile features - done
  34. -- Detecting C compiler ABI info
  35. -- Detecting C compiler ABI info - done
  36. -- Check for working C compiler: /usr/bin/cc - skipped
  37. -- Detecting C compile features
  38. -- Detecting C compile features - done
  39. -- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0")
  40. -- Checking for module 'libzstd'
  41. -- Found libzstd, version 1.5.6
  42. -- Configuring done (0.3s)
  43. -- Generating done (0.0s)
  44. -- Build files have been written to: /home/andrey/libxisf/work/src/libxisf/build
  45. + cmake --build build --parallel
  46. [ 3%] Building CXX object CMakeFiles/XISF.dir/libxisf.cpp.o
  47. [ 7%] Building CXX object CMakeFiles/XISF.dir/bytearray.cpp.o
  48. [ 11%] Building CXX object CMakeFiles/XISF.dir/streambuffer.cpp.o
  49. [ 14%] Building CXX object CMakeFiles/XISF.dir/utils.cpp.o
  50. [ 18%] Building CXX object CMakeFiles/XISF.dir/variant.cpp.o
  51. [ 22%] Building C object CMakeFiles/XISF.dir/lz4/lz4.c.o
  52. [ 25%] Building C object CMakeFiles/XISF.dir/lz4/lz4hc.c.o
  53. [ 29%] Building CXX object CMakeFiles/XISF.dir/pugixml/pugixml.cpp.o
  54. [ 33%] Building C object CMakeFiles/XISF.dir/zlib/adler32.c.o
  55. [ 37%] Building C object CMakeFiles/XISF.dir/zlib/compress.c.o
  56. [ 40%] Building C object CMakeFiles/XISF.dir/zlib/crc32.c.o
  57. [ 44%] Building C object CMakeFiles/XISF.dir/zlib/deflate.c.o
  58. [ 48%] Building C object CMakeFiles/XISF.dir/zlib/gzclose.c.o
  59. [ 51%] Building C object CMakeFiles/XISF.dir/zlib/gzlib.c.o
  60. [ 55%] Building C object CMakeFiles/XISF.dir/zlib/gzread.c.o
  61. [ 59%] Building C object CMakeFiles/XISF.dir/zlib/gzwrite.c.o
  62. [ 62%] Building C object CMakeFiles/XISF.dir/zlib/inflate.c.o
  63. [ 66%] Building C object CMakeFiles/XISF.dir/zlib/infback.c.o
  64. /home/andrey/libxisf/work/src/libxisf/zlib/gzlib.c: In function 'gz_open':
  65. /home/andrey/libxisf/work/src/libxisf/zlib/gzlib.c:14:17: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration]
  66. 14 | # define LSEEK lseek
  67. | ^~~~~
  68. /home/andrey/libxisf/work/src/libxisf/zlib/gzlib.c:254:9: note: in expansion of macro 'LSEEK'
  69. 254 | LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
  70. | ^~~~~
  71. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c: In function 'gz_load':
  72. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c:35:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
  73. 35 | ret = read(state->fd, buf + *have, get);
  74. | ^~~~
  75. | fread
  76. [ 70%] Building C object CMakeFiles/XISF.dir/zlib/inftrees.c.o
  77. [ 74%] Building C object CMakeFiles/XISF.dir/zlib/inffast.c.o
  78. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c: In function 'gzclose_r':
  79. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c:647:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  80. 647 | ret = close(state->fd);
  81. | ^~~~~
  82. | pclose
  83. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c: In function 'gz_comp':
  84. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c:89:20: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  85. 89 | writ = write(state->fd, strm->next_in, put);
  86. | ^~~~~
  87. | fwrite
  88. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c: In function 'gzclose_w':
  89. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c:673:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  90. 673 | if (close(state->fd) == -1)
  91. | ^~~~~
  92. | pclose
  93. [ 77%] Building C object CMakeFiles/XISF.dir/zlib/trees.c.o
  94. [ 81%] Building C object CMakeFiles/XISF.dir/zlib/uncompr.c.o
  95. [ 85%] Building C object CMakeFiles/XISF.dir/zlib/zutil.c.o
  96. [ 88%] Linking CXX shared library libXISF.so
  97. [ 88%] Built target XISF
  98. [ 92%] Building CXX object CMakeFiles/LibXISFTest.dir/test/main.cpp.o
  99. [ 96%] Building CXX object CMakeFiles/LibXISFTest.dir/test/benchmark.cpp.o
  100. [100%] Linking CXX executable LibXISFTest
  101. [100%] Built target LibXISFTest
  102. + cmake -DCMAKE_INSTALL_PREFIX=/usr .
  103. -- The CXX compiler identification is GNU 12.4.0
  104. -- The C compiler identification is GNU 12.4.0
  105. -- Detecting CXX compiler ABI info
  106. -- Detecting CXX compiler ABI info - done
  107. -- Check for working CXX compiler: /usr/bin/c++ - skipped
  108. -- Detecting CXX compile features
  109. -- Detecting CXX compile features - done
  110. -- Detecting C compiler ABI info
  111. -- Detecting C compiler ABI info - done
  112. -- Check for working C compiler: /usr/bin/cc - skipped
  113. -- Detecting C compile features
  114. -- Detecting C compile features - done
  115. -- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0")
  116. -- Checking for module 'libzstd'
  117. -- Found libzstd, version 1.5.6
  118. -- Configuring done (0.3s)
  119. -- Generating done (0.0s)
  120. -- Build files have been written to: /home/andrey/libxisf/work/src/libxisf
  121. + make install
  122. [ 3%] Building CXX object CMakeFiles/XISF.dir/bytearray.cpp.o
  123. [ 7%] Building CXX object CMakeFiles/XISF.dir/libxisf.cpp.o
  124. [ 11%] Building CXX object CMakeFiles/XISF.dir/streambuffer.cpp.o
  125. [ 14%] Building CXX object CMakeFiles/XISF.dir/utils.cpp.o
  126. [ 18%] Building CXX object CMakeFiles/XISF.dir/variant.cpp.o
  127. [ 22%] Building C object CMakeFiles/XISF.dir/lz4/lz4.c.o
  128. [ 25%] Building C object CMakeFiles/XISF.dir/lz4/lz4hc.c.o
  129. [ 29%] Building CXX object CMakeFiles/XISF.dir/pugixml/pugixml.cpp.o
  130. [ 33%] Building C object CMakeFiles/XISF.dir/zlib/adler32.c.o
  131. [ 37%] Building C object CMakeFiles/XISF.dir/zlib/compress.c.o
  132. [ 40%] Building C object CMakeFiles/XISF.dir/zlib/crc32.c.o
  133. [ 44%] Building C object CMakeFiles/XISF.dir/zlib/deflate.c.o
  134. [ 48%] Building C object CMakeFiles/XISF.dir/zlib/gzclose.c.o
  135. [ 51%] Building C object CMakeFiles/XISF.dir/zlib/gzlib.c.o
  136. /home/andrey/libxisf/work/src/libxisf/zlib/gzlib.c: In function 'gz_open':
  137. /home/andrey/libxisf/work/src/libxisf/zlib/gzlib.c:14:17: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration]
  138. 14 | # define LSEEK lseek
  139. | ^~~~~
  140. /home/andrey/libxisf/work/src/libxisf/zlib/gzlib.c:254:9: note: in expansion of macro 'LSEEK'
  141. 254 | LSEEK(state->fd, 0, SEEK_END); /* so gzoffset() is correct */
  142. | ^~~~~
  143. [ 55%] Building C object CMakeFiles/XISF.dir/zlib/gzread.c.o
  144. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c: In function 'gz_load':
  145. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c:35:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
  146. 35 | ret = read(state->fd, buf + *have, get);
  147. | ^~~~
  148. | fread
  149. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c: In function 'gzclose_r':
  150. /home/andrey/libxisf/work/src/libxisf/zlib/gzread.c:647:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  151. 647 | ret = close(state->fd);
  152. | ^~~~~
  153. | pclose
  154. [ 59%] Building C object CMakeFiles/XISF.dir/zlib/gzwrite.c.o
  155. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c: In function 'gz_comp':
  156. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c:89:20: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  157. 89 | writ = write(state->fd, strm->next_in, put);
  158. | ^~~~~
  159. | fwrite
  160. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c: In function 'gzclose_w':
  161. /home/andrey/libxisf/work/src/libxisf/zlib/gzwrite.c:673:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  162. 673 | if (close(state->fd) == -1)
  163. | ^~~~~
  164. | pclose
  165. [ 62%] Building C object CMakeFiles/XISF.dir/zlib/inflate.c.o
  166. [ 66%] Building C object CMakeFiles/XISF.dir/zlib/infback.c.o
  167. [ 70%] Building C object CMakeFiles/XISF.dir/zlib/inftrees.c.o
  168. [ 74%] Building C object CMakeFiles/XISF.dir/zlib/inffast.c.o
  169. [ 77%] Building C object CMakeFiles/XISF.dir/zlib/trees.c.o
  170. [ 81%] Building C object CMakeFiles/XISF.dir/zlib/uncompr.c.o
  171. [ 85%] Building C object CMakeFiles/XISF.dir/zlib/zutil.c.o
  172. [ 88%] Linking CXX shared library libXISF.so
  173. [ 88%] Built target XISF
  174. [ 92%] Building CXX object CMakeFiles/LibXISFTest.dir/test/main.cpp.o
  175. [ 96%] Building CXX object CMakeFiles/LibXISFTest.dir/test/benchmark.cpp.o
  176. [100%] Linking CXX executable LibXISFTest
  177. [100%] Built target LibXISFTest
  178. Install the project...
  179. -- Install configuration: ""
  180. -- Up-to-date: /usr/include/libxisf.h
  181. -- Up-to-date: /usr/include/libXISF_global.h
  182. -- Installing: /usr/lib64/pkgconfig/libxisf.pc
  183. -- Installing: /usr/lib64/libXISF.so.0.2.9
  184. -- Up-to-date: /usr/lib64/libXISF.so.0
  185. -- Up-to-date: /usr/lib64/libXISF.so
  186. =======> Build result:
  187. bsdtar: *: Cannot stat: No such file or directory
  188. bsdtar: Error exit delayed from previous errors.
  189. =======> ERROR: Building '/home/andrey/libxisf/libxisf#0.2.9-1.pkg.tar.gz' failed.
  190. #
  191.  
Advertisement
Add Comment
Please, Sign In to add comment