You are not logged in.

#1 2012-01-19 19:55:31

*nixer
Member
Registered: 2011-11-11
Posts: 56

Makepkg errors everwhere after pacman 4.x update

I don't know what it is, but ever since updating pacman to the 4.x series, I've been getting errors on almost every makepkg build. Running makepkg manually, or through yaourt, doesn't seem to make a difference.

==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Finished making:

The packages install, and seem to run properly. What does this mean?

The error only appears after the compressing man pages line. Could my installed localepurge be the culprit? It worked fine pre-4.x pacman.

Last edited by *nixer (2012-01-19 19:55:48)

Offline

#2 2012-01-19 20:05:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Makepkg errors everwhere after pacman 4.x update

Please post your /etc/makepkg.conf file.

Offline

#3 2012-01-19 20:15:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Makepkg errors everwhere after pacman 4.x update

...and your makepkg.conf.pacnew


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2012-01-19 20:16:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Makepkg errors everwhere after pacman 4.x update

Nah, he merged it already.

Offline

#5 2012-01-21 19:23:10

*nixer
Member
Registered: 2011-11-11
Posts: 56

Re: Makepkg errors everwhere after pacman 4.x update

I didn't have anything changed other than native flag, but here it is.

#
# /etc/makepkg.conf
#

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

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

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

#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
#  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
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(fakeroot !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
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
#  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
#-- 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
#-- upx:       Compress binary executable files using UPX
#
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- 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)

#########################################################################
# 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/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

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

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

-edit-
Fixed format tags.

Last edited by *nixer (2012-01-21 19:47:55)

Offline

#6 2012-01-21 19:28:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Makepkg errors everwhere after pacman 4.x update

When pasting code, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

Offline

#7 2012-01-21 21:07:26

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

Re: Makepkg errors everwhere after pacman 4.x update

Looks like it is failing while compressing man pages.   You can "echo" debug messages there to see if you can limit the issues to a single  line.

Offline

#8 2012-01-21 23:02:33

*nixer
Member
Registered: 2011-11-11
Posts: 56

Re: Makepkg errors everwhere after pacman 4.x update

Allan wrote:

You can "echo" debug messages there to see if you can limit the issues to a single  line.

I don't follow.

How do I do this? I've never debugged anything short of programs with debug options in their gui interfaces.

Offline

#9 2012-01-22 04:22:49

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: Makepkg errors everwhere after pacman 4.x update

I had this problem recently too (same error on same spot in the build), but for me only when using packer. Manually using makepkg didn't give me any errors, and neither did other aur helpers like pacaur.

Offline

#10 2012-01-22 14:13:07

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: Makepkg errors everwhere after pacman 4.x update

yes, same here, pacman is ok, but the errors happen when using "packer" now.

ie:
...
  -> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
  -> Stripping unneeded symbols from binaries and libraries...
...

thx.

Last edited by scjet (2012-01-22 14:17:48)


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#11 2012-01-22 17:45:37

diemuzi
Member
From: Pensacola, Florida
Registered: 2011-09-08
Posts: 10
Website

Re: Makepkg errors everwhere after pacman 4.x update

I have the same situation but the easy fix was to edit the /etc/makepkg.conf and find this line:

OPTIONS=(strip docs libtool emptydirs zipman purge !upx)

Change it to this:

OPTIONS=(strip docs libtool emptydirs !zipman purge !upx)

Basically you are disabling the compress manual with gzip option.

For me, this did the trick and I no longer receive the ==> ERROR: An unknown error has occurred. Exiting...


MSF RiderCoach at http://bikertraining.net

Offline

#12 2012-01-22 20:59:40

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

Re: Makepkg errors everwhere after pacman 4.x update

Or we could find and fix the issue....

Offline

#13 2012-01-22 22:29:51

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Makepkg errors everwhere after pacman 4.x update

can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?


Arch i686 on Phenom X4 | GTX760

Offline

#14 2012-01-24 11:14:55

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: Makepkg errors everwhere after pacman 4.x update

stefanwilkens wrote:

can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?

You could just run a "packer" yourself, and you'll find lots of those errors.


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#15 2012-01-24 12:09:00

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

