I recently came across Goldberg for emulating without logging in to the client and thought I'd try to package it however I'm missing something very stupid. Here is my package.yml:
name : goldberg_emulator
version : 0.2.5
release : 1
source :
- https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/archive/0.2.5/goldberg_emulato>
license : GPL-2.0-or-later # CHECK ME
component : PLEASE FILL ME IN
summary : PLEASE FILL ME IN
description: |
PLEASE FILL ME IN
builddeps :
- pkgconfig(protobuf)
setup : |
%cmake
build : |
%make
install : |
%make_install
The error I get is in this line -- Installing: /home/build/YPKG/root/goldberg_emulator/install/usr/./libsteam_api.so
but I can't figure out how to fix it. I tried changing directory in the package.yml just before the make_install but then the build part seems to fail. I'm not too familiar with cmake and most of the packages I build are just libraries I use from Python so apologies if this is very simple stuff.
Here is the error I get:
[Build] build successful
[Build] Running step: install
[Build] Enabling ccache
+ cd /home/build/YPKG/root/goldberg_emulator/build/goldberg_emulator-0.2.5
+ export 'CFLAGS=-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ CFLAGS='-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ export 'CXXFLAGS=-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ CXXFLAGS='-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ export 'LDFLAGS=-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now -Wl,-z,max-page-size=0x1000 -Wl,-Bsymbolic-functions -Wl,--sort-common'
+ LDFLAGS='-Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now -Wl,-z,max-page-size=0x1000 -Wl,-Bsymbolic-functions -Wl,--sort-common'
+ export 'FFLAGS=-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ FFLAGS='-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ export 'FCFLAGS=-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ FCFLAGS='-mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT'
+ export PATH=/usr/lib64/ccache/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ PATH=/usr/lib64/ccache/bin:/usr/bin:/bin:/usr/sbin:/sbin
+ export workdir=/home/build/YPKG/root/goldberg_emulator/build/goldberg_emulator-0.2.5
+ workdir=/home/build/YPKG/root/goldberg_emulator/build/goldberg_emulator-0.2.5
+ export package=goldberg_emulator
+ package=goldberg_emulator
+ export release=1
+ release=1
+ export version=0.2.5
+ version=0.2.5
+ export sources=/home/build/YPKG/sources
+ sources=/home/build/YPKG/sources
+ export pkgfiles=/home/build/work/files
+ pkgfiles=/home/build/work/files
+ export installdir=/home/build/YPKG/root/goldberg_emulator/install
+ installdir=/home/build/YPKG/root/goldberg_emulator/install
+ export PKG_ROOT_DIR=/home/build/YPKG/root/goldberg_emulator
+ PKG_ROOT_DIR=/home/build/YPKG/root/goldberg_emulator
+ export PKG_BUILD_DIR=/home/build/YPKG/root/goldberg_emulator/build
+ PKG_BUILD_DIR=/home/build/YPKG/root/goldberg_emulator/build
+ export LT_SYS_LIBRARY_PATH=/usr/lib64
+ LT_SYS_LIBRARY_PATH=/usr/lib64
+ export CC=x86_64-solus-linux-gcc
+ CC=x86_64-solus-linux-gcc
+ export CXX=x86_64-solus-linux-g++
+ CXX=x86_64-solus-linux-g++
+ export LD_AS_NEEDED=1
+ LD_AS_NEEDED=1
+ export SOURCE_DATA_EPOCH=1565827200
+ SOURCE_DATA_EPOCH=1565827200
+ unset DISPLAY SUDO_USER SUDO_GID SUDO_UID SUDO_COMMAND CDPATH
+ make -j16 install DESTDIR=/home/build/YPKG/root/goldberg_emulator/install
[ 4%] Built target generate_interfaces_file
[ 51%] Built target steam_api
[100%] Built target lobby_connect
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/build/YPKG/root/goldberg_emulator/install/usr/./libsteam_api.so
CMake Error at cmake_install.cmake:66 (file):
file INSTALL cannot find
"/home/build/YPKG/root/goldberg_emulator/build/goldberg_emulator-0.2.5/libsteamclient.so".
make: *** [Makefile:86: install] Error 1
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-installaLHnU1']' returned non-zero exit status 2
[Build] install failed
ERRO[15:46:09] Failed to build package error="exit status 1"
ERRO[15:46:13] Failed to build packages
make[1]: Leaving directory '/home/padraig/packages/goldberg'
make abireport
make[1]: Entering directory '/home/padraig/packages/goldberg'
abireport -p abi_ -D `dirname package.yml` scan-packages `dirname package.yml`
error locating packages: No packages in directory .
make[1]: *** [../Makefile.common:15: abireport] Error 1
make[1]: Leaving directory '/home/padraig/packages/goldberg'
make: *** [../Makefile.common:12: complete] Error 2