From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RuQ5F-0003PI-88 for garchives@archives.gentoo.org; Mon, 06 Feb 2012 15:02:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A105E063C for ; Mon, 6 Feb 2012 15:02:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8037FE05FA for ; Mon, 6 Feb 2012 14:57:35 +0000 (UTC) Received: from localhost (vpn-136-017.rz.uni-augsburg.de [137.250.136.17]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tomka) by smtp.gentoo.org (Postfix) with ESMTPSA id 4E4891B4062 for ; Mon, 6 Feb 2012 14:57:34 +0000 (UTC) Date: Mon, 6 Feb 2012 15:57:28 +0100 From: Thomas Kahle To: Gentoo Science Subject: [gentoo-science] sage-on-gentoo and science duplicates Message-ID: <20120206145728.GL5367@schlaumatte.Speedport_W_723V_Typ_A> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="K1SnTjlYS/YgcDEx" Content-Disposition: inline X-Arbitrary-Number-Of-The-Day: 42 User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 5f0a5fbb-dffd-4874-b327-5fbcba9dc43c X-Archives-Hash: 34ef16e441e262b78f45e697d2fb5b3d --K1SnTjlYS/YgcDEx Content-Type: multipart/mixed; boundary="fd5uyaI9j6xoeUBo" Content-Disposition: inline --fd5uyaI9j6xoeUBo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've run the attached script to find duplicates of packages from sage-on-gentoo in science. The output was: $ ./find-overlay-dups.sh sci-chemistry/jmol sci-libs/fplll sci-libs/givaro sci-libs/iml sci-libs/m4ri sci-libs/symmetrica sci-mathematics/gap sci-mathematics/polybori What do people think about merging those versions in the science overlay and removing them from sage-on-gentoo (or vice-versa)? Probably in most cases there are additional fixes in sage-on-gentoo that science users could benefit from (or at least should hurt nobody)? Cheers, Thomas --=20 Thomas Kahle http://dev.gentoo.org/~tomka/ --fd5uyaI9j6xoeUBo Content-Type: application/x-sh Content-Disposition: attachment; filename="find-overlay-dups.sh" Content-Transfer-Encoding: quoted-printable #!/bin/bash=0A=0A# Find packages that have versions in sage-on-gentoo and s= cience=0A# Algorithm: concatenate, sort, find duplicates=0A=0A# Load the ov= erlay contents into arrays=0Ascience=3D( $(eix --in-overlay science --only-= names) )=0Asage=3D( $(eix --in-overlay sage-on-gentoo --only-names) )=0A=0A= # concatenate=0Aconcat=3D( "${science[@]}" "${sage[@]}" )=0A=0A# sort=0Area= darray -t sorted < <(printf '%s\0' "${concat[@]}" | sort -z | xargs -0n1)= =0A=0A# Iterate and output duplicates:=0Afor (( i=3D0 ; i < ${#sorted[@]} ;= i++ ))=0Ado=0A if [ "${sorted[$i]}" =3D "${sorted[$(($i+1))]}" ] =0A = then =0A echo ${sorted[$i]}=0A fi=0Adone=0A --fd5uyaI9j6xoeUBo-- --K1SnTjlYS/YgcDEx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iJwEAQEIAAYFAk8v6lgACgkQQYXt1pFHaaGpbAP/dTvpLbfq0e2KXQekLz/RCfON KIwMpeG/W1GTVjD1Rbi8VWbyx7VqgTUj/FL4AjJZYadQBgH7cbNmAjoaozT1R5QN Xw+p1VSiBbeTPo+g0qyptC8nzQRQMuaJCFV4o5aEz1bgzaLFUki4NLUNDmKymMwV fdThXEUvIGbnTR5c/VE= =xMTL -----END PGP SIGNATURE----- --K1SnTjlYS/YgcDEx--