Re: Makepkg errors everwhere after pacman 4.x update

So not a makepkg problem but a packer one?

Offline

#16 2012-01-24 14:44:24

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: Makepkg errors everwhere after pacman 4.x update

here's as example of (one of many others ?), "fvwm-patched" in AUR

----------------------------------------------------------------------------------
"...
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
.....
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Finished making: fvwm-patched 2.6.3-1 (Tue Jan 24 09:39:03 EST 2012)
------------------------------------------------------------------------------------------------------

and here's the PKGBUILD:
https://aur.archlinux.org/packages/fv/f … d/PKGBUILD

Last edited by scjet (2012-01-24 14:57:20)


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#17 2012-01-24 15:01:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Makepkg errors everwhere after pacman 4.x update

I've just used makepkg to build that package:

...
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/karol/apps/fvwm-patched/src/fvwm-2.6.3'
make[1]: Leaving directory `/home/karol/apps/fvwm-patched/src/fvwm-2.6.3'
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: fvwm-patched 2.6.3-1 (wto, 24 sty 2012, 15:55:09 CET)
==> Installing package fvwm-patched with pacman -U...
loading packages...
resolving dependencies...
looking for inter-conflicts...

Targets (1):

Name          Old Version  New Version  Net Change

fvwm-patched               2.6.3-1        7,15 MiB

Total Installed Size:   7,15 MiB

Proceed with installation? [Y/n] 

No errors. Thus, your error remains unknown ;P

Offline

#18 2012-01-24 15:53:28

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Makepkg errors everwhere after pacman 4.x update

scjet wrote:
stefanwilkens wrote:

can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?

You could just run a "packer" yourself, and you'll find lots of those errors.

packer is a third party thing to arch, if you have an issue that only happens while using packer you should take it to packer's github, forum topic or AUR comments.

we're interested to find out if the same happens while building this package with makepkg itself rather than through packer, as the first post in this topic mentioned.

you should try to build that package with makepkg to rule out a fault in makepkg.

Last edited by stefanwilkens (2012-01-24 15:53:57)


Arch i686 on Phenom X4 | GTX760

Offline

#19 2012-01-24 21:40:05

scjet
Banned
Registered: 2011-07-23
Posts: 172

Re: Makepkg errors everwhere after pacman 4.x update

stefanwilkens wrote:
scjet wrote:
stefanwilkens wrote:

can any of you pass us some PKGBUILD files that are failing for you so we can start getting to the bottom of this?

You could just run a "packer" yourself, and you'll find lots of those errors.

packer is a third party thing to arch, if you have an issue that only happens while using packer you should take it to packer's github, forum topic or AUR comments.

we're interested to find out if the same happens while building this package with makepkg itself rather than through packer, as the first post in this topic mentioned.

you should try to build that package with makepkg to rule out a fault in makepkg.



I already posted it up to (AUR) packer maintainer... a few days ago.
http://aur.archlinux.org/packages.php?ID=33378

  but thx anyway,
I'll just wait until "packer" is fixed. 
In the meantime, when I DO run into these OBVIOUS errors, as mentioned numerous times in this thread again,
also with "makepkg", then I'll post them all here for you to see.

Last edited by scjet (2012-01-24 21:48:25)


The "BSD" things in life are "Free", and "Open", and so is "Arch"

Offline

#20 2012-01-25 00:01:16

sputnick
Member
From: Near Paris
Registered: 2009-05-27
Posts: 40

Re: Makepkg errors everwhere after pacman 4.x update

Hi guys, I'm encountering the same issue and packer is not the problem : makepkg display the infamous error with weboob-git AUR package :

(...)
changing mode of /var/abs/local/yaourtbuild/weboob-git/pkg/usr/bin/wetboobs to 755
changing mode of /var/abs/local/yaourtbuild/weboob-git/pkg/usr/bin/traveloob to 755
==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Finished making: weboob-git 20120125-1 (Wed Jan 25 00:52:43 CET 2012)
==> Installing package weboob-git with pacman -U...
loading packages...
warning: weboob-git-20120125-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): weboob-git-20120125-1

Total Installed Size:   6.18 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] Y
(1/1) checking package integrity                                                                                          [##########################################################################] 100%
(1/1) loading package files                                                                                               [##########################################################################] 100%
(1/1) checking for file conflicts                                                                                         [##########################################################################] 100%
(1/1) upgrading weboob-git                                                                                                [##########################################################################] 100%
root@FreAkyLab:/var/abs/local/yaourtbuild/weboob-git# 

makepkg is bash, so it's simple to debug :

The find command fails to find some man pages (qvideoob.1)  :

# LANG=C bash -x /usr/bin/makepkg -si --asroot
(...)
+ IFS='                                                                                                                                                                                                    
'                                                                                                                                                                                                          
+ read -rd '' -a hardlinks                                                                                                                                                                                 
++ find usr/man usr/info usr/share/man usr/share/info usr/local/man usr/local/info usr/local/share/man usr/local/share/info 'opt/*/man' 'opt/*/info' '!' -name qvideoob.1 -samefile usr/share/man/man1/qvideoob.1
++++ gettext 'An unknown error has occurred. Exiting...'                                                                                                                                                   
+++ trap_exit 'An unknown error has occurred. Exiting...'                                                                                                                                                  
+++ ((  ! INFAKEROOT  ))                                                                                                                                                                                   
+++ echo                                                                                                                                                                                                   
+++ error 'An unknown error has occurred. Exiting...'                                                                                                                                                      
+++ local 'mesg=An unknown error has occurred. Exiting...'                                                                                                                                                 
+++ shift                                                                                                                                                                                                  
++++ gettext ERROR:                                                                                                                                                                                        
+++ printf '==> ERROR: An unknown error has occurred. Exiting...\n'                                                                                                                                        
==> ERROR: An unknown error has occurred. Exiting...                                                                                                                                                       
+++ [[ -n '' ]]                                                                                                                                                                                            
+++ exit 1                                                                                                                                                                                                 
+ true                                                                                                                                                                                                     
+ rm -f                                                                                                                                                                                                    
+ gzip -9 usr/share/man/man1/qvideoob.1
(...)

Offline

#21 2012-01-25 00:10:15

sputnick
Member
From: Near Paris
Registered: 2009-05-27
Posts: 40

Re: Makepkg errors everwhere after pacman 4.x update

Offline

#22 2012-01-25 00:53:03

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Makepkg errors everwhere after pacman 4.x update

Uh. I think you reported the bug in the wrong place. Thanks for actually posting debug output -- I know where this is breaking now.

Offline

#23 2012-01-25 02:07:31

sputnick
Member
From: Near Paris
Registered: 2009-05-27
Posts: 40

Re: Makepkg errors everwhere after pacman 4.x update

falconindy wrote:

Uh. I think you reported the bug in the wrong place. Thanks for actually posting debug output -- I know where this is breaking now.

Ok, thanks, closed. tongue

Offline

#24 2012-01-26 00:18:58

*nixer
Member
Registered: 2011-11-11
Posts: 56

Re: Makepkg errors everwhere after pacman 4.x update

Yaourt 1.0.1-1:

Through Yaourt.

==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Finished making: yaourt 1.0.1-1

==> Continue installing yaourt ? [Y/n]
==> [v]iew package contents [c]heck package with namcap
==> ---------------------------------------------------
==> 

Through makepkg directly.

==> Tidying install...
  -> Purging unwanted files...
  -> Compressing man and info pages...
==> ERROR: An unknown error has occurred. Exiting...
==> ERROR: An unknown error has occurred. Exiting...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Finished making: yaourt 1.0.1-1 

There are more packages like this. Even if it is an user configuration problem on my end, I don't know how to debug this.

Last edited by *nixer (2012-01-26 00:20:08)

Offline

#25 2012-01-26 01:41:23

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Makepkg errors everwhere after pacman 4.x update

I have the same problem. I just merged in my makepkg.conf.pacnew and now about 1/3 of the packages installed through yaourt is giving the "==> ERROR: An unknown error has occurred. Exiting..." error. I don't have the list of packages, though.

Offline

Board footer

Powered by FluxBB