Skip to content

[Fix Package]: rpm 构建失败 #10259

Description

@binLep

Action Type

Fix Package

Package Name

rpm

Version(s)

4.19.0

Project Repository

https://github.com/rpm-software-management/rpm

Project Homepage

https://rpm.org

License

GPL-2.0

Supported Platforms

  • Windows
  • Linux
  • macOS
  • Android
  • iOS
  • WebAssembly (Wasm)
  • FreeBSD
  • Other (specify in Additional Context)

Build System & Dependencies

问题描述

shell

binlep@aosc-ca4b8e8b [ ciot-build@main ] $ xmake pack
packing build/xpack/test/test-v0.0.1-linux-x86_64.rpm
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> rpm 4.19.0 [host]
please input: y (y/n/m)

  => install rpm 4.19.0 .. failed

INFO using C.UTF-8 as default locale
CMake Error:
  Running
   '/home/binlep/.xmake/packages/n/ninja/v1.13.2/0a9451759a4647b5923438b464085dd6/bin/ninja' '-C' '/home/binlep/.xmake/cache/packages/2606/r/rpm/4.19.0/source/build_c6fc26c3' '-t' 'recompact'
  failed with:
   ninja: warning: phony target 'rpmverify' names itself as an input; ignoring [-w phonycycle=warn]
  ninja: warning: phony target 'rpmquery' names itself as an input; ignoring
  [-w phonycycle=warn]
  ninja: warning: phony target 'rpm-4.19.0.tar.bz2' names itself as an input;
  ignoring [-w phonycycle=warn]
  ninja: error: build.ninja:794: multiple rules generate rpmverify
CMake Warning:
  Manually-specified variables were not used by the project:
    CMAKE_CXX_FLAGS
    CMAKE_CXX_FLAGS_RELEASE
CMake Generate step failed.  Build files cannot be regenerated correctly.
ion 1.18
if you want to get more verbose errors, please see:
  -> /home/binlep/.xmake/cache/packages/2606/r/rpm/4.19.0/installdir.failed/logs/install.txt
error: install failed!

install.txt

INFO using C.UTF-8 as default locale
CMake Error:
  Running

   '/home/binlep/.xmake/packages/n/ninja/v1.13.2/0a9451759a4647b5923438b464085dd6/bin/ninja' '-C' '/home/binlep/.xmake/cache/packages/2606/r/rpm/4.19.0/source/build_c6fc26c3' '-t' 'recompact'

  failed with:

   ninja: warning: phony target 'rpmverify' names itself as an input; ignoring [-w phonycycle=warn]

  ninja: warning: phony target 'rpmquery' names itself as an input; ignoring
  [-w phonycycle=warn]

  ninja: warning: phony target 'rpm-4.19.0.tar.bz2' names itself as an input;
  ignoring [-w phonycycle=warn]

  ninja: error: build.ninja:794: multiple rules generate rpmverify





CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_FLAGS
    CMAKE_CXX_FLAGS_RELEASE


CMake Generate step failed.  Build files cannot be regenerated correctly.
ion 1.18
-- Checking for module 'readline'
--   Found readline, version 8.3
-- Checking for module 'libzstd>=1.3.8'
--   Found libzstd, version 1.5.7
-- Checking for module 'libdw'
--   Found libdw, version 0.191
-- Checking for module 'liblzma>=5.2.0'
--   Found liblzma, version 5.8.3
-- Found OpenMP_C: -fopenmp (found suitable version "4.5", minimum required is "4.5")
-- Found OpenMP: TRUE (found suitable version "4.5", minimum required is "4.5")
-- Found Intl: built in to C library
-- Checking for module 'sqlite3>=3.22'
--   Found sqlite3, version 3.51.3
-- Checking for module 'libcap'
--   Found libcap, version 2.78
-- Checking for module 'libacl'
--   Found libacl, version 2.3.2
-- Checking for module 'libarchive'
--   Found libarchive, version 3.8.5
-- Looking for stpcpy
-- Looking for stpcpy - found
-- Looking for stpncpy
-- Looking for stpncpy - found
-- Looking for putenv
-- Looking for putenv - found
-- Looking for mempcpy
-- Looking for mempcpy - found
-- Looking for fdatasync
-- Looking for fdatasync - found
-- Looking for lutimes
-- Looking for lutimes - found
-- Looking for mergesort
-- Looking for mergesort - not found
-- Looking for getauxval
-- Looking for getauxval - found
-- Looking for setprogname
-- Looking for setprogname - not found
-- Looking for __progname
-- Looking for __progname - found
-- Looking for syncfs
-- Looking for syncfs - found
-- Looking for sched_getaffinity
-- Looking for sched_getaffinity - found
-- Looking for unshare
-- Looking for unshare - found
-- Looking for secure_getenv
-- Looking for secure_getenv - found
-- Looking for __secure_getenv
-- Looking for __secure_getenv - not found
-- Looking for mremap
-- Looking for mremap - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for getcwd
-- Looking for getcwd - found
-- Looking for basename
-- Looking for basename - found
-- Looking for dirname
-- Looking for dirname - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for regcomp
-- Looking for regcomp - found
-- Looking for utimes
-- Looking for utimes - found
-- Looking for getline
-- Looking for getline - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for statvfs
-- Looking for statvfs - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for openat
-- Looking for openat - found
-- Looking for mkdirat
-- Looking for mkdirat - found
-- Looking for fstatat
-- Looking for fstatat - found
-- Looking for linkat
-- Looking for linkat - found
-- Looking for symlinkat
-- Looking for symlinkat - found
-- Looking for mkfifoat
-- Looking for mkfifoat - found
-- Looking for mknodat
-- Looking for mknodat - found
-- Looking for unlinkat
-- Looking for unlinkat - found
-- Looking for renameat
-- Looking for renameat - found
-- Looking for utimensat
-- Looking for utimensat - found
-- Looking for fchmodat
-- Looking for fchmodat - found
-- Looking for fchownat
-- Looking for fchownat - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for sys/utsname.h
-- Looking for sys/utsname.h - found
-- Looking for sys/systemcfg.h
-- Looking for sys/systemcfg.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/auxv.h
-- Looking for sys/auxv.h - found
-- Looking for major
-- Looking for major - found
-- Performing Test found
-- Performing Test found - Success
-- Found Doxygen: /usr/bin/doxygen (found version "1.16.0") found components: doxygen dot
-- Found OpenSSL: /usr/lib/libcrypto.so (found suitable version "3.6.3", minimum required is "1.0.2")
-- Configuring done (6.0s)
-- Generating done (0.0s)

pandoc 缺失

构建的时候发现需要 pandoc,我自己直接下载了,不知道这部分要不要给用户提醒一下

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions