You are not logged in.
EDIT 1: The package is now pcloudcc-git: https://aur.archlinux.org/packages/pcloudcc-git/
EDIT 2: After resolving the git error, there is a new error. See comments.
EDIT 3: current PKGBUILD for pcloudcc-git fixes the issues.
This is the error I get when building pcloudcc in a chroot.
==> Making package: pcloudcc 2.0.1-2 (Tue 20 Oct 2020 09:22:41 PM EDT)
==> Retrieving sources...
-> Cloning pcloudcc git repo...
Cloning into bare repository '/home/myuser/.cache/aurutils/sync/pcloudcc/pcloudcc'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 12116 (delta 0), reused 0 (delta 0), pack-reused 12112
Receiving objects: 100% (12116/12116), 27.85 MiB | 16.68 MiB/s, done.
Resolving deltas: 100% (7286/7286), done.
==> Validating source files with sha256sums...
pcloudcc ... Skipped
==> ERROR: Cannot find the git package needed to handle git sources.
==> ERROR: Build failed, check /mnt/chroots/test1/extra-x86_64/myuser/build
xargs: aur: exited with status 255; aborting
I notice the last path mentioned is correct/expected (/mnt/chroots/test1/extra-x86_64), but earlier the output says, "Cloning into bare repository '/home/myuser/.cache/aurutils/sync/pcloudcc/pcloudcc'..." I was not expecting anything to be put into that location. Is that something aurutils requires or do I have an incorrect config? I have a repository location defined and I pass it to aur sync like this, but the message above suggests maybe something is wrong.
xargs -a tobuild.txt aur sync --chroot --sign --upgrades --noconfirm --database="$reponame" --directory=/$CHROOT
Other packages are getting added to that repository location and the db there.
Also, is that directory mismatch related to the error "Cannot find the git package needed to handle git sources"?
My full build steps are listed here:
https://bbs.archlinux.org/viewtopic.php?id=260048
I can build simple packages, but a number of packages I'm trying to build fail with different errors when I build them in a chroot, and I'm new to this. I'm trying to solve one error at a time.
Last edited by MountainX (2020-10-23 07:10:30)
Offline
git needs to be in the makedepends
Online
git needs to be in the makedepends
Thank you. I'm still getting the same error. Did I miss anything?
$ xargs -a tobuild.txt aur sync --chroot --sign --upgrades --noconfirm --database="$reponame" --directory=/$CHROOT
==> Using [test1] repository
-> pcloudcc: (none) -> 2.0.1-2
==> Retrieving package files
From https://aur.archlinux.org/pcloudcc
= [up to date] master -> origin/master
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
test1 is up to date
:: Starting full system upgrade...
there is nothing to do
container path: /mnt/chroots/test1/extra-x86_64
Running makechrootpkg -cu --
==> Synchronizing chroot copy [/mnt/chroots/test1/extra-x86_64/root] -> [myuser]...done
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
test1 is up to date
:: Starting full system upgrade...
there is nothing to do
==> Making package: pcloudcc 2.0.1-2 (Tue 20 Oct 2020 10:14:00 PM EDT)
==> Retrieving sources...
-> Updating pcloudcc git repo...
Fetching origin
==> Validating source files with sha256sums...
pcloudcc ... Skipped
==> ERROR: Cannot find the git package needed to handle git sources.
==> ERROR: Build failed, check /mnt/chroots/test1/extra-x86_64/myuser/build
xargs: aur: exited with status 255; aborting
$ cat pcloudcc/PKGBUILD
# Maintainer: coxackie
# Contributor: plague-doctor
pkgver=2.0.1
pkgrel=2
pkgname="pcloudcc"
pkgdesc="A simple linux console client for pCloud cloud storage."
arch=('x86_64')
url="https://github.com/pcloudcom/console-client"
license=('GPL')
depends=('zlib' 'fuse')
makedepends=('cmake' 'boost' 'git')
source=("$pkgname"::"git+https://github.com/pcloudcom/console-client.git")
sha256sums=('SKIP')
build() {
cd "$srcdir/$pkgname/pCloudCC/lib/pclsync"
make clean
make fs
cd "$srcdir/$pkgname/pCloudCC/lib/mbedtls"
cmake .
make clean
make
cd "$srcdir/$pkgname/pCloudCC"
cmake .
make
}
package() {
install -d "$pkgdir/usr/"{bin,lib}
install -Dm775 "$srcdir/pcloudcc/pCloudCC/pcloudcc" "$pkgdir/usr/bin/pcloudcc"
install -Dm664 "$srcdir/pcloudcc/pCloudCC/libpcloudcc_lib.so" "$pkgdir/usr/lib/libpcloudcc_lib.so"
}
Offline
Using ther PKGUILD posted:
extra-x86_64-build
:: Synchronizing package databases...
core 130.4 KiB 1402 KiB/s 00:00 [######################] 100%
extra 1633.9 KiB 4.34 MiB/s 00:00 [######################] 100%
community 5.2 MiB 7.45 MiB/s 00:01 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) expat-2.2.10-2
Total Download Size: 0.11 MiB
Total Installed Size: 0.36 MiB
Net Upgrade Size: 0.05 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
expat-2.2.10-2-x... 107.8 KiB 26.3 MiB/s 00:00 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
:: Processing package changes...
(1/1) upgrading expat [######################] 100%
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [builduser]...done
==> Making package: pcloudcc 2.0.1-2 (Wed Oct 21 12:53:35 2020)
==> Retrieving sources...
-> Cloning pcloudcc git repo...
Cloning into bare repository '/tmp/test/pcloudcc'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 12116 (delta 0), reused 0 (delta 0), pack-reused 12112
Receiving objects: 100% (12116/12116), 27.85 MiB | 7.89 MiB/s, done.
Resolving deltas: 100% (7286/7286), done.
==> Validating source files with sha256sums...
pcloudcc ... Skipped
==> Making package: pcloudcc 2.0.1-2 (Wed 21 Oct 2020 12:53:43 AM)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (2) fuse-common-3.10.0-1 fuse2-2.9.9-4
Total Installed Size: 0.45 MiB
:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
:: Processing package changes...
(1/2) installing fuse-common [######################] 100%
(2/2) installing fuse2 [######################] 100%
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
Packages (13) boost-libs-1.72.0-2 jsoncpp-1.9.4-1 libnsl-1.3.0-1
libuv-1.40.0-1 pcre2-10.35-1 perl-error-0.17029-2
perl-mailtools-2.21-4 perl-timedate-2.33-2 rhash-1.4.0-1
shared-mime-info-2.0+1+g6bf9e4f-2 boost-1.72.0-2 cmake-3.18.4-1
git-2.29.0-1
Total Installed Size: 271.02 MiB
:: Proceed with installation? [Y/n]
(13/13) checking keys in keyring [######################] 100%
(13/13) checking package integrity [######################] 100%
(13/13) loading package files [######################] 100%
(13/13) checking for file conflicts [######################] 100%
:: Processing package changes...
( 1/13) installing shared-mime-info [######################] 100%
( 2/13) installing jsoncpp [######################] 100%
Optional dependencies for jsoncpp
jsoncpp-doc: documentation
( 3/13) installing libnsl [######################] 100%
( 4/13) installing libuv [######################] 100%
( 5/13) installing rhash [######################] 100%
( 6/13) installing cmake [######################] 100%
Optional dependencies for cmake
qt5-base: cmake-gui
( 7/13) installing boost-libs [######################] 100%
Optional dependencies for boost-libs
openmpi: for mpi support
( 8/13) installing boost [######################] 100%
Optional dependencies for boost
python: for python bindings
python2: for python2 bindings
( 9/13) installing perl-error [######################] 100%
(10/13) installing perl-timedate [######################] 100%
(11/13) installing perl-mailtools [######################] 100%
(12/13) installing pcre2 [######################] 100%
(13/13) installing git [######################] 100%
Optional dependencies for git
tk: gitk and git gui
perl-libwww: git svn
perl-term-readkey: git svn and interactive.singlekey setting
perl-mime-tools: git send-email
perl-net-smtp-ssl: git send-email TLS support
perl-authen-sasl: git send-email TLS support
perl-mediawiki-api: git mediawiki support
perl-datetime-format-iso8601: git mediawiki support
perl-lwp-protocol-https: git mediawiki https support
perl-cgi: gitweb (web interface) support
python: git svn & git p4
subversion: git svn
org.freedesktop.secrets: keyring credential helper
libsecret: libsecret credential helper [installed]
:: Running post-transaction hooks...
(1/2) Warn about old perl modules
(2/2) Updating the MIME type database...
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Creating working copy of pcloudcc git repo...
Cloning into 'pcloudcc'...
done.
==> Starting build()...
rm -f *~ *.o libpsynclib.a ./lib/poverlay_linux/*.o ./lib/poverlay_linux/overlay_client
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pcompat.o pcompat.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o psynclib.o psynclib.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o plocks.o plocks.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o plibs.o plibs.c
pcompat.c: In function ‘psync_list_dir’:
pcompat.c:2507:3: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
2507 | while (!readdir_r(dh, entry, &de) && de)
| ^~~~~
In file included from pcompat.c:67:
/usr/include/dirent.h:183:12: note: declared here
183 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
pcompat.c: In function ‘psync_list_dir_fast’:
pcompat.c:2595:3: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
2595 | while (!readdir_r(dh, entry, &de) && de)
| ^~~~~
In file included from pcompat.c:67:
/usr/include/dirent.h:183:12: note: declared here
183 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
pcompat.c: In function ‘psync_deviceid’:
pcompat.c:3465:5: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
3465 | while (!readdir_r(dh, &entry, &de) && de)
| ^~~~~
In file included from pcompat.c:67:
/usr/include/dirent.h:183:12: note: declared here
183 | extern int readdir_r (DIR *__restrict __dirp,
| ^~~~~~~~~
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pcallbacks.o pcallbacks.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pdiff.o pdiff.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pstatus.o pstatus.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o papi.o papi.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o ptimer.o ptimer.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pupload.o pupload.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pdownload.o pdownload.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pfolder.o pfolder.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o psyncer.o psyncer.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o ptasks.o ptasks.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o psettings.o psettings.c
psyncer.c: In function ‘psync_create_local_folder_in_db’:
psyncer.c:208:30: warning: ‘dbfolderid’ may be used uninitialized in this function [-Wmaybe-uninitialized]
208 | if (lfolderid && dbfolderid!=folderid){
| ~~~~~~~~~~^~~~~~~~~~
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pnetlibs.o pnetlibs.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pcache.o pcache.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pscanner.o pscanner.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o plist.o plist.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o plocalscan.o plocalscan.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o plocalnotify.o plocalnotify.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pp2p.o pp2p.c
plocalnotify.c: In function ‘add_dir_scan’:
plocalnotify.c:107:5: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
107 | while (!readdir_r(dh, entry, &de) && de)
| ^~~~~
In file included from /usr/include/features.h:465,
from /usr/include/sys/types.h:25,
from pcompat.h:110,
from plocalnotify.c:28:
/usr/include/dirent.h:189:12: note: declared here
189 | extern int __REDIRECT (readdir_r,
| ^~~~~~~~~~
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pcrypto.o pcrypto.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pssl.o pssl.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pfileops.o pfileops.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o ptree.o ptree.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o ppassword.o ppassword.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o prunratelimit.o prunratelimit.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pmemlock.o pmemlock.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pnotifications.o pnotifications.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pexternalstatus.o pexternalstatus.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o publiclinks.o publiclinks.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pbusinessaccount.o pbusinessaccount.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pcontacts.o pcontacts.c
publiclinks.c: In function ‘do_psync_tree_public_link’:
publiclinks.c:398:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
398 | if (ids1)
| ^~
publiclinks.c:400:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
400 | if (ids2)
| ^~
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o poverlay.o poverlay.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o poverlay_lin.o poverlay_lin.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o poverlay_mac.o poverlay_mac.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o poverlay_win.o poverlay_win.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pcompression.o pcompression.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pasyncnet.o pasyncnet.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o ppathstatus.o ppathstatus.c
cc -Wall -Wpointer-arith -O2 -g -fno-stack-protector -fomit-frame-pointer -fPIC -DP_OS_LINUX -I../sqlite -DP_SSL_MBEDTLS -I../mbedtls/include -D_FORTIFY_SOURCE=2 -c -o pdevice_monitor.o pdevice_monitor.c
pdevice_monitor.c:338:10: fatal error: libudev.h: No such file or directory
338 | #include <libudev.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: pdevice_monitor.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/builduser/build
Offline
Using ther PKGUILD posted:
extra-x86_64-build ... pdevice_monitor.c:338:10: fatal error: libudev.h: No such file or directory 338 | #include <libudev.h> | ^~~~~~~~~~~ compilation terminated. make: *** [<builtin>: pdevice_monitor.o] Error 1 make: *** Waiting for unfinished jobs.... ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/builduser/build
Good to know it's not just me. Since I'm new at this it is sometimes hard to tell whether I'm making a mistake or there is an actual problem. Feedback like this helps. I will leave a message on the AUR project page for pcloudcc.
Offline
OK, I see others already left comments and the maintainer said:
I have created the git AUR package pcloudcc-git, as it reflects correctly what this is about (building from upstream). I have submitted a request to merge this package with the git version. Even if it is not granted, I will be disowning this package.
https://aur.archlinux.org/packages/pcloudcc-git/
So I'm marking this as solved. Thanks for the feedback in this thread.
Offline
Good to know it's not just me.
That's a completely different error to the one you were reporting, did you fix that? How?
The missing libudev.h could be solved by adding systemd as a makedep.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
The error you posted in post #3 does not match the error I posted in post #4.
diff --git a/PKGBUILD b/PKGBUILD
index 47d8fe9..dd669d1 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ arch=('x86_64')
url="https://github.com/pcloudcom/console-client"
license=('GPL')
depends=('zlib' 'fuse')
-makedepends=('cmake' 'boost')
+makedepends=('cmake' 'boost' 'systemd' 'git')
source=("$pkgname"::"git+https://github.com/pcloudcom/console-client.git")
sha256sums=('SKIP')
However as pcloudcc is not using a pinned commit and there is already pcloudcc-git which although also missing the same makedepends does provide a pkgver function and uses the -git suffix for the pkgname, pccloudcc may be removed from AUR.
Offline
MountainX wrote:Good to know it's not just me.
That's a completely different error to the one you were reporting, did you fix that? How?
The missing libudev.h could be solved by adding systemd as a makedep.
I saw that the error was different, but you also used a different build method. I was using aurutils and you used extra-x86_64-build. Since the PKGBUILD did not work with either, and the maintainer said he was abandoning that package in favor of pcloudcc-git, I assumed we didn't need to investigate this PKGBUILD any further. However, I did not try building pcloudcc-git in a chroot yet. That's on my list of things to do.
Offline
MountainX wrote:Good to know it's not just me.
That's a completely different error to the one you were reporting, did you fix that? How?
The missing libudev.h could be solved by adding systemd as a makedep.
OK, so I marked this as solved prematurely. I reverted that.
I now get the same error as you.
Since pcloudcc and pcloudcc-git were merged, and since the maintainer asked for feedback, the issue remains open.
Offline
You never determined why aurutils was not installing the git package in the chroot when it was listed in makedepends?
Offline
The missing libudev.h could be solved by adding systemd as a makedep.
I just built the package without errors (in a chroot) after adding systemd as a makedep in PKGBUILD.
Offline
You never determined why aurutils was not installing the git package in the chroot when it was listed in makedepends?
No, I did not find out why. I appreciate your interest. I'm trying to learn more about building in a chroot. If you are interested in looking into details of what I'm doing, please take a look at https://bbs.archlinux.org/viewtopic.php?id=260048
I would enjoy someone reviewing that. I'm willing to turn those steps into a wiki or forum post (if appropriate) once they are reviewed (and improved) by someone with more experience. I'll do the testing, etc.
Offline