PurC-Midnight-Commander
PurC-Midnight-Commander copied to clipboard
PurC-Midnight-Commander 编译打包时的问题
AUR 的 PKGBUILD
# Maintainer: taotieren <[email protected]>
pkgname=purc-midnight-commander-git
pkgver=1c08e99
pkgrel=1
pkgdesc="A generic HVML renderer in text mode for development and debugging. "
arch=('any')
url="https://github.com/HVML/PurC-Midnight-Commander"
license=('LGPL-3.0')
provides=(${pkgname%-git} 'PurC-Midnight-Commander')
conflicts=(${pkgname%-git})
#replaces=(${pkgname})
depends=('glib2')
makedepends=('git' 'cmake' 'ninja')
makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu' 'webkit2gtk-hvml')
optdepends=('domruler' 'purc-fetcher' 'purc' 'xguipro')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}/"
# git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
git describe --always --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname%-git}"
# CMake build
# cmake -DCMAKE_BUILD_TYPE=Debug \
# -DPORT=Linux \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DCMAKE_INSTALL_LIBEXECDIR=lib \
# -B build
# cmake --build build
# Ninja build
cmake -DCMAKE_BUILD_TYPE=Debug \
-DPORT=Linux \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-B build \
-G Ninja
ninja -C build
}
package() {
# make install
# make -C "${srcdir}"/${pkgname%-git}/build install DESTDIR="${pkgdir}"
# ninja install
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}
purc-midnight-commander-git on master
❯ time makepkg -sf
==> 正在创建软件包:purc-midnight-commander-git 1c08e99-1 (2022年08月26日 星期五 22时31分26秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系
==> 获取源代码...
-> 正在升级 purc-midnight-commander git 仓库...
==> 正在验证 source 文件,使用sha256sums...
purc-midnight-commander ... 已跳过
==> 正在释放源码...
-> 正在建立 purc-midnight-commander git 仓库的拷贝...
正克隆到 'purc-midnight-commander'...
完成。
==> 正在开始 pkgver()...
==> 正在删除现存的 $pkgdir/ 目录...
==> 正在开始 build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CMake build type is: Debug
-- Found Perl: /usr/bin/perl (found suitable version "5.36.0", minimum required is "5.10.0")
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.18", minimum required is "2.7.0")
-- Found Python3: /usr/bin/python3.10 (found version "3.10.6") found components: Interpreter
-- Enabling ccache: Setting ccache prefix for compiler.
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wundef
-- Performing Test C_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wall
-- Performing Test C_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test ATOMIC_INT64_IS_BUILTIN
-- Performing Test ATOMIC_INT64_IS_BUILTIN - Success
-- Performing Test CXX_COMPILER_SUPPORTS_GSPLIT_DWARF
-- Performing Test CXX_COMPILER_SUPPORTS_GSPLIT_DWARF - Success
-- Looking for features.h
-- Looking for features.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for pthread_np.h
-- Looking for pthread_np.h - not found
-- Looking for linux/memfd.h
-- Looking for linux/memfd.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for ncurses.h
-- Looking for ncurses.h - found
-- Looking for utime.h
-- Looking for utime.h - found
-- Looking for linux/fs.h
-- Looking for linux/fs.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/timeb.h
-- Looking for sys/timeb.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Looking for sys/mount.h
-- Looking for sys/mount.h - found
-- Looking for sys/statfs.h
-- Looking for sys/statfs.h - found
-- Looking for sys/statvfs.h
-- Looking for sys/statvfs.h - found
-- Looking for sys/vfs.h
-- Looking for sys/vfs.h - found
-- Looking for sys/mntent.h
-- Looking for sys/mntent.h - not found
-- Looking for sys/ucred.h
-- Looking for sys/ucred.h - not found
-- Looking for sys/fs/s5param.h
-- Looking for sys/fs/s5param.h - not found
-- Looking for sys/fs/types.h
-- Looking for sys/fs/types.h - not found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for stropts.h
-- Looking for stropts.h - not found
-- Looking for openpty.h
-- Looking for openpty.h - not found
-- Looking for pty.h
-- Looking for pty.h - found
-- Looking for util.h
-- Looking for util.h - not found
-- Looking for libutil.h
-- Looking for libutil.h - not found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for IsDebuggerPresent
-- Looking for IsDebuggerPresent - not found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc_trim
-- Looking for malloc_trim - found
-- Looking for strnstr
-- Looking for strnstr - not found
-- Looking for timegm
-- Looking for timegm - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for vsyslog
-- Looking for vsyslog - found
-- Looking for alloca
-- Looking for alloca - not found
-- Looking for openpty
-- Looking for openpty - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strverscmp
-- Looking for strverscmp - found
-- Looking for utimensat
-- Looking for utimensat - found
-- Looking for get_process_stats
-- Looking for get_process_stats - not found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for posix_openpt
-- Looking for posix_openpt - found
-- Looking for getpt
-- Looking for getpt - found
-- Looking for grantpt
-- Looking for grantpt - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for statlstat
-- Looking for statlstat - not found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for SIGTRAP
-- Looking for SIGTRAP - found
-- Looking for major
-- Looking for major - not found
-- Looking for major
-- Looking for major - found
-- Performing Test HAVE_STAT_BIRTHTIME_value
-- Performing Test HAVE_STAT_BIRTHTIME_value - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS_value
-- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS_value - Success
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE_value
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE_value - Success
-- Performing Test HAVE_STRUCT_STAT_ST_RDEV_value
-- Performing Test HAVE_STRUCT_STAT_ST_RDEV_value - Success
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_value
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_value - Success
-- Performing Test HAVE_TM_GMTOFF_value
-- Performing Test HAVE_TM_GMTOFF_value - Success
-- Performing Test HAVE_TM_ZONE_value
-- Performing Test HAVE_TM_ZONE_value - Success
-- Performing Test HAVE_STRUCT_FSSTAT_F_FSTYPENAME_value
-- Performing Test HAVE_STRUCT_FSSTAT_F_FSTYPENAME_value - Failed
-- Performing Test HAVE_STRUCT_LINGER_L_LINGER_value
-- Performing Test HAVE_STRUCT_LINGER_L_LINGER_value - Failed
-- Performing Test HAVE_STRUCT_STATFS_F_FSTYPENAME_value
-- Performing Test HAVE_STRUCT_STATFS_F_FSTYPENAME_value - Failed
-- Performing Test HAVE_STRUCT_STATFS_F_TYPE_value
-- Performing Test HAVE_STRUCT_STATFS_F_TYPE_value - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_BASETYPE_value
-- Performing Test HAVE_STRUCT_STATVFS_F_BASETYPE_value - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_FSTYPENAME_value
-- Performing Test HAVE_STRUCT_STATVFS_F_FSTYPENAME_value - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_TYPE_value
-- Performing Test HAVE_STRUCT_STATVFS_F_TYPE_value - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int128_t
-- Check size of __int128_t - done
-- Check size of uintmax_t
-- Check size of uintmax_t - done
-- Check size of socklen_t
-- Check size of socklen_t - failed
-- Check size of mode_t
-- Check size of mode_t - done
-- Check size of int
-- Check size of int - done
-- Found GLIB: /usr/include/glib-2.0;/usr/lib/glib-2.0/include (found suitable version "2.72.3", minimum required is "2.44.0")
-- Found Ncurses: /usr/lib/libncursesw.so (found suitable version "6.3.20211021", minimum required is "5.0")
-- Looking for ESCDELAY
-- Looking for ESCDELAY - not found
-- Looking for resizeterm
-- Looking for resizeterm - not found
-- Found PurC: /usr/lib/libpurc.so (found suitable version "0.8.1", minimum required is "0.0.1")
-- Found LibXml2: /usr/lib/libxml2.so (found suitable version "2.9.14", minimum required is "2.8.0")
-- Platform-specific CMakeLists not found: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/wtf/wtf/PlatformLinux.cmake
-- Using source list file: Sources.txt
-- Platform-specific CMakeLists not found: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/PlatformLinux.cmake
-- Enabled features:
-- ENABLE_API_TESTS ... OFF
-- ENABLE_CHARSET ON
-- ENABLE_VFS_CPIO .... OFF
-- ENABLE_VFS_EXTFS OFF
-- ENABLE_VFS_FISH .... OFF
-- ENABLE_VFS_FTP OFF
-- ENABLE_VFS_NET ..... OFF
-- ENABLE_VFS_SFS OFF
-- ENABLE_VFS_SFTP .... OFF
-- ENABLE_VFS_TAR OFF
-- ENABLE_VFS_UNDELFS . OFF
-- ENABLE_XML ON
-- Configuring done
-- Generating done
-- Build files have been written to: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build
ninja: Entering directory `build'
[247/247] Linking C executable source/bin/purcmc
==> 正在进入 fakeroot 环境...
==> 正在开始 package()...
ninja: Entering directory `/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build'
[0/1] Install the project...
-- Install configuration: "Debug"
-- Installing: /home/taotieren/git_clone/aur/purc-midnight-commander-git/pkg/purc-midnight-commander-git/usr/bin/purcmc
CMake Error at source/bin/cmake_install.cmake:75 (file):
file Copy failed: No such file or directory
Call Stack (most recent call first):
source/cmake_install.cmake:57 (include)
cmake_install.cmake:47 (include)
FAILED: CMakeFiles/install.util
cd /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
==> 错误: 在 package() 中发生一个错误。
正在放弃...
makepkg -sf 10.91s user 6.54s system 122% cpu 14.253 total
purc-midnight-commander/build/source/bin/cmake_install.cmake
# Install script for directory: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()
# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "0")
endif()
# Is this installation the result of a crosscompile?
if(NOT DEFINED CMAKE_CROSSCOMPILING)
set(CMAKE_CROSSCOMPILING "FALSE")
endif()
# Set default install directory permissions.
if(NOT DEFINED CMAKE_OBJDUMP)
set(CMAKE_OBJDUMP "/usr/bin/objdump")
endif()
if(NOT CMAKE_INSTALL_LOCAL_ONLY)
# Include the install script for the subdirectory.
include("/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build/source/bin/purcsex/cmake_install.cmake")
endif()
if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
if(EXISTS "$ENV{DESTDIR}/usr/bin/purcmc" AND
NOT IS_SYMLINK "$ENV{DESTDIR}/usr/bin/purcmc")
file(RPATH_CHECK
FILE "$ENV{DESTDIR}/usr/bin/purcmc"
RPATH "")
endif()
list(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
"/usr/bin/purcmc")
if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
endif()
file(INSTALL DESTINATION "/usr/bin" TYPE EXECUTABLE FILES "/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build/source/bin/purcmc")
if(EXISTS "$ENV{DESTDIR}/usr/bin/purcmc" AND
NOT IS_SYMLINK "$ENV{DESTDIR}/usr/bin/purcmc")
if(CMAKE_INSTALL_DO_STRIP)
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/bin/purcmc")
endif()
endif()
endif()
if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
file(CREATE_LINK "/usr/bin/purcmc" "/usr/bin/purcmcdiff" COPY_ON_ERROR SYMBOLIC)
endif()
if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
file(CREATE_LINK "/usr/bin/purcmc" "/usr/bin/purcmcview" COPY_ON_ERROR SYMBOLIC)
endif()
if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT)
file(CREATE_LINK "/usr/bin/purcmc" "/usr/bin/purcmcedit" COPY_ON_ERROR SYMBOLIC)
endif()
打包里面加上 sudo 命令后可以打包成功, Arch 为了避免编译过程中使用 root 权限, 需要修改下创建链接部分的源码.
package() {
# make install
# sudo make -C "${srcdir}"/${pkgname%-git}/build install DESTDIR="${pkgdir}"
# ninja install
sudo DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}
source/bin/CMakeLists.txt
中的硬链接不能用这种方式创建.看看能不能通过 file
安装的方式和实现
install(CODE "file(CREATE_LINK \"${EXEC_INSTALL_DIR}/purcmc\" \"${EXEC_INSTALL_DIR}/purcmcdiff\" COPY_ON_ERROR SYMBOLIC)")
install(CODE "file(CREATE_LINK \"${EXEC_INSTALL_DIR}/purcmc\" \"${EXEC_INSTALL_DIR}/purcmcview\" COPY_ON_ERROR SYMBOLIC)")
install(CODE "file(CREATE_LINK \"${EXEC_INSTALL_DIR}/purcmc\" \"${EXEC_INSTALL_DIR}/purcmcedit\" COPY_ON_ERROR SYMBOLIC)")
好,我处理一下。
修改后的 PKGBUILD 文件
# Maintainer: taotieren <[email protected]>
pkgname=purc-midnight-commander-git
pkgver=1c08e99
pkgrel=1
pkgdesc="A generic HVML renderer in text mode for development and debugging. "
arch=('any')
url="https://github.com/HVML/PurC-Midnight-Commander"
license=('LGPL-3.0')
groups=('hvml-git')
provides=(${pkgname%-git} 'PurC-Midnight-Commander')
conflicts=(${pkgname%-git})
replaces=()
depends=('glib2')
makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'pkgconf')
optdepends=('purc: The prime HVML interpreter for C Language.'
'webkit2gtk-hvml: Web content engine for GTK (HVML)'
'xguipro: xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit.')
backup=()
options=()
install=
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}/"
# git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
git describe --always --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
# prepare() {
# cd "${srcdir}/${pkgname%-git}"
# git switch fix-cmake_install
# }
build() {
cd "${srcdir}/${pkgname%-git}"
# CMake build
# cmake -DCMAKE_BUILD_TYPE=Debug \
# -DPORT=Linux \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DCMAKE_INSTALL_LIBEXECDIR=lib \
# -B build
#
# cmake --build build
# Ninja build
# cmake -DCMAKE_BUILD_TYPE=Debug \
cmake -DCMAKE_BUILD_TYPE=Release \
-DPORT=Linux \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-B build \
-G Ninja
ninja -C build
}
package() {
# make install
# make -C "${srcdir}"/${pkgname%-git}/build DESTDIR="${pkgdir}" install
# ninja install
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}
编译报错日志
purc-midnight-commander-git on 09fec37
❯ makepkg -sf
==> 正在创建软件包:purc-midnight-commander-git 1c08e99-1 (2022年11月29日 星期二 22时53分00秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系==> 获取源代码...
-> 正在克隆 purc-midnight-commander git 仓库...
克隆到纯仓库 '/home/taotieren/git_clone/aur/purc-midnight-commander-git/purc-midnight-commander'...
remote: Enumerating objects: 2750, done.
remote: Counting objects: 100% (2750/2750), done.
remote: Compressing objects: 100% (997/997), done.
remote: Total 2750 (delta 1726), reused 2744 (delta 1720), pack-reused 0
接收对象中: 100% (2750/2750), 2.55 MiB | 1.16 MiB/s, 完成.
处理 delta 中: 100% (1726/1726), 完成.
==> 正在验证 source 文件,使用sha256sums...
purc-midnight-commander ... 已跳过==> 正在释放源码...
-> 正在建立 purc-midnight-commander git 仓库的拷贝...
正克隆到 'purc-midnight-commander'...
完成。==> 正在开始 pkgver()...
==> 正在开始 build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CMake build type is: Release
-- Found Perl: /usr/bin/perl (found suitable version "5.36.0", minimum required is "5.10.0")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.8", minimum required is "2.7.0")
-- Found Python3: /usr/bin/python3.10 (found version "3.10.8") found components: Interpreter
-- Enabling ccache: Setting ccache prefix for compiler.
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wundef
-- Performing Test C_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wall
-- Performing Test C_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test ATOMIC_INT64_IS_BUILTIN
-- Performing Test ATOMIC_INT64_IS_BUILTIN - Success
-- Looking for features.h
-- Looking for features.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for pthread_np.h
-- Looking for pthread_np.h - not found
-- Looking for linux/memfd.h
-- Looking for linux/memfd.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for ncurses.h
-- Looking for ncurses.h - found
-- Looking for utime.h
-- Looking for utime.h - found
-- Looking for linux/fs.h
-- Looking for linux/fs.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/timeb.h
-- Looking for sys/timeb.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/epoll.h
-- Looking for sys/epoll.h - found
-- Looking for sys/mount.h
-- Looking for sys/mount.h - found
-- Looking for sys/statfs.h
-- Looking for sys/statfs.h - found
-- Looking for sys/statvfs.h
-- Looking for sys/statvfs.h - found
-- Looking for sys/vfs.h
-- Looking for sys/vfs.h - found
-- Looking for sys/mntent.h
-- Looking for sys/mntent.h - not found
-- Looking for sys/ucred.h
-- Looking for sys/ucred.h - not found
-- Looking for sys/fs/s5param.h
-- Looking for sys/fs/s5param.h - not found
-- Looking for sys/fs/types.h
-- Looking for sys/fs/types.h - not found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for stropts.h
-- Looking for stropts.h - not found
-- Looking for openpty.h
-- Looking for openpty.h - not found
-- Looking for pty.h
-- Looking for pty.h - found
-- Looking for util.h
-- Looking for util.h - not found
-- Looking for libutil.h
-- Looking for libutil.h - not found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for IsDebuggerPresent
-- Looking for IsDebuggerPresent - not found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc_trim
-- Looking for malloc_trim - found
-- Looking for strnstr
-- Looking for strnstr - not found
-- Looking for timegm
-- Looking for timegm - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for vsyslog
-- Looking for vsyslog - found
-- Looking for alloca
-- Looking for alloca - not found
-- Looking for openpty
-- Looking for openpty - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strverscmp
-- Looking for strverscmp - found
-- Looking for utimensat
-- Looking for utimensat - found
-- Looking for get_process_stats
-- Looking for get_process_stats - not found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - found
-- Looking for posix_openpt
-- Looking for posix_openpt - found
-- Looking for getpt
-- Looking for getpt - found
-- Looking for grantpt
-- Looking for grantpt - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for statlstat
-- Looking for statlstat - not found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for SIGTRAP
-- Looking for SIGTRAP - found
-- Looking for major
-- Looking for major - not found
-- Looking for major
-- Looking for major - found
-- Performing Test HAVE_STAT_BIRTHTIME_value
-- Performing Test HAVE_STAT_BIRTHTIME_value - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS_value
-- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS_value - Success
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE_value
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE_value - Success
-- Performing Test HAVE_STRUCT_STAT_ST_RDEV_value
-- Performing Test HAVE_STRUCT_STAT_ST_RDEV_value - Success
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_value
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_value - Success
-- Performing Test HAVE_TM_GMTOFF_value
-- Performing Test HAVE_TM_GMTOFF_value - Success
-- Performing Test HAVE_TM_ZONE_value
-- Performing Test HAVE_TM_ZONE_value - Success
-- Performing Test HAVE_STRUCT_FSSTAT_F_FSTYPENAME_value
-- Performing Test HAVE_STRUCT_FSSTAT_F_FSTYPENAME_value - Failed
-- Performing Test HAVE_STRUCT_LINGER_L_LINGER_value
-- Performing Test HAVE_STRUCT_LINGER_L_LINGER_value - Failed
-- Performing Test HAVE_STRUCT_STATFS_F_FSTYPENAME_value
-- Performing Test HAVE_STRUCT_STATFS_F_FSTYPENAME_value - Failed
-- Performing Test HAVE_STRUCT_STATFS_F_TYPE_value
-- Performing Test HAVE_STRUCT_STATFS_F_TYPE_value - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_BASETYPE_value
-- Performing Test HAVE_STRUCT_STATVFS_F_BASETYPE_value - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_FSTYPENAME_value
-- Performing Test HAVE_STRUCT_STATVFS_F_FSTYPENAME_value - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_TYPE_value
-- Performing Test HAVE_STRUCT_STATVFS_F_TYPE_value - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int128_t
-- Check size of __int128_t - done
-- Check size of uintmax_t
-- Check size of uintmax_t - done
-- Check size of socklen_t
-- Check size of socklen_t - failed
-- Check size of mode_t
-- Check size of mode_t - done
-- Check size of int
-- Check size of int - done
-- Found GLIB: /usr/include/glib-2.0;/usr/lib/glib-2.0/include (found suitable version "2.74.1", minimum required is "2.44.0")
-- Found Ncurses: /usr/lib/libncursesw.so (found suitable version "6.3.20211021", minimum required is "5.0")
-- Looking for ESCDELAY
-- Looking for ESCDELAY - not found
-- Looking for resizeterm
-- Looking for resizeterm - not found
-- Found PurC: /usr/lib/libpurc.so (found suitable version "0.9.2", minimum required is "0.0.1")
-- Found LibXml2: /usr/lib/libxml2.so (found suitable version "2.10.3", minimum required is "2.8.0")
-- Platform-specific CMakeLists not found: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/wtf/wtf/PlatformLinux.cmake
-- Using source list file: Sources.txt
-- Platform-specific CMakeLists not found: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/PlatformLinux.cmake
-- Enabled features:
-- ENABLE_API_TESTS ... OFF
-- ENABLE_CHARSET ON
-- ENABLE_VFS_CPIO .... OFF
-- ENABLE_VFS_EXTFS OFF
-- ENABLE_VFS_FISH .... OFF
-- ENABLE_VFS_FTP OFF
-- ENABLE_VFS_NET ..... OFF
-- ENABLE_VFS_SFS OFF
-- ENABLE_VFS_SFTP .... OFF
-- ENABLE_VFS_TAR OFF
-- ENABLE_VFS_UNDELFS . OFF
-- ENABLE_XML ON
-- Configuring done
-- Generating done
-- Build files have been written to: /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build
ninja: Entering directory `build'
[146/247] Building C object source/bin/CMakeFiles/purcmc.dir/src/background.c.o
在函数‘parent_call_header’中,
内联自‘parent_call_header’于 /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:404:1,
内联自‘parent_va_call_string’于 /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:459:5:
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:416:15: 警告:argument 2 is null but the corresponding size argument 3 value is 152 [-Wnonnull]
416 | ret = write (parent_fd, ctx, sizeof (*ctx));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/lib/lib/fs.h:11,
from /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/lib/lib/global.h:94,
from /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:46:
/usr/include/unistd.h: 在函数‘parent_va_call_string’中:
/usr/include/unistd.h:378:16: 附注:in a call to function ‘write’ declared with attribute ‘access (read_only, 2, 3)’
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^~~~~
在函数‘parent_call_header’中,
内联自‘parent_call_header’于 /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:404:1,
内联自‘parent_va_call_string’于 /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:459:5:
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/src/background.c:416:15: 警告:argument 2 is null but the corresponding size argument 3 value is 152 [-Wnonnull]
416 | ret = write (parent_fd, ctx, sizeof (*ctx));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unistd.h: 在函数‘parent_va_call_string’中:
/usr/include/unistd.h:378:16: 附注:in a call to function ‘write’ declared with attribute ‘access (read_only, 2, 3)’
378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
| ^~~~~
[148/247] Building C object source/bin/purcsex/CMakeFiles/purcsex.dir/purcsex.c.o
FAILED: source/bin/purcsex/CMakeFiles/purcsex.dir/purcsex.c.o
/usr/bin/ccache /usr/bin/cc -DBUILDING_LINUX__=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_purcsex -DHAVE_CONFIG_H=1 -DPACKAGE=\"purcmc\" -DPURCMC_API_VERSION_STRING=\"\" -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build/DerivedSources/PurcMC -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/lib -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build/DerivedSources/ForwardingHeaders -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/libxml2 -fdiagnostics-color=always -fmax-errors=10 -Wall -Wno-expansion-to-defined -Wno-psabi -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fno-exceptions -O3 -DNDEBUG -fPIE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -std=gnu99 -MD -MT source/bin/purcsex/CMakeFiles/purcsex.dir/purcsex.c.o -MF source/bin/purcsex/CMakeFiles/purcsex.dir/purcsex.c.o.d -o source/bin/purcsex/CMakeFiles/purcsex.dir/purcsex.c.o -c /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsex/purcsex.c
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsex/purcsex.c: 在函数‘main’中:
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsex/purcsex.c:2604:10: 错误:‘purc_instance_extra_info’ has no member named ‘renderer_prot’; did you mean ‘renderer_uri’?
2604 | .renderer_prot = PURC_RDRPROT_PURCMC,
| ^~~~~~~~~~~~~
| renderer_uri
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsex/purcsex.c:2604:26: 错误:‘PURC_RDRPROT_PURCMC’未声明(在此函数内第一次使用)
2604 | .renderer_prot = PURC_RDRPROT_PURCMC,
| ^~~~~~~~~~~~~~~~~~~
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsex/purcsex.c:2604:26: 附注:每个未声明的标识符在其出现的函数内只报告一次/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsex/purcsex.c:2656:13: 警告:implicit declaration of function ‘pcrdr_conn_socket_fd’; did you mean ‘pcrdr_conn_comm_method’? [-Wimplicit-function-declaration]
2656 | cnnfd = pcrdr_conn_socket_fd(conn);
| ^~~~~~~~~~~~~~~~~~~~
| pcrdr_conn_comm_method
[157/247] Building C object source/bin/CMakeFiles/purcsmg.dir/purcsmg/purcsmg.c.o
FAILED: source/bin/CMakeFiles/purcsmg.dir/purcsmg/purcsmg.c.o
/usr/bin/ccache /usr/bin/cc -DBUILDING_LINUX__=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_purcsmg -DHAVE_CONFIG_H=1 -DPACKAGE=\"purcmc\" -DPURCMC_API_VERSION_STRING=\"\" -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build/DerivedSources/PurcMC -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/lib -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin -I/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/build/DerivedSources/ForwardingHeaders -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/libxml2 -fdiagnostics-color=always -fmax-errors=10 -Wall -Wno-expansion-to-defined -Wno-psabi -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fno-exceptions -O3 -DNDEBUG -fPIE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -std=gnu99 -MD -MT source/bin/CMakeFiles/purcsmg.dir/purcsmg/purcsmg.c.o -MF source/bin/CMakeFiles/purcsmg.dir/purcsmg/purcsmg.c.o.d -o source/bin/CMakeFiles/purcsmg.dir/purcsmg/purcsmg.c.o -c /home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsmg/purcsmg.c
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsmg/purcsmg.c: 在函数‘main’中:
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsmg/purcsmg.c:1116:10: 错误:‘purc_instance_extra_info’ has no member named ‘renderer_prot’; did you mean ‘renderer_uri’?
1116 | .renderer_prot = PURC_RDRPROT_PURCMC,
| ^~~~~~~~~~~~~
| renderer_uri
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsmg/purcsmg.c:1116:26: 错误:‘PURC_RDRPROT_PURCMC’未声明(在此函数内第一次使用)
1116 | .renderer_prot = PURC_RDRPROT_PURCMC,
| ^~~~~~~~~~~~~~~~~~~
/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsmg/purcsmg.c:1116:26: 附注:每个未声明的标识符在其出现的函数内只报告一次/home/taotieren/git_clone/aur/purc-midnight-commander-git/src/purc-midnight-commander/source/bin/purcsmg/purcsmg.c:1148:13: 警告:implicit declaration of function ‘pcrdr_conn_socket_fd’; did you mean ‘pcrdr_conn_comm_method’? [-Wimplicit-function-declaration]
1148 | cnnfd = pcrdr_conn_socket_fd(conn);
| ^~~~~~~~~~~~~~~~~~~~
| pcrdr_conn_comm_method
ninja: build stopped: subcommand failed.
==> 错误: 在 build() 中发生一个错误。 正在放弃...
purc-midnight-commander-git on 09fec37 took 14s