You are not logged in.

#1 2024-01-24 02:21:14

archdroid20
Member
Registered: 2024-01-24
Posts: 3

Can't build packages

I'm trying to build packages from the aur and in the gpg.conf in have my default gpg key so i don't have to pass the --key flag when i am doing the makepkg --sign. when i try to run the makepkg --sign it just hang saying [==> Entering fakeroot environment...]. i have tried it by removing the default key from the gpg.conf and runing just th makepkg and it still hang at the same message.
below i am including some of the errors that i get and parts of my makepkg.conf

[solana@archdroid yay]$ makepkg --sign
==> Making package: yay 12.2.0-1 (Tue 23 Jan 2024 05:32:27 PM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-12.2.0.tar.gz
==> Validating source files with sha256sums...
    yay-12.2.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-12.2.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Nothing to be done for 'build'.
==> Entering fakeroot environment...
^C
==> ERROR: Aborted by user! Exiting...

[solana@archdroid yay]$ makepkg --sign
==> Making package: yay 12.2.0-1 (Tue 23 Jan 2024 05:49:20 PM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-12.2.0.tar.gz
==> Validating source files with sha256sums...
    yay-12.2.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-12.2.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Nothing to be done for 'build'.
==> Entering fakeroot environment...

added the full Makepkg.conf

#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
          'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::breezy'
            'fossil::fossil'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#DEBUG_RUSTFLAGS="-C debuginfo=2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#-- lto:        Add compile flags for building with link time optimization
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)

#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
DESTDIR=/home/solana/packages
#-- Source cache: specify a fixed directory where source files will be cached
SRCDEST=/home/solana/packages/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
PACKAGER="Solana Rose <redacted@icloud.com>"
#-- Specify a key to use for package signing
GPGKEY="redacted"

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -z -q -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'

#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=()

EDIT added more info

[solana@archdroid yay]$ stat .
  File: .
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 8,3	Inode: 15206337    Links: 6
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  solana)   Gid: ( 1000/  solana)
Access: 2024-01-24 11:32:10.872990775 -0800
Modify: 2024-01-24 11:32:10.772991323 -0800
Change: 2024-01-24 11:32:10.772991323 -0800
 Birth: 2024-01-22 18:36:58.474264220 -0800
[solana@archdroid bash]$ uname -a
Linux archdroid 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 GNU/Linux

not sure if my mount points are needed but i included them .

# /dev/sda3
UUID=88b0add4-c404-41b8-a7a1-0f27b1a5b067	/         	ext4      	rw,relatime	0 1

# /dev/sda1
UUID=2FC6-C492      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda2
UUID=0b4e0bda-e508-41df-bfa2-286061975003	none      	swap      	defaults  	0 0

I've been trying for 2 days to get packages built but no luck Any help would be appreciated then you all.

I absolutely love using arch.

Last edited by archdroid20 (2024-01-24 19:36:07)

Offline

#2 2024-01-24 03:35:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,231
Website

Re: Can't build packages

archdroid20 wrote:

i am including some of the errors that i get and parts of my makepkg.conf

And would you like some of the answer or parts of a solution?  If not, please edit your post to include complete logs and config (other than private information that can be redacted as you did w/ your key - you may wish to redact your email as well).

But assuming this is just an issue with creating the fakeroot, the result of each of the following from that same working directory would be good:

stat .
mount
uname -a

Last edited by Trilby (2024-01-24 04:12:12)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-01-24 23:03:51

archdroid20
Member
Registered: 2024-01-24
Posts: 3

Re: Can't build packages

#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
          'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::breezy'
            'fossil::fossil'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#DEBUG_RUSTFLAGS="-C debuginfo=2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#-- lto:        Add compile flags for building with link time optimization
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)

#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
DESTDIR=/home/solana/packages
#-- Source cache: specify a fixed directory where source files will be cached
SRCDEST=/home/solana/packages/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
PACKAGER="Solana Rose <redacted@icloud.com>"
#-- Specify a key to use for package signing
GPGKEY="redacted"

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -z -q -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'

#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=()

results of stat .

[solana@archdroid yay]$ stat .
  File: .
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 8,3	Inode: 15206337    Links: 6
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  solana)   Gid: ( 1000/  solana)
Access: 2024-01-24 11:32:10.872990775 -0800
Modify: 2024-01-24 11:32:10.772991323 -0800
Change: 2024-01-24 11:32:10.772991323 -0800
 Birth: 2024-01-22 18:36:58.474264220 -0800

results of uname -a

[solana@archdroid bash]$ uname -a
Linux archdroid 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 GNU/Linux

not sure if my mount points are needed but i included them .

# /dev/sda3
UUID=88b0add4-c404-41b8-a7a1-0f27b1a5b067	/         	ext4      	rw,relatime	0 1

# /dev/sda1
UUID=2FC6-C492      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sda2
UUID=0b4e0bda-e508-41df-bfa2-286061975003	none      	swap      	defaults  	0 0

Offline

#4 2024-01-25 08:57:36

seth
Member
Registered: 2012-09-03
Posts: 57,089

Re: Can't build packages

ls -lR /home/solana/packages /home/srcpackages

Can you

fakeroot /bin/bash

?

Online

#5 2024-01-25 10:30:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,460
Website

Offline

#6 2024-01-25 19:58:13

archdroid20
Member
Registered: 2024-01-24
Posts: 3

Re: Can't build packages

seth wrote:
ls -lR /home/solana/packages /home/srcpackages

Can you

fakeroot /bin/bash

?

[solana@archdroid reposign]$ ls -lR /home/solana/packages/home/solana/srcpackages
ls: cannot access '/home/solana/packages/home/solana/srcpackages': No such file or directory
[solana@archdroid reposign]$ ls -lR /home/solana/packages /home/solana/srcpackages
/home/solana/packages:
total 0

/home/solana/srcpackages:
total 0
[solana@archdroid reposign]$ fakeroot /bin/bash
[root@archdroid reposign]# makepkg 
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
[root@archdroid reposign]# 

Offline

#7 2024-01-25 20:02:35

seth
Member
Registered: 2012-09-03
Posts: 57,089

Re: Can't build packages

There is a blank in my post, so no idea why you posted the result of your typo and the idea of fakeroot /bin/bash wasn't to run makepkg there, just to see whether fakeroot works.

However, Allans link is obviously more than relevant.

Online

Board footer

Powered by FluxBB