You are not logged in.

#26 2014-06-10 19:06:01

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Perl 5.20 upgrade

Let me take a stab at this. Just to re-iterate, all architecture-dependent perl modules will need to be upgraded. You can upgrade officially packaged modules with pacman -Syu. This will not upgrade packages that were previously installed by cpan. This will not upgrade packages that were created by cpanp and perl-cpanplus-dist-arch.

Those of you having problems with "invalid version format" messages seem to be suffering from a locale bug. To be honest, this looks like a problem in the new version of perl. The quick fix mentioned earlier by gandalfmagic will require you to override the locale when running the program, by setting the runtime environment variable:

LC_ALL="en_US.utf8" <insert program name here>

The problems with version strings looks pretty deep, and I will have to research further. Another thread would be nice to have as well. The rest of the post is for people with segfault problems who need an alternate solution.

The perl modules that were built with the previous versions are no longer usable. But perl doesn't know this! The perl interpreter will still try to load them. This is causing segfaults. You need to either upgrade or remove these offending modules.

Step 1 - Upgrade official perl packages

This is a non-issue, you most likely already did this with a pacman -Syu. But check it out we're already on step two!

Step 2 - Delete modules from /usr/lib/perl5/site_perl

If you do not use the cpan shell you should still check to see if there are files under /usr/lib/perl5/site_perl! Some overly clever programs install things here in the background! You will have to delete these module files manually:

rm -rf /usr/lib/perl5/site_perl/*

The cpan shell installs all architecture-dependent modules under this directory. Any modules that link with C libraries are compiled as libraries, themselves. These are dynamic library with the .so file extension. The cpan shell even installs modules automatically, so if you run it once and didn't do anything there are probably files here! KILLEMALL.

mythtv has a crappy package that installs files to these directories. Re-install it after doing this.

Step 3 - Upgrade unofficial AUR or perl-cpanplus-dist-arch packages.

This is tougher, but to find them all you can use Bluewind's script or my following alternative. This one-liner will print all unofficial (aka. foreign), platform dependent, perl modules

pacman -Qml | fgrep 'usr/lib/perl5/vendor_perl' | awk '{print $1}' | sort -u | tee badpkgs

NOTE: This one liner does not check to see if a module is broken, but lists all unofficial packages which own platform-dependent modules files. The tee at the end writes output to the file named "badpkgs".

As you can see, all platform-dependent modules have their files stored under /usr/lib/perl5/vendor_perl. How you rebuild these depends on where you got them from. If you have very many to upgrade and most are from the AUR you might try redirecting the output to a file or to a pipe. Maybe try passing these to your favorite AUR helper. I dunno something like this:

cat badpkgs | xargs <insert super-cool-aur-helper here> --noconfirm -S

NOTE: This uses the file named "badpkgs" that was generated by the earlier one-liner.

Step 4 - Complain

If that doesn't work let me know. Also let me know if you have many perl-cpanplus-dist-arch packages to rebuild. If it is a real hassle I will try to come up with an automated solution. I am the author of perl-cpanplus-dist-arch and I feel responsible for users' suffering.

Last edited by juster (2014-06-10 19:22:34)

Offline

#27 2014-06-11 08:46:31

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: Perl 5.20 upgrade

juster wrote:

Step 2 - Delete modules from /usr/lib/perl5/site_perl
...
mythtv has a crappy package that installs files to these directories. Re-install it after doing this.

> pkgfile -r site_perl
extra/kdebindings-perlkde
extra/kdebindings-perlqt
community/clearsilver
community/clusterssh
community/collectd
community/gpsdrive
community/liboping
community/mythtv
community/perl-devel-stacktrace
community/perl-file-mmagic
community/perl-marisa
community/pppusage
community/sage-mathematics
community/xmms2
community/youtube-viewer

I plan on writing bugreports for those at some point unless someone beats me to it.

Offline

#28 2014-06-11 13:03:49

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Perl 5.20 upgrade

Wow that's alot. I only remember mythtv from awhile back. Maybe users could automate the re-installation of these packages like so:

awk -F '/' '{ print $2 }' <<EOF >site.pkgs
extra/kdebindings-perlkde
extra/kdebindings-perlqt
community/clearsilver
community/clusterssh
community/collectd
community/gpsdrive
community/liboping
community/mythtv
community/perl-devel-stacktrace
community/perl-file-mmagic
community/perl-marisa
community/pppusage
community/sage-mathematics
community/xmms2
community/youtube-viewer
EOF
pacman -Q | cat - site.pkgs | sort | uniq -d | xargs pacman -S

Offline

#29 2014-06-12 03:44:20

rthmchgs
Member
Registered: 2014-06-12
Posts: 2

Re: Perl 5.20 upgrade

Not sure if this is the appropriate place to put this, but I did a pacman -Syu and upgraded perl and libxcursor and only by downgrading libxcursor, could I boot into KDE.  The output of the pacman -Qml | fgrep 'usr/lib/perl5/vendor_perl' | awk '{print $1}' | sort -u | tee badpkgs is nothing as well as the script that was specified to find the broken packages.  Any ideas?

Offline

#30 2014-06-12 03:54:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Perl 5.20 upgrade

Totally different issue. Please see https://bugs.archlinux.org/task/40658#comment124132

Offline

#31 2014-06-12 04:24:55

rthmchgs
Member
Registered: 2014-06-12
Posts: 2

Re: Perl 5.20 upgrade

Thanks.  That seems like my issue.  Thought I don't remember creating any symlinks for cursors.  Weird.

Offline

#32 2014-06-12 04:46:16

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Perl 5.20 upgrade

bluewind wrote:

I plan on writing bugreports for those at some point unless someone beats me to it.

Yeah, I also spotted that quite a lot of packages use 'site_dir'. This should be added as a check to 'namcap', I started it here https://github.com/anatol/namcap but test still fails. Feel free to take this commit and move the development forward.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#33 2014-06-13 07:23:01

davehardy20
Member
Registered: 2012-08-12
Posts: 12

Re: Perl 5.20 upgrade

I have had some time to further investigate my issue, (been travelling for work), and I have identified this error when trying to build perl modules, I have tried all ways I can think of to work around this problem but to no avail.
The output below is from an attempted build of perl-extutils-cchecker from AUR.

0 aur/perl-extutils-cchecker 0.09-1 (10)
    CPAN/ExtUtils::CChecker - configure-time utilities for using C headers, libraries, or OS features

Type numbers to install. Separate each number with a space.
Numbers: 0

Aur Targets    (1): perl-extutils-cchecker

Proceed with installation? [Y/n] y
Edit perl-extutils-cchecker PKGBUILD with $EDITOR? [Y/n] n
==> Making package: perl-extutils-cchecker 0.09-1 (Fri 13 Jun 08:16:32 BST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading ExtUtils-CChecker-0.09.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21237  100 21237    0     0   130k      0 --:--:-- --:--:-- --:--:--  131k
==> Validating source files with md5sums...
    ExtUtils-CChecker-0.09.tar.gz ... Passed
==> Extracting sources...
  -> Extracting ExtUtils-CChecker-0.09.tar.gz with bsdtar
==> Starting build()...
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::CChecker
cp lib/ExtUtils/CChecker.pm blib/lib/ExtUtils/CChecker.pm
Makefile:414: recipe for target 'manifypods' failed
make: *** [manifypods] Segmentation fault (core dumped)
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.

The error is caused by what looks like 'Manifypods', whatever that is/does.

Any clues anyone on here?

Offline

#34 2014-06-13 12:54:31

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 683

Re: Perl 5.20 upgrade

FYI,

perl -MCPAN -e "recompile /(.\*)/"

should recompile all CPAN modules.

Offline

#35 2014-06-15 01:14:27

ian_mcxa
Member
Registered: 2014-06-15
Posts: 1

Re: Perl 5.20 upgrade

I have had the same issues as listed above. I can't build any packages that use subversion. I've recompiled all my CPAN modules to no avail. And when I run Juster's badpkg command it outputs an empty file.

Offline

#36 2014-06-15 15:34:44

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 591

Re: Perl 5.20 upgrade

I'm also affected by the decimal separator bug, in my case it happens in /usr/lib/perl5/core_perl/Encode.pm and /usr/share/perl5/core_perl/File/Copy.pm. Starting perl applications from the English locale is a somewhat nasty workaround, does anybody have a clue where to report this bug?

edit: Both files are included directly in the perl package itself.

edit2: Found an existing report: https://bugs.archlinux.org/task/40718 Whoever is affected, please vote or comment.

Last edited by PhotonX (2014-06-15 15:43:23)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#37 2014-06-15 15:38:44

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: Perl 5.20 upgrade

You should probably use `perlbug`.

Offline

#38 2014-06-15 16:01:50

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 591

Re: Perl 5.20 upgrade

I have now sent a report to the Encode.pm developer. Now trying to persuade perlbug that Copy.pm is a core module, but it doesn't believe me...

edit: Got it, it's File::Copy rather than Copy.pm or just Copy. So, now I also sent a report for Copy.pm.

Last edited by PhotonX (2014-06-15 16:16:34)


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#39 2014-06-16 19:54:39

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 591

Re: Perl 5.20 upgrade

In the bug report https://rt.perl.org/Public/Bug/Display. … xn-1297477 there is a patch that needs testing by Arch users. If anybody has a playground Arch install in a Virtual Box already, please have a look. I won't be able to do any testing till weekend at earliest.


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#40 2014-06-16 21:41:03

mattgen88
Member
Registered: 2014-06-16
Posts: 1

Re: Perl 5.20 upgrade

$cat raw.txt
/usr/lib/perl5/vendor_perl/auto/List/MoreUtils/MoreUtils.so
/usr/lib/perl5/vendor_perl/auto/Params/Util/Util.so

I'm having issues with these two.

I've reinstalled these and I've recompiled everything using cpan. I'm still segfaulting in a hostfile manager program written in perl.

Can anyone offer assistance?

Thanks

Edit:

It seems that since these are in vendor_perl, wouldn't they be ones installed from pacman?

Last edited by mattgen88 (2014-06-17 15:43:28)

Offline

#41 2014-06-22 08:14:14

Henry Flower
Member
Registered: 2010-04-12
Posts: 63

Re: Perl 5.20 upgrade

I'm stumped. With perl 5.20.0-5: juster's badpkg command produces nothing. 

The find-broken-perl-packages.sh script produces in perl-modules.txt:

Cairo
Pango
Tk::Entry
Tk::Menubutton
SVN::_Ra
SVN::_Fs
SVN::_Client
SVN::_Repos
SVN::_Core
SVN::_Delta
SVN::_Wc
XML::Parser::Expat
Gtk2

and in pacman.txt

cairo-perl
gtk2-perl
pango-perl
perl-tk
perl-xml-parser
subversion

I've tried upgrading all my cpan modules: this finishes with

Traceback (most recent call last):
  File "./build/transform_sql.py", line 181, in <module>
    main(input_filepath, output_file)
  File "./build/transform_sql.py", line 154, in main
    proc.process_file(input)
  File "./build/transform_sql.py", line 112, in process_file
    for regex, handler in self._directives.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Makefile:657: recipe for target 'subversion/libsvn_fs_fs/rep-cache-db.h' failed
make: *** [subversion/libsvn_fs_fs/rep-cache-db.h] Error 1
building subversion failed at inc/My/SVN/Builder.pm line 130.
  MSCHWERN/Alien-SVN-v1.7.17.1.tar.gz
  ./Build -- OK
Running Build test
Running make 
/bin/sh /root/.cpan/build/Alien-SVN-v1.7.17.1-FWOewU/src/subversion/libtool --tag=CC --silent --mode=compile gcc -DLINUX -D_REENTRANT -D_GNU_SOURCE  -g -O2   -pthread  -Werror=implicit-function-declaration  -I./subversion/include -I./subversion -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include -I/usr/include/neon   -o subversion/libsvn_fs_fs/rep-cache.lo -c subversion/libsvn_fs_fs/rep-cache.c
subversion/libsvn_fs_fs/rep-cache.c:39:1: warning: data definition has no type or storage class
 REP_CACHE_DB_SQL_DECLARE_STATEMENTS(statements);
 ^
subversion/libsvn_fs_fs/rep-cache.c:39:1: warning: parameter names (without types) in function declaration
In file included from ./subversion/include/svn_types.h:1231:0,
                 from ./subversion/include/svn_fs.h:36,
                 from subversion/libsvn_fs_fs/fs.h:31,
                 from subversion/libsvn_fs_fs/fs_fs.h:26,
                 from subversion/libsvn_fs_fs/rep-cache.c:25:
subversion/libsvn_fs_fs/rep-cache.c: In function 'open_rep_cache':
subversion/libsvn_fs_fs/rep-cache.c:56:55: error: 'statements' undeclared (first use in this function)
                            svn_sqlite__mode_rwcreate, statements,
                                                       ^
./subversion/include/svn_error.h:303:35: note: in definition of macro 'SVN_ERR'
     svn_error_t *svn_err__temp = (expr);        \
                                   ^
subversion/libsvn_fs_fs/rep-cache.c:56:55: note: each undeclared identifier is reported only once for each function it appears in
                            svn_sqlite__mode_rwcreate, statements,
                                                       ^
./subversion/include/svn_error.h:303:35: note: in definition of macro 'SVN_ERR'
     svn_error_t *svn_err__temp = (expr);        \
                                   ^
subversion/libsvn_fs_fs/rep-cache.c:65:48: error: 'STMT_CREATE_SCHEMA' undeclared (first use in this function)
       SVN_ERR(svn_sqlite__exec_statements(sdb, STMT_CREATE_SCHEMA));
                                                ^
./subversion/include/svn_error.h:303:35: note: in definition of macro 'SVN_ERR'
     svn_error_t *svn_err__temp = (expr);        \
                                   ^
subversion/libsvn_fs_fs/rep-cache.c: In function 'svn_fs_fs__get_rep_reference':
subversion/libsvn_fs_fs/rep-cache.c:108:63: error: 'STMT_GET_REP' undeclared (first use in this function)
   SVN_ERR(svn_sqlite__get_statement(&stmt, ffd->rep_cache_db, STMT_GET_REP));
                                                               ^
./subversion/include/svn_error.h:303:35: note: in definition of macro 'SVN_ERR'
     svn_error_t *svn_err__temp = (expr);        \
                                   ^
subversion/libsvn_fs_fs/rep-cache.c: In function 'svn_fs_fs__set_rep_reference':
subversion/libsvn_fs_fs/rep-cache.c:168:63: error: 'STMT_SET_REP' undeclared (first use in this function)
   SVN_ERR(svn_sqlite__get_statement(&stmt, ffd->rep_cache_db, STMT_SET_REP));
                                                               ^
./subversion/include/svn_error.h:303:35: note: in definition of macro 'SVN_ERR'
     svn_error_t *svn_err__temp = (expr);        \
                                   ^
subversion/libsvn_fs_fs/rep-cache.c: In function 'svn_fs_fs__del_rep_reference':
subversion/libsvn_fs_fs/rep-cache.c:240:37: error: 'STMT_DEL_REPS_YOUNGER_THAN_REV' undeclared (first use in this function)
                                     STMT_DEL_REPS_YOUNGER_THAN_REV));
                                     ^
./subversion/include/svn_error.h:303:35: note: in definition of macro 'SVN_ERR'
     svn_error_t *svn_err__temp = (expr);        \
                                   ^
Makefile:666: recipe for target 'subversion/libsvn_fs_fs/rep-cache.lo' failed
make: *** [subversion/libsvn_fs_fs/rep-cache.lo] Error 1
building subversion failed at inc/My/SVN/Builder.pm line 130.
No such file or directory at inc/My/SVN/Builder.pm line 21.
  MSCHWERN/Alien-SVN-v1.7.17.1.tar.gz
  ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports MSCHWERN/Alien-SVN-v1.7.17.1.tar.gz

The perl programs which use tk fail with

3d843b8 is not a hash at /usr/lib/perl5/vendor_perl/Tk/MainWindow.pm line 53.
Aborted (core dumped)

or

31625f0 is not a hash at /usr/lib/perl5/vendor_perl/Tk/MainWindow.pm line 53.
Aborted (core dumped)

Any ideas?

Offline

#42 2014-06-22 08:40:54

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: Perl 5.20 upgrade

Tk and SVN are false positives, the rest is likely really broken.  Run "perl -MCairo -e1" to see what happens. If all is well it should exit 0 and print no output.

Also if something crashes always try to get a backtrace. It might contain library names or functions that tell you which module is broken.

gdb -batch -ex run -ex backtrace --args perl /some/script/that crashes --also --supports --arguments

Offline

#43 2014-06-22 09:01:23

Henry Flower
Member
Registered: 2010-04-12
Posts: 63

Re: Perl 5.20 upgrade

Thank you.

bluewind wrote:

Run "perl -MCairo -e1" to see what happens. If all is well it should exit 0 and print no output.

Produces no output.

Trying to run the scripts I want to use produces:

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
2e66cf8 is not a hash at /usr/lib/perl5/vendor_perl/Tk/MainWindow.pm line 53.

Program received signal SIGABRT, Aborted.
0x00007ffff76a5d67 in raise () from /usr/lib/libc.so.6
#0  0x00007ffff76a5d67 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff76a7118 in abort () from /usr/lib/libc.so.6
#2  0x00007ffff57a9364 in InterpHv () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#3  0x00007ffff57a93ad in FindXv.isra.4 () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#4  0x00007ffff57bae59 in Tcl_GetStringResult () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#5  0x00007ffff57b4cd0 in XS_Tk__MainWindow_Create () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#6  0x00007ffff7aeb93b in Perl_pp_entersub () from /usr/lib/perl5/core_perl/CORE/libperl.so
#7  0x00007ffff7ae41f6 in Perl_runops_standard () from /usr/lib/perl5/core_perl/CORE/libperl.so
#8  0x00007ffff7a7527d in perl_run () from /usr/lib/perl5/core_perl/CORE/libperl.so
#9  0x0000000000400e39 in main ()

and

Using host libthread_db library "/usr/lib/libthread_db.so.1".
defined(@array) is deprecated at /dp/guiprep/guiprep.pl line 3919.
	(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /dp/guiprep/guiprep.pl line 4178.
	(Maybe you should just omit the defined()?)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff64ba207 in Tk_SetOptions () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#0  0x00007ffff64ba207 in Tk_SetOptions () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#1  0x00007ffff646e7a1 in ConfigureFrame () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#2  0x00007ffff646f347 in CreateFrame.isra.3 () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#3  0x00007ffff644bc22 in XS_Tk__MainWindow_Create () from /usr/lib/perl5/vendor_perl/auto/Tk/Tk.so
#4  0x00007ffff7aeb93b in Perl_pp_entersub () from /usr/lib/perl5/core_perl/CORE/libperl.so
#5  0x00007ffff7ae41f6 in Perl_runops_standard () from /usr/lib/perl5/core_perl/CORE/libperl.so
#6  0x00007ffff7a7536e in perl_run () from /usr/lib/perl5/core_perl/CORE/libperl.so
#7  0x0000000000400e39 in main ()

(The notice about defined(@array) has always occurred; both scripts used to run without problems.)

Last edited by Henry Flower (2014-06-22 09:19:57)

Offline

#44 2014-06-22 16:31:10

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Perl 5.20 upgrade

This is a separate bug with perl-tk. The bug has been reported here: https://bugs.archlinux.org/task/40692

Offline

#45 2014-06-22 18:57:18

Henry Flower
Member
Registered: 2010-04-12
Posts: 63

Re: Perl 5.20 upgrade

Thanks -- the perl-tk-git does solve the issue for now.

Offline

#46 2014-06-30 18:36:14

boomshalek
Member
Registered: 2007-10-12
Posts: 102

Re: Perl 5.20 upgrade

Step 2 - Delete modules from /usr/lib/perl5/site_perl

rm -rf /usr/lib/perl5/site_perl/*

mythtv has a crappy package that installs files to these directories. Re-install it after doing this.

Hi, first thanks for getting into this !
I am running mythtv from march 2014 without problems, but if I choose to recompile from git (0.27.2) it always segfaults. I tried with older (april, may) versions of 0.27-fixes too. Same behaviour, segfault running mythfrontend.
Can you direct me into the steps to diagnose and/or fix this ? I have seen previous posts in this topic referencing mythtv, but I honestly don't understand what you/they were saying so I just post my output of

pkgfile -r site_perl

extra/kdebindings-perlkde
extra/kdebindings-perlqt
community/clusterssh
community/collectd
community/liboping
community/mythtv
community/perl-devel-stacktrace
community/perl-marisa
community/sage-mathematics

TIA

Offline

#47 2014-06-30 20:22:20

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Perl 5.20 upgrade

boomshalek,

A segfault in mythtv would not be caused by the same error as mentioned earlier in this thread. Perhaps an error is occurring but it is not a segfault, exactly? If indeed mythtv is segfaulting, this is not a symptom of the same bug, but is an entirely different bug, with similar symptoms.

Please post (copy and paste) the output of the error message.

Thank you for the list of packages. The package maintainers have been notified for most of these packages. I missed perl-marisa and liboping so I will need to report those. sage-mathematics is the only false positive. The files it installs are under /opt so I guess it's okay.

edit: liboping maintainer had been notified already.

Last edited by juster (2014-06-30 20:24:53)

Offline

#48 2014-06-30 21:01:52

boomshalek
Member
Registered: 2007-10-12
Posts: 102

Re: Perl 5.20 upgrade

juster wrote:

boomshalek,
Please post (copy and paste) the output of the error message.

The xxx's and X's are manual edits in the log

mythfrontend --loglevel debug
2014-06-30 23:20:11.533736 I  Setup Interrupt handler
2014-06-30 23:20:11.533752 I  Setup Terminated handler
2014-06-30 23:20:11.533756 I  Setup Segmentation fault handler
2014-06-30 23:20:11.533761 I  Setup Aborted handler
2014-06-30 23:20:11.533765 I  Setup Bus error handler
2014-06-30 23:20:11.533770 I  Setup Floating point exception handler
2014-06-30 23:20:11.533774 I  Setup Illegal instruction handler
2014-06-30 23:20:11.533780 I  Setup Real-time signal 0 handler
2014-06-30 23:20:11.533785 I  Setup User defined signal 1 handler
2014-06-30 23:20:11.533790 I  Setup User defined signal 2 handler
2014-06-30 23:20:11.533865 C  mythfrontend version: fixes/0.27 [v0.27.2-dirty] www.mythtv.org
2014-06-30 23:20:11.533870 C  Qt version: compile: 5.3.1, runtime: 5.3.1
2014-06-30 23:20:11.533873 N  Enabled verbose msgs:  general
2014-06-30 23:20:11.533882 N  Setting Log Level to LOG_DEBUG
2014-06-30 23:20:11.544601 N  Using runtime prefix = /usr
2014-06-30 23:20:11.544610 N  Using configuration directory = /home/xxx/.mythtv
2014-06-30 23:20:11.544653 I  Assumed character encoding: en_US.UTF-8
2014-06-30 23:20:11.544694 I  Added logging to the console
2014-06-30 23:20:11.544914 N  Empty LocalHostName.
2014-06-30 23:20:11.544918 I  Using localhost value of TVBOX
2014-06-30 23:20:11.557960 D  FindDatabase() - Success!
2014-06-30 23:20:11.559498 N  Setting QT default locale to de_US
2014-06-30 23:20:11.559506 I  Current locale de_US
2014-06-30 23:20:11.559531 E  No locale defaults file for de_US, skipping
2014-06-30 23:20:11.559774 I  Starting process signal handler
2014-06-30 23:20:11.559792 I  Starting process manager
2014-06-30 23:20:11.559832 I  Starting IO manager (read)
2014-06-30 23:20:11.560496 I  Starting IO manager (write)
2014-06-30 23:20:11.646992 I  New Client:  (#1)
2014-06-30 23:20:11.715085 I  ScreenSaverX11Private: DPMS is disabled.
2014-06-30 23:20:11.724025 N  Desktop video mode: 1920x1080 60.000 Hz
2014-06-30 23:20:11.851890 D  Adding IPv4 loopback to address list.
2014-06-30 23:20:11.851897 D  Adding BackendServerIP6 to address list.
2014-06-30 23:20:11.851903 D  Adding BackendServerIP to address list.
2014-06-30 23:20:11.851914 D  Adding link-local 'fe80::227:eff:fe04:37d1%net0' to address list.
2014-06-30 23:20:11.852006 I  Listening on TCP 127.0.0.1:6547
2014-06-30 23:20:11.852044 I  Listening on TCP 192.168.2.X:6547
2014-06-30 23:20:11.852105 I  Listening on TCP [::1]:6547
2014-06-30 23:20:11.852141 I  Listening on TCP [fe80::227:eff:fe04:37d1%net0]:6547
2014-06-30 23:20:12.572491 D  MMulticastSocketDevice(:23): setsockopt - IP_MULTICAST_IF 
			eno: Cannot assign requested address (99)
2014-06-30 23:20:12.726916 D  MMulticastSocketDevice(:23): setsockopt - IP_MULTICAST_IF 
			eno: Cannot assign requested address (99)
2014-06-30 23:20:12.737958 I  Loading de translation for module mythfrontend
2014-06-30 23:20:12.745420 I  LIRC: Successfully initialized '/var/run/lirc/lircd' using '/home/xxx/.lircrc' config
2014-06-30 23:20:12.745477 E  JoystickMenuThread: Joystick disabled - Failed to read /home/xxx/.mythtv/joystickmenurc
2014-06-30 23:20:12.745485 I  UDPListener: Enabling
2014-06-30 23:20:12.745968 E  Failed binding to UDP 127.0.0.1:6948 - Error 8: The bound address is already in use
2014-06-30 23:20:12.746001 E  Failed binding to UDP 192.168.2.X:6948 - Error 8: The bound address is already in use
2014-06-30 23:20:12.746038 E  Failed binding to UDP [::1]:6948 - Error 8: The bound address is already in use
2014-06-30 23:20:12.746077 E  Failed binding to UDP [fe80::227:eff:fe04:37d1%net0]:6948 - Error 8: The bound address is already in use
2014-06-30 23:20:12.746113 E  Failed binding to UDP 192.168.2.255:6948 - Error 8: The bound address is already in use
2014-06-30 23:20:12.772540 I  Using Frameless Window
2014-06-30 23:20:12.772545 I  Using Full Screen Window
2014-06-30 23:20:12.948943 I  Trying the OpenGL painter
2014-06-30 23:20:12.967101 I  OpenGL: Sync to VBlank is enabled (good!)
2014-06-30 23:20:13.223483 D  OpenGL: Extension not found: glGenFencesAPPLE
2014-06-30 23:20:13.223493 D  OpenGL: Extension not found: glDeleteFencesAPPLE
2014-06-30 23:20:13.223500 D  OpenGL: Extension not found: glSetFenceAPPLE
2014-06-30 23:20:13.223507 D  OpenGL: Extension not found: glFinishFenceAPPLE
2014-06-30 23:20:13.223584 I  OpenGL1: Fragment program support available
2014-06-30 23:20:13.223630 I  OpenGL: OpenGL vendor  : NVIDIA Corporation
2014-06-30 23:20:13.223633 I  OpenGL: OpenGL renderer: GeForce GT 520/PCIe/SSE2
2014-06-30 23:20:13.223636 I  OpenGL: OpenGL version : 4.4.0 NVIDIA 337.25
2014-06-30 23:20:13.223642 I  OpenGL: Max texture size: 16384 x 16384
2014-06-30 23:20:13.223645 I  OpenGL: Max texture units: 4
2014-06-30 23:20:13.223654 I  OpenGL: Direct rendering: Yes
2014-06-30 23:20:13.223657 I  OpenGL: PixelBufferObject support available
2014-06-30 23:20:13.223661 I  OpenGL: Initialised MythRenderOpenGL
2014-06-30 23:20:13.659839 I  MythCoreContext: Connecting to backend server: 192.168.2.X:6543 (try 1 of 1)
2014-06-30 23:20:13.687907 E  XMLParseBase: Unknown widget type.
			Location: /usr/share/mythtv/themes/default-wide/base.xml @ 681
			Name: ''	Type: 'browserarea'
2014-06-30 23:20:13.687926 E  XMLParseBase: Unknown widget type.
			Location: /usr/share/mythtv/themes/default-wide/base.xml @ 682
			Name: ''	Type: 'zoom'
2014-06-30 23:20:13.687940 E  XMLParseBase: Unknown widget type.
			Location: /usr/share/mythtv/themes/default-wide/base.xml @ 683
			Name: ''	Type: 'scrollduration'
2014-06-30 23:20:13.696830 I  Current MythTV Schema Version (DBSchemaVer): 1317
2014-06-30 23:20:13.987140 W  ThemeInfo: Unable to open themeinfo.xml for /home/xxx/.mythtv/themes/MythAeon/themeinfo.xml
2014-06-30 23:20:13.987150 E  ThemeInfo: The theme (/home/xxx/.mythtv/themes/MythAeon) is missing a themeinfo.xml file.
2014-06-30 23:20:14.124698 N  Registering Internal as a media playback plugin.
Handling Segmentation fault
Segmentation fault

PKGBUILD

# Contributor: xxx
pkgname=mythtv-git
pkgver=0.27
pkgrel=3
pkgdesc="A Homebrew PVR project whit pulseaudio 0.27-fixes"
arch=('i686' 'x86_64')
url="http://www.mythtv.org/"
license=('GPL')
depends=('avahi' 'fftw' 'libass' 'libcdio' 'lame' 'libavc1394' 'libiec61883' 'libvdpau' 'libxinerama' 'libxvmc'
         'lirc-utils' 'mesa' 'mariadb-clients' 'mysql-python' 'perl-dbd-mysql'
         'perl-libwww' 'perl-net-upnp' 'perl-io-socket-inet6' 'perl-socket6' 'python-lxml' 'urlgrabber' 'qt4' 'wget' 'yasm' 'x264' 'qtwebkit')
makedepends=('git')
optdepends=('xmltv: to download tv listings' 'avahi' 'libass' 'python2-lxml' 'pulseaudio')
replaces=('mythtv-contrib' 'mythtv')
conflicts=('mythtv-contrib' 'mythtv')
provide=('mythtv')
backup=('usr/lib/systemd/system/mythbackend.service')
install='mythtv.install'
source=('mythbackend.service'
        'mythfrontend.desktop'
        'eithelper.patch'
        'mythtv_fix_broken_providers_with_gui.3.diff'
        'upc.027-fixes.patch')

md5sums=('e17cac243157ad23c549a742e19fcbf4'
        'f29b41c32f64b40742d6208ab3b44fa7'
        '12a1da4fa268cdcfe567b2279b00c0bd'
        '9ce5e747665017fe13ff10dfe6950e0e'
        '4aeb7d324b622e70fdb04cb6782dcb51')

_gitname="mythtv"
_gitroot="git://github.com/MythTV/mythtv.git"

build() {
  cd ${srcdir}
  msg "Connecting to GIT server...."

if [ -d $_gitname/.git ]; then
    cd $_gitname
    git pull && git pull origin
    msg "The local files are updated."
else
    git clone -b fixes/0.27 "$_gitroot" "$_gitname"
#    git clone -b devel/027candidates "$_gitroot" "$_gitname"
    cd $_gitname
fi

msg "GIT checkout done or server timeout"
msg "Starting make..."

rm -rf "$srcdir/$_gitname-build"

git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build/$_gitname"

find 'bindings/python' 'contrib' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'

#patch -Np2 -i "$srcdir/eithelper.patch"
#patch -Np2 -i "$srcdir/upc.027-fixes.patch"
#patch -Np2 -i "$srcdir/mythtv_fix_broken_providers_with_gui.3.diff"
#patch -Np2 -i "$srcdir/ticket12098-dont-load-lib-when-opengles-disabled.diff"

  ARCH="${CARCH/_/-}"
  ./configure --prefix=/usr --cpu="$ARCH" \
              --disable-altivec \
              --enable-mmx \
              --disable-audio-oss \
              --disable-audio-jack \
              --disable-audio-pulse \
              --disable-distcc \
              --disable-ccache \
              --disable-libcec \
              --disable-libdns-sd \
              --disable-dxva2 \
              --disable-hdhomerun \
              --disable-mheg \
              --disable-quartz-video \
              --dvb-path=/usr/include \
              --disable-ivtv \
              --disable-hdpvr \
              --disable-firewire \
              --disable-crystalhd \
              --disable-ceton \
              --disable-mythlogserver \
              --enable-nonfree \
              --enable-libfaac \
              --enable-libfftw3 \
              --enable-libmp3lame \
              --enable-libvpx \
              --enable-libx264 \
              --enable-libxvid \
              --enable-sdl \
              --with-bindings=perl,python \
              --perl-config-opts=INSTALLDIRS=vendor \
              --python=python2 \
              --qmake=qmake4

#sed -i "32 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio.h
#sed -i "30 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio-common.c
#sed -i "47 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio-dec.c
#sed -i "39 i #include <sys/types.h>" external/FFmpeg/libavdevice/alsa-audio-enc.c

  make
}

package() {
  cd ${srcdir}/$_gitname-build/$_gitname
  make INSTALL_ROOT="$pkgdir" install

  install -D -m644 'database/mc.sql' "$pkgdir/usr/share/mythtv/mc.sql"
  install -D -m644 "$srcdir/mythbackend.service" "$pkgdir/usr/lib/systemd/system/mythbackend.service"
  install -D -m644 "$srcdir/mythfrontend.desktop" "$pkgdir/usr/share/applications/mythfrontend.desktop"
  mkdir -p "$pkgdir/var/log/mythtv"
  mkdir -p "$pkgdir/usr/share/mythtv"
  cp -R 'contrib' "$pkgdir/usr/share/mythtv"
}

Last edited by boomshalek (2014-06-30 21:22:23)

Offline

#49 2014-06-30 21:35:00

boomshalek
Member
Registered: 2007-10-12
Posts: 102

Re: Perl 5.20 upgrade

bump, because of editing previous post (sorry, it's getting slightly OT)

Last edited by boomshalek (2014-06-30 21:35:20)

Offline

#50 2014-06-30 21:37:14

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

Re: Perl 5.20 upgrade


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB