You are not logged in.
[usr@archhost cower]$ sudo makepkg --asroot
[sudo] password for usr:
==> Making package: cower 12-1 (Mon Dec 8 17:27:04 UTC 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found cower-12.tar.gz
-> Found cower-12.tar.gz.sig
==> Validating source files with md5sums...
cower-12.tar.gz ... Passed
cower-12.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
cower-12.tar.gz ... FAILED (unknown public key 1EB2638FF56C0C53)
==> WARNING: Warnings have occurred while verifying the signatures.
Please make sure you really trust them.
==> Extracting sources...
-> Extracting cower-12.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
/home/usr/builds/cower/PKGBUILD: line 19: make: command not found
==> ERROR: A failure occurred in build().
Aborting...
I am not new to Arch, but I am new to building pakages and new to this error. XD It seems like there is something missing in the pkgbuild file for cower, but idk what is missing. Any help would be great. Thanks in advance.
Last edited by SpidermanD5 (2014-12-08 17:50:53)
Offline
For one, why are you running makepkg with sudo? Just run it as your own user (no reason for super cow powers). You're getting that error because you don't have that key in your keyring. For me, makepkg warns but doesn't stop.
% makepkg -s
==> Making package: cower 12-1 (Mon Dec 8 12:34:55 EST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading cower-12.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22636 0 22636 0 0 84102 0 --:--:-- --:--:-- --:--:-- 84148
-> Downloading cower-12.tar.gz.sig...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 2596 0 --:--:-- --:--:-- --:--:-- 2585
==> Validating source files with md5sums...
cower-12.tar.gz ... Passed
cower-12.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
cower-12.tar.gz ... FAILED (unknown public key 1EB2638FF56C0C53)
==> WARNING: Warnings have occurred while verifying the signatures.
Please make sure you really trust them.
==> Extracting sources...
-> Extracting cower-12.tar.gz with bsdtar
==> Starting build()...
cc -std=c99 -g -pedantic -Wall -Wextra -pthread -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fdiagnostics-color -D_GNU_SOURCE -DCOWER_VERSION=\"12\" -D_FORTIFY_SOURCE=2 -pthread -Wl,-O1,--sort-common,--as-needed,-z,relro cower.c -lcurl -lalpm -lyajl -larchive -lcrypto -o cower
pod2man --section=1 --center="Cower Manual" --name="COWER" --release="cower 12" README.pod cower.1
==> Entering fakeroot environment...
==> Starting package()...
install -D -m755 cower "/scratch/cower/pkg/cower/usr/bin/cower"
install -D -m644 cower.1 "/scratch/cower/pkg/cower/usr/share/man/man1/cower.1"
install -D -m644 bash_completion "/scratch/cower/pkg/cower/usr/share/bash-completion/completions/cower"
install -D -m644 zsh_completion "/scratch/cower/pkg/cower/usr/share/zsh/site-functions/_cower"
install -D -m644 config "/scratch/cower/pkg/cower/usr/share/doc/cower/config"
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
-> Removing static library files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "cower"...
-> Generating .PKGINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: cower 12-1 (Mon Dec 8 12:34:56 EST 2014)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
make: command not found
Something is missing, but there's nothing wrong with the PKGBUILD. Read the Installing packages section of the AUR wiki page.
Last edited by alphaniner (2014-12-08 17:44:02)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Welcome to Arch Linux.
You are over complicating things. Don't run makepkg as root. As an almost universal rule, don't use the --asroot switch. I don't recall having ever needing to use it.
I just tested on my system. No issues.
ewaller@odin ~/devel/build/cower 1018 %ls -l
total 4
-rw-r--r-- 1 ewaller users 677 Nov 23 15:50 PKGBUILD
ewaller@odin ~/devel/build/cower 1019 %makepkg
==> Making package: cower 12-1 (Mon Dec 8 09:41:54 PST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading cower-12.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22636 0 22636 0 0 74297 0 --:--:-- --:--:-- --:--:-- 74216
-> Downloading cower-12.tar.gz.sig...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 287 100 287 0 0 1526 0 --:--:-- --:--:-- --:--:-- 1534
==> Validating source files with md5sums...
cower-12.tar.gz ... Passed
cower-12.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
cower-12.tar.gz ... Passed
==> Extracting sources...
-> Extracting cower-12.tar.gz with bsdtar
==> Starting build()...
cc -std=c99 -g -pedantic -Wall -Wextra -pthread -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_GNU_SOURCE -DCOWER_VERSION=\"12\" -D_FORTIFY_SOURCE=2 -pthread -Wl,-O1,--sort-common,--as-needed,-z,relro cower.c -lcurl -lalpm -lyajl -larchive -lcrypto -o cower
pod2man --section=1 --center="Cower Manual" --name="COWER" --release="cower 12" README.pod cower.1
==> Entering fakeroot environment...
==> Starting package()...
install -D -m755 cower "/home/ewaller/devel/build/cower/pkg/cower/usr/bin/cower"
install -D -m644 cower.1 "/home/ewaller/devel/build/cower/pkg/cower/usr/share/man/man1/cower.1"
install -D -m644 bash_completion "/home/ewaller/devel/build/cower/pkg/cower/usr/share/bash-completion/completions/cower"
install -D -m644 zsh_completion "/home/ewaller/devel/build/cower/pkg/cower/usr/share/zsh/site-functions/_cower"
install -D -m644 config "/home/ewaller/devel/build/cower/pkg/cower/usr/share/doc/cower/config"
==> Tidying install...
-> Purging unwanted files...
-> Removing libtool files...
-> Removing static library files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package "cower"...
-> Generating .PKGINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: cower 12-1 (Mon Dec 8 09:41:57 PST 2014)
ewaller@odin ~/devel/build/cower 1020 %ls
cower-12-1-x86_64.pkg.tar.xz cower-12.tar.gz cower-12.tar.gz.sig pkg PKGBUILD src
ewaller@odin ~/devel/build/cower 1021 %
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Did you install the "base-devel" group?
The error clearly shows you don't have the "make" command. The base-devel group includes the make package, and other packages, required for building from source.
Offline
make: command not found
Something is missing, but there's nothing wrong with the PKGBUILD. Read the Installing packages section of the AUR wiki page.
I missed that -- good catch.
Ensure that all of the prerequisites are installed.
Edit: I am just slow today -- everyone is posting faster than am I
Last edited by ewaller (2014-12-08 17:48:14)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Yes, it was the base-devels package, I just had to reinstall arch, recently, and I must have forgetten it. XD
Offline