DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st March 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default xkcd-viewer being stubborn both on -current and stable

Hi all !
Frankly I don't know for sure , whether it's xkcd-viewer who's being mulish or me being a fool -as usual- hehe ..

Well I just failed to build the port on OpenBSD stable and current :
Code:
p5-ExtUtils-PkgConfig-1.13: ok
===> Returning to build of p5-Gtk2-1.221p5
===> p5-Gtk2-1.221p5 depends on: p5-ExtUtils-PkgConfig-* -> p5-ExtUtils-PkgConfig-1.13
===> p5-Gtk2-1.221p5 depends on: p5-Glib2->=1.200 - not found
===>  Verifying install for p5-Glib2->=1.200 in devel/p5-Glib2
===>  p5-Glib2-1.222p3  is marked as broken: glib2 is threaded but our perl is not so we end up with undefined symbols .
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:1978 '/usr/ports/pobj/p5-Gtk2-1.221/.dep-STEM-ge-1.200-devel-p5-Glib2')
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:2393 '/usr/ports/pobj/p5-Gtk2-1.221/.extract_done')
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:1804 '/usr/ports/packages/i386/all/p5-Gtk2-1.221p5.tgz')
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:2343 '_internal-package')
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:2323 'package')
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:1821 '/var/db/pkg/p5-Gtk2-1.221p5/+CONTENTS')
*** Error 1 in /usr/ports/x11/p5-Gtk2 (/usr/ports/infrastructure/mk/bsd.port.mk:2323 'install')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1978 '/usr/ports/pobj/xkcd-viewer-0.1/.dep-x11-p5-Gtk2')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2393 '/usr/ports/pobj/xkcd-viewer-0.1/.extract_done')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1804 '/usr/ports/packages/i386/all/xkcd-viewer-0.1p0.tgz')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2343 '_internal-package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2323 'package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1821 '/var/db/pkg/xkcd-viewer-0.1p0/+CONTENTS')
*** Error 1 in /usr/ports/misc/xkcd-viewer (/usr/ports/infrastructure/mk/bsd.port.mk:2323 'install')
Thanks for illumination!
Reply With Quote
  #2   (View Single Post)  
Old 21st March 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,893
Thanked 214 Times in 189 Posts
Default

The root cause:
Quote:
===> p5-Glib2-1.222p3 is marked as broken: glib2 is threaded but our perl is not so we end up with undefined symbols .
How long has this port been broken?
Code:
---------------------------- 
revision 1.14
date: 2010/04/22 19:36:05;  author: ajacoutot;  state: Exp;  lines: +3 -1 
Mark as BROKEN for now. 
----------------------------
Reply With Quote
  #3   (View Single Post)  
Old 21st March 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,893
Thanked 214 Times in 189 Posts
Default

To elaborate further:

I discovered the root cause of the failure to build by reading the error message you copied and pasted into your post.

I looked up the history of the port using cvs(1):
Code:
$ cd /usr/ports/devel/p5-Glib2
$ cvs log Makefile | less
Reply With Quote
  #4   (View Single Post)  
Old 21st March 2013
thirdm thirdm is offline
Package Pilot
 
Join Date: May 2009
Posts: 212
Thanked 3 Times in 3 Posts
Default perlbrew

Haven't tried this myself, but if you really want to get this working (other than by fixing the port yourself somehow), you could try installing a second, non-system perl with threading enabled. I see on chromatic's blog he recommends a tool named perlbrew for this sort of thing: http://www.modernperlbooks.com/mt/20...-perlbrew.html
Reply With Quote
  #5   (View Single Post)  
Old 22nd March 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thanks jggimi for all support ! unthreaded Puffish Perl ?
Thanks thirdm !
I've installed perlbrew and am installing perl-5.16.0 latest stable .. or should I rather install bleeding edge version ? how can I possibly install xkcd-viewer afterwards ?

Last edited by daemonfowl; 22nd March 2013 at 01:40 AM.
Reply With Quote
  #6   (View Single Post)  
