You are not logged in.

#1 2009-12-26 18:38:42

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

makepkg fails to create package

Hello everyone,

I'd like to install something from AUR but when I go into the folder of the extracted package and do makepkg everything seems to work but in the end:

(I extract with the GUI in nautilus but I suppose that makes no change.)

[quarki@powerFrench bin32-skype]$ makepkg
==> Making package: bin32-skype 2.1.0.47-5 x86_64 (Sat Dec 26 18:51:58 CET 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found skype-2.1.0.47.tar.bz2 in build dir
==> Validating source files with md5sums...
    skype-2.1.0.47.tar.bz2 ... Passed
==> Extracting Sources...
  -> Extracting skype-2.1.0.47.tar.bz2 with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Adding install script...
  -> Compressing package...
/usr/bin/makepkg: line 1020: /home/quarki/packages/bin32-skype-2.1.0.47-5-x86_64.pkg.tar: No such file or directory
==> ERROR: Failed to create package file.

What is wrong and what can I do? (System is up to date)

Thanks in advance. wink

Offline

#2 2009-12-27 08:04:48

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: makepkg fails to create package

What PKGBUILD are you using? That might help us to diagnoze the problem...


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#3 2009-12-27 14:56:14

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: makepkg fails to create package

Here's the PKGBUILD I used but I also tried to install some library from the AUR and the problem was the same.

# Maintainer: speed145a/Jonny James <speed145a@aol.com>
# Contributor: Ambi <ak_ambi@op.pl>
# Contributor: Zerial <fernando@zerial.org>
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
# Contributor: dongiovanni

_pkgresourcename=skype
pkgname=bin32-skype
pkgver=2.1.0.47
pkgrel=5
pkgdesc="P2P software for high-quality voice communication"
url="http://www.skype.com/"
license=(custom)
arch=(x86_64)
provides=('skype')
source=(http://www.skype.com/go/getskype-linux-beta-dynamic/$_pkgresourcename-$pkgver.tar.bz2)
depends=('lib32-libxi' 'lib32-libxrender' 'lib32-libxrandr' 'lib32-freetype2' 'lib32-fontconfig' 'lib32-openssl' ' lib32-pcre' 'lib32-alsa-lib' 'lib32-dbus-core' 'lib32-libxv' 'lib32-libxss' 'lib32-glib2' 'lib32-e2fsprogs' 'lib32-qt')
optdepends=('lib32-libv4l: support for webcams using the GSPCA kernel')
conflicts=('bin32-pulseaudio' 'bin32-skype-staticqt')
install=skype.install
md5sums=('7396164fb926705300d72cd478458d36')
options=(!strip)

build() {
  cd $startdir/src/$_pkgresourcename-$pkgver
  install -m 755 -d $startdir/pkg/usr/share/$_pkgresourcename/{avatars,lang,sounds}
  install -m 644 avatars/* $startdir/pkg/usr/share/$_pkgresourcename/avatars
  install -m 644 lang/* $startdir/pkg/usr/share/$_pkgresourcename/lang
  install -m 644 sounds/* $startdir/pkg/usr/share/$_pkgresourcename/sounds
  install -m 755 -D $_pkgresourcename $startdir/pkg/usr/bin/$_pkgresourcename
  install -m 755 -D $_pkgresourcename $startdir/pkg/usr/bin/$_pkgresourcename
  install -m 644 -D $_pkgresourcename.conf $startdir/pkg/etc/dbus-1/system.d/$_pkgresourcename.conf
  install -m 644 -D icons/SkypeBlue_16x16.png $startdir/pkg/usr/share/icons/hicolor/16x16/$_pkgresourcename.png
  install -m 644 -D icons/SkypeBlue_32x32.png $startdir/pkg/usr/share/icons/hicolor/32x32/$_pkgresourcename.png
  install -m 644 -D icons/SkypeBlue_48x48.png $startdir/pkg/usr/share/icons/hicolor/48x48/$_pkgresourcename.png
  install -m 644 -D icons/SkypeBlue_48x48.png $startdir/pkg/usr/share/pixmaps/$_pkgresourcename.png
  install -m 644 -D $_pkgresourcename.desktop $startdir/pkg/usr/share/applications/$_pkgresourcename.desktop
  install -m 644 -D LICENSE $startdir/pkg/usr/share/licenses/$_pkgresourcename/LICENSE
}

Offline

#4 2009-12-27 15:00:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: makepkg fails to create package

did you modfied something in makepkg.conf or something else?
/usr/bin/makepkg: line 1020: /home/quarki/packages/bin32-skype-2.1.0.47-5-x86_64.pkg.tar: No such file or directory

Last edited by wonder (2009-12-27 16:16:35)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-12-27 15:45:31

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: makepkg fails to create package

The only thing I changed is the PKGDEST. (As described in the wiki.)

(That's my /etc/makepkg.conf)

#-- Exclusive: will only run on x86_64
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- 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=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs:      Save doc directories specified by DOC_DIRS
#-- libtool:   Leave libtool (.la) 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
#
OPTIONS=(strip docs libtool emptydirs zipman purge)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- 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})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
PKGDEST=/home/quarki/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:

Offline

#6 2009-12-27 15:50:36

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: makepkg fails to create package

that directory exists? /home/quarki/packages


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2009-12-27 16:09:12

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: makepkg fails to create package

Now it does...

Stupid mistake... I feel shame. wink

Thank you for the fast support!

Offline

Board footer

Powered by FluxBB