graaff 14/08/20 15:09:10 Modified: ChangeLog uuidtools-2.1.5.ebuild Log: Avoid specs that fail without a network interface. (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Revision Changes Path 1.39 dev-ruby/uuidtools/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/uuidtools/ChangeLog?rev=1.39&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/uuidtools/ChangeLog?rev=1.39&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/uuidtools/ChangeLog?r1=1.38&r2=1.39 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/ChangeLog,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- ChangeLog 14 Aug 2014 14:11:15 -0000 1.38 +++ ChangeLog 20 Aug 2014 15:09:10 -0000 1.39 @@ -1,6 +1,9 @@ # ChangeLog for dev-ruby/uuidtools # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/ChangeLog,v 1.38 2014/08/14 14:11:15 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/ChangeLog,v 1.39 2014/08/20 15:09:10 graaff Exp $ + + 20 Aug 2014; Hans de Graaff <gra...@gentoo.org> uuidtools-2.1.5.ebuild: + Avoid specs that fail without a network interface. *uuidtools-2.1.5 (14 Aug 2014) 1.2 dev-ruby/uuidtools/uuidtools-2.1.5.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.5.ebuild?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.5.ebuild?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.5.ebuild?r1=1.1&r2=1.2 Index: uuidtools-2.1.5.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.5.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- uuidtools-2.1.5.ebuild 14 Aug 2014 14:11:15 -0000 1.1 +++ uuidtools-2.1.5.ebuild 20 Aug 2014 15:09:10 -0000 1.2 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.5.ebuild,v 1.1 2014/08/14 14:11:15 mrueg Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.5.ebuild,v 1.2 2014/08/20 15:09:10 graaff Exp $ EAPI=5 @@ -23,3 +23,14 @@ IUSE="doc" ruby_add_bdepend "doc? ( dev-ruby/yard )" + +all_ruby_prepare() { + # Avoid specs that require an actual network interface to get a MAC + # address. We can't assume that a network interface is available. + sed -e '/when obtaining a MAC address/,/^end/ s:^:#:' \ + -i spec/uuidtools/mac_address_spec.rb || die + sed -e '/should correctly generate timestamp variant UUIDs/,/^ end/ s:^:#:' \ + -i spec/uuidtools/uuid_creation_spec.rb || die + sed -e '/should not treat a timestamp version UUID as a random node UUID/,/^ end/ s:^:#:' \ + -i spec/uuidtools/uuid_parsing_spec.rb || die +}