Old 22nd March 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Code:
$  tail -f ~/perl5/perlbrew/build.perl-5.16.0.log
../dist/IO/t/io_file.t ............................................ ok
../dist/IO/t/io_file_export.t ..................................... ok
../dist/IO/t/io_linenum.t ......................................... ok
# Test process timed out - terminating
../dist/IO/t/io_multihomed.t ...................................... 
Failed 8/8 subtests 
../dist/IO/t/io_pipe.t ............................................ ok
../dist/IO/t/io_poll.t ............................................ ok
../dist/IO/t/io_sel.t ............................................. ok
accept failed: Connection timed out at t/io_sock.t line 60.
Reply With Quote
  #7   (View Single Post)  
Old 22nd March 2013
thirdm thirdm is offline
Package Pilot
 
Join Date: May 2009
Posts: 212
Thanked 3 Times in 3 Posts
Default

Sorry, can't help much from here since I've never tried to install a non-system perl.If you can get the second perl working, I was going to say you'd install the xkcd reader directly from cpan using one of the cpan clients (cpan, cpan plus, cpan minus, etc. -- okay, I'm not sure there really is an "etc." here but probably). But looking at the port, it doesn't look like the viewer on cpan. Compare

http://www.autistici.org/fox/files/XKCD_viewer/README (the one the port uses)

to

http://search.cpan.org/~woldrich/App-xkcd-0.082/xkcd (an app on cpan I assumed for a moment the port must be based on)

Looks like different programs. Maybe instead of going down the route of getting a second perl you could try installing this other xkcd viewer directly from cpan. It doesn't seem to have as difficult prerequisites.
Reply With Quote
  #8   (View Single Post)  
Old 19th July 2013
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi
building xkcd-viewer on -current (5.4beta) :

sysctl kern.version
Code:
kern.version=OpenBSD 5.4 (GENERIC.MP) #35: Wed Jul 17 09:54:51 MDT 2013
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
Code:
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/xkcd_viewer.pl
Manifying blib/man1/xkcd_viewer.pl.1
Manifying blib/man3/XKCD::Core.3p
===>  Faking installation for xkcd-viewer-0.1p2
Installing /usr/ports/pobj/xkcd-viewer-0.1/fake-i386/usr/local/libdata/perl5/site_perl/XKCD/Core.pm
Installing /usr/ports/pobj/xkcd-viewer-0.1/fake-i386/usr/local/libdata/perl5/site_perl/XKCD/Core.pm.orig
Installing /usr/ports/pobj/xkcd-viewer-0.1/fake-i386/usr/local/man/man1/xkcd_viewer.pl.1
Installing /usr/ports/pobj/xkcd-viewer-0.1/fake-i386/usr/local/man/man3p/XKCD::Core.3p
Installing /usr/ports/pobj/xkcd-viewer-0.1/fake-i386/usr/local/bin/xkcd_viewer.pl
Appending installation info to /usr/ports/pobj/xkcd-viewer-0.1/fake-i386/usr/./libdata/perl5/i386-openbsd/perllocal.pod
===>  Building package for xkcd-viewer-0.1p2
Create /usr/ports/packages/i386/all/xkcd-viewer-0.1p2.tgz
Link to /usr/ports/packages/i386/ftp/xkcd-viewer-0.1p2.tgz
Link to /usr/ports/packages/i386/cdrom/xkcd-viewer-0.1p2.tgz
===>  Installing xkcd-viewer-0.1p2 from /usr/ports/packages/i386/all/
xkcd-viewer-0.1p2: ok
===>  Cleaning for xkcd-viewer-0.1p2

Last edited by daemonfowl; 24th July 2013 at 04:27 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
-stable snapshots "openbsd-stable.org" (?) dnix OpenBSD Installation and Upgrading 9 18th December 2011 12:48 PM
recommendations on a picture viewer divadgnol67 OpenBSD General 11 3rd April 2011 09:52 PM
Help installing Hippo viewer... bforest FreeBSD Ports and Packages 10 20th March 2010 02:17 PM
Questions, Ports / current|stable ax0 OpenBSD Installation and Upgrading 42 16th April 2009 08:23 PM
ports: stable or current? schrodinger OpenBSD Packages and Ports 4 11th August 2008 01:18 PM


All times are GMT. The time now is 08:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick