Page MenuHomePhabricator

[guix] Use CMake's PROJECT_NAME for source package
ClosedPublic

Authored by tobias_ruck on Thu, Nov 21, 14:51.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC453ab41b380b: [guix] Use CMake's PROJECT_NAME for source package
Summary

Currently this is hard-coded, but by adding the print-project-name target we can make it depend on cmake's project configuration.

Test Plan

@bot guix-linux

Diff Detail

Repository
rABC Bitcoin ABC
Branch
guix-source-package-use-project-name
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31248
Build 61995: Build Diffbuild-without-wallet · build-diff · build-debug · build-clang · build-clang-tidy
Build 61994: arc lint + arc unit

Event Timeline

run source build in source_package

Tail of the build log:

	(cd /bitcoin/depends/work/staging/x86_64-linux-gnu/cpython/3.12.7-4185d825929/bitcoin/depends/x86_64-linux-gnu/bin; ln -s python3.12-32 python3-32) \
fi
if test "x" != "x" ; then \
	rm -f /bitcoin/depends/work/staging/x86_64-linux-gnu/cpython/3.12.7-4185d825929/bitcoin/depends/x86_64-linux-gnu/bin/python3-intel64; \
	(cd /bitcoin/depends/work/staging/x86_64-linux-gnu/cpython/3.12.7-4185d825929/bitcoin/depends/x86_64-linux-gnu/bin; ln -s python3.12-intel64 python3-intel64) \
fi
if test "xno" != "xno"  ; then \
	case no in \
		upgrade) ensurepip="--upgrade" ;; \
		install|*) ensurepip="" ;; \
	esac; \
	 _PYTHON_PROJECT_BASE=/bitcoin/depends/work/build/x86_64-linux-gnu/cpython/3.12.7-4185d825929 _PYTHON_HOST_PLATFORM=linux-x86_64 PYTHONPATH=/bitcoin/depends/work/build/x86_64-linux-gnu/cpython/3.12.7-4185d825929/build/lib.linux-x86_64-3.12:./Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__linux_x86_64-linux-gnu /bitcoin/depends/x86_64-linux-gnu/native/bin/python3 -m ensurepip \
		$ensurepip --root=/bitcoin/depends/work/staging/x86_64-linux-gnu/cpython/3.12.7-4185d825929/ ; \
fi
make[1]: Leaving directory '/bitcoin/depends/work/build/x86_64-linux-gnu/cpython/3.12.7-4185d825929'
Postprocessing cpython...
Caching cpython...
copying packages: native_protobuf native_cpython boost libevent qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm qrencode bdb sqlite miniupnpc libnatpmp protobuf openssl zeromq jemalloc cpython
to: /bitcoin/depends/x86_64-linux-gnu
make: Leaving directory '/bitcoin/depends'
rustup-init: OK
info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
info: syncing channel updates for '1.76.0-x86_64-unknown-linux-gnu'
info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
info: default toolchain set to '1.76.0-x86_64-unknown-linux-gnu'

  1.76.0-x86_64-unknown-linux-gnu installed - rustc 1.76.0 (07dca489a 2024-02-04)


Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:
source "$HOME/.cargo/env"
info: component 'rust-std' for target 'x86_64-unknown-linux-gnu' is up to date
CMake Warning:
  Ignoring extra path from command line:

   ".."


CMake Error: The source directory "/" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Build guix-linux failed with exit code 1

Tail of the build log:

-- Performing Test have_CXX__Wno_shadow - Success
-- Performing Test have_CXX__Wno_sign_compare
-- Performing Test have_CXX__Wno_sign_compare - Success
-- Performing Test have_CXX__Wno_unused_const_variable
-- Performing Test have_CXX__Wno_unused_const_variable - Success
-- Performing Test have_CXX__Wno_conditional_uninitialized
-- Performing Test have_CXX__Wno_conditional_uninitialized - Success
-- Performing Test have_C__Wno_strict_prototypes
-- Performing Test have_C__Wno_strict_prototypes - Success
-- Looking for C++ include atomic
-- Looking for C++ include atomic - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test ENABLE_HWCRC32
-- Performing Test ENABLE_HWCRC32 - Success
-- Performing Test have_C__pedantic
-- Performing Test have_C__pedantic - Success
-- Performing Test have_C__Wshadow
-- Performing Test have_C__Wshadow - Success
-- Performing Test have_C__Wundef
-- Performing Test have_C__Wundef - Success
-- Performing Test have_C__Wno_unused_function
-- Performing Test have_C__Wno_unused_function - Success
-- Performing Test have_C__Wno_overlength_strings
-- Performing Test have_C__Wno_overlength_strings - Success
-- Performing Test have_C__std_c89
-- Performing Test have_C__std_c89 - Success
-- Performing Test have_C__Wno_long_long
-- Performing Test have_C__Wno_long_long - Success
-- Performing Test have_C__Wno_duplicated_branches
-- Performing Test have_C__Wno_duplicated_branches - Success
-- Performing Test USE_ASM_X86_64
-- Performing Test USE_ASM_X86_64 - Success
-- Found PkgConfig: /home/bitcoinabc/.guix-profile/bin/pkg-config (found version "0.29.2") 
-- Found Event component event: /bitcoin/depends/x86_64-linux-gnu/lib/libevent.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: event 
-- Found Boost: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "1.81.0", minimum required is "1.64")  
-- Found Event component pthreads: /bitcoin/depends/x86_64-linux-gnu/lib/libevent_pthreads.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: pthreads 
-- Performing Test fuzz_target_builds_without_main_fuzz
-- Performing Test fuzz_target_builds_without_main_fuzz - Failed
-- Configuring native build in /bitcoin/source_package/native
-- Configuring done
-- Generating done
-- Build files have been written to: /bitcoin/source_package
[0/1] Run CPack packaging tool for source...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Install directory: /bitcoin
CPack: Create package
CPack: - package: /bitcoin/source_package/bitcoin-abc-0.30.5.tar.gz generated.
mv: cannot stat '[1/1]': No such file or directory
mv: cannot stat 'Print': No such file or directory
mv: cannot stat 'the': No such file or directory
mv: cannot stat 'current': No such file or directory
mv: cannot stat 'bitcoin-abc': No such file or directory
Build guix-linux failed with exit code 1

use sed to clean project name

Tail of the build log:

-- Performing Test have_CXX__Wno_maybe_uninitialized
-- Performing Test have_CXX__Wno_maybe_uninitialized - Success
-- Performing Test have_CXX__Wno_shadow
-- Performing Test have_CXX__Wno_shadow - Success
-- Performing Test have_CXX__Wno_sign_compare
-- Performing Test have_CXX__Wno_sign_compare - Success
-- Performing Test have_CXX__Wno_unused_const_variable
-- Performing Test have_CXX__Wno_unused_const_variable - Success
-- Performing Test have_CXX__Wno_conditional_uninitialized
-- Performing Test have_CXX__Wno_conditional_uninitialized - Success
-- Performing Test have_C__Wno_strict_prototypes
-- Performing Test have_C__Wno_strict_prototypes - Success
-- Looking for C++ include atomic
-- Looking for C++ include atomic - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Performing Test ENABLE_HWCRC32
-- Performing Test ENABLE_HWCRC32 - Success
-- Performing Test have_C__pedantic
-- Performing Test have_C__pedantic - Success
-- Performing Test have_C__Wshadow
-- Performing Test have_C__Wshadow - Success
-- Performing Test have_C__Wundef
-- Performing Test have_C__Wundef - Success
-- Performing Test have_C__Wno_unused_function
-- Performing Test have_C__Wno_unused_function - Success
-- Performing Test have_C__Wno_overlength_strings
-- Performing Test have_C__Wno_overlength_strings - Success
-- Performing Test have_C__std_c89
-- Performing Test have_C__std_c89 - Success
-- Performing Test have_C__Wno_long_long
-- Performing Test have_C__Wno_long_long - Success
-- Performing Test have_C__Wno_duplicated_branches
-- Performing Test have_C__Wno_duplicated_branches - Success
-- Performing Test USE_ASM_X86_64
-- Performing Test USE_ASM_X86_64 - Success
-- Found PkgConfig: /home/bitcoinabc/.guix-profile/bin/pkg-config (found version "0.29.2") 
-- Found Event component event: /bitcoin/depends/x86_64-linux-gnu/lib/libevent.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: event 
-- Found Boost: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "1.81.0", minimum required is "1.64")  
-- Found Event component pthreads: /bitcoin/depends/x86_64-linux-gnu/lib/libevent_pthreads.a
-- Found Event: /bitcoin/depends/x86_64-linux-gnu/include (found suitable version "99.99.99", minimum required is "2.0.22") found components: pthreads 
-- Performing Test fuzz_target_builds_without_main_fuzz
-- Performing Test fuzz_target_builds_without_main_fuzz - Failed
-- Configuring native build in /bitcoin/source_package/native
-- Configuring done
-- Generating done
-- Build files have been written to: /bitcoin/source_package
[0/1] Run CPack packaging tool for source...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Install directory: /bitcoin
CPack: Create package
CPack: - package: /bitcoin/source_package/bitcoin-abc-0.30.5.tar.gz generated.
tar: bitcoin-abc-0.30.5.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Build guix-linux failed with exit code 2
tobias_ruck planned changes to this revision.
This revision is now accepted and ready to land.Thu, Nov 21, 19:40