NetBSD Problem Report #43737

From www@NetBSD.org  Tue Aug 10 14:50:51 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 7CB8763BA17
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 10 Aug 2010 14:50:51 +0000 (UTC)
Message-Id: <20100810145051.0A1A063B952@www.NetBSD.org>
Date: Tue, 10 Aug 2010 14:50:51 +0000 (UTC)
From: kamelderouiche@yahoo.com
Reply-To: kamelderouiche@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: Update math/py-ephem-3.7.3.4
X-Send-Pr-Version: www-1.0

>Number:         43737
>Category:       pkg
>Synopsis:       Update math/py-ephem-3.7.3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obache
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 10 14:55:00 +0000 2010
>Closed-Date:    Mon Sep 20 09:54:09 +0000 2010
>Last-Modified:  Mon Sep 20 09:55:00 +0000 2010
>Originator:     Derouiche
>Release:        NetBSD 5.0.2
>Organization:
Algerie Motors company
>Environment:
NetBSD ToraboraServer 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 UTC 2010  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
added patch file: patch-aa (setup.py)
>How-To-Repeat:
n/a
>Fix:

$diff -ruN distinfo.orig distinfo
$diff -ruN Makefile.orig Makefile
--- Makefile.orig	2010-08-10 15:16:35.000000000 +0000
+++ Makefile	2010-08-10 15:53:31.000000000 +0000
@@ -1,30 +1,28 @@
-# $NetBSD: Makefile,v 1.4 2008/06/12 02:14:36 joerg Exp $
+# $NetBSD$
 #

-DISTNAME=		pyephem-3.7b
-PKGNAME=		${PYPKGPREFIX}-${DISTNAME:S/pyephem/ephem/}
-CATEGORIES=		geography
-MASTER_SITES=		http://www.rhodesmill.org/brandon/projects/
-
-MAINTAINER=		pkgsrc-users@NetBSD.org
-HOMEPAGE=		http://www.rhodesmill.org/brandon/projects/pyephem.html
-COMMENT=		Scientific-grade astronomical computations for Python
+DISTNAME=	pyephem-3.7.3.4
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/pyephem/ephem/}
+CATEGORIES=	geography
+MASTER_SITES=	http://pypi.python.org/packages/source/p/pyephem/
+
+MAINTAINER=	pkgsrc-users@NetBSD.org
+HOMEPAGE=	http://www.rhodesmill.org/brandon/projects/pyephem.html
+COMMENT=	Scientific-grade astronomical computations for Python
 # See ../../x11/xephem/Makefile.
-LICENSE=		xephem-license
+LICENSE=	gnu-gpl-v3 AND gnu-lgpl-v3

-RESTRICTED=		Combined work is both GPL and non-Free
-NO_BIN_ON_FTP=		${RESTRICTED}
-NO_BIN_ON_CDROM=	${RESTRICTED}
+#RESTRICTED=		Combined work is both GPL and non-Free
+#NO_BIN_ON_FTP=		${RESTRICTED}
+#NO_BIN_ON_CDROM=	${RESTRICTED}

 PKG_DESTDIR_SUPPORT=	user-destdir

-PYDISTUTILSPKG=			true
+USE_LANGUAGES=	c
+PYTHON_VERSIONS_ACCEPTED= 26 25 24

-INSTALLATION_DIRS=	share/doc/${PKGNAME}
+do-test:
+	${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHONBIN} src/ephem/tests/ephem_test.py

-post-install:
-	${INSTALL} ${WRKSRC}/doc/pyephem-manual.html ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}
-
-.include "../../lang/python/extension.mk"
-.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

$diff -ruN PLIST.orig PLIST   
--- PLIST.orig	2010-08-10 15:16:40.000000000 +0000
+++ PLIST	2010-08-10 15:46:51.000000000 +0000
@@ -1,3 +1,81 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/11/13 15:55:55 wulf Exp $
-${PYSITELIB}/ephem.so
-share/doc/${PKGNAME}/pyephem-manual.html
+@comment $NetBSD$
+${PYSITELIB}/ephem/__init__.py
+${PYSITELIB}/ephem/__init__.pyc
+${PYSITELIB}/ephem/__init__.pyo
+${PYSITELIB}/ephem/_libastro.so
+${PYSITELIB}/ephem/cities.py
+${PYSITELIB}/ephem/cities.pyc
+${PYSITELIB}/ephem/cities.pyo
+${PYSITELIB}/ephem/stars.py
+${PYSITELIB}/ephem/stars.pyc
+${PYSITELIB}/ephem/stars.pyo
+${PYSITELIB}/ephem/tests/__init__.py
+${PYSITELIB}/ephem/tests/__init__.pyc
+${PYSITELIB}/ephem/tests/__init__.pyo
+${PYSITELIB}/ephem/tests/ephem_test.py
+${PYSITELIB}/ephem/tests/ephem_test.pyc
+${PYSITELIB}/ephem/tests/ephem_test.pyo
+${PYSITELIB}/ephem/tests/jpl/europa.txt
+${PYSITELIB}/ephem/tests/jpl/hyperion.txt
+${PYSITELIB}/ephem/tests/jpl/jupiter.txt
+${PYSITELIB}/ephem/tests/jpl/mars.txt
+${PYSITELIB}/ephem/tests/jpl/neptune.txt
+${PYSITELIB}/ephem/tests/jpl/oberon.txt
+${PYSITELIB}/ephem/tests/jpl/phobos.txt
+${PYSITELIB}/ephem/tests/jpl/saturn.txt
+${PYSITELIB}/ephem/tests/jpl/uranus.txt
+${PYSITELIB}/ephem/tests/launchpad_236872.py
+${PYSITELIB}/ephem/tests/launchpad_236872.pyc
+${PYSITELIB}/ephem/tests/launchpad_236872.pyo
+${PYSITELIB}/ephem/tests/launchpad_244811.py
+${PYSITELIB}/ephem/tests/launchpad_244811.pyc
+${PYSITELIB}/ephem/tests/launchpad_244811.pyo
+${PYSITELIB}/ephem/tests/test_angles.py
+${PYSITELIB}/ephem/tests/test_angles.pyc
+${PYSITELIB}/ephem/tests/test_angles.pyo
+${PYSITELIB}/ephem/tests/test_bodies.py
+${PYSITELIB}/ephem/tests/test_bodies.pyc
+${PYSITELIB}/ephem/tests/test_bodies.pyo
+${PYSITELIB}/ephem/tests/test_constants.py
+${PYSITELIB}/ephem/tests/test_constants.pyc
+${PYSITELIB}/ephem/tests/test_constants.pyo
+${PYSITELIB}/ephem/tests/test_dates.py
+${PYSITELIB}/ephem/tests/test_dates.pyc
+${PYSITELIB}/ephem/tests/test_dates.pyo
+${PYSITELIB}/ephem/tests/test_jpl.py
+${PYSITELIB}/ephem/tests/test_jpl.pyc
+${PYSITELIB}/ephem/tests/test_jpl.pyo
+${PYSITELIB}/ephem/tests/test_observers.py
+${PYSITELIB}/ephem/tests/test_observers.pyc
+${PYSITELIB}/ephem/tests/test_observers.pyo
+${PYSITELIB}/ephem/tests/test_rst.py
+${PYSITELIB}/ephem/tests/test_rst.pyc
+${PYSITELIB}/ephem/tests/test_rst.pyo
+${PYSITELIB}/ephem/tests/test_satellite.py
+${PYSITELIB}/ephem/tests/test_satellite.pyc
+${PYSITELIB}/ephem/tests/test_satellite.pyo
+${PYSITELIB}/ephem/tests/test_usno.py
+${PYSITELIB}/ephem/tests/test_usno.pyc
+${PYSITELIB}/ephem/tests/test_usno.pyo
+${PYSITELIB}/ephem/tests/test_usno_equinoxes.py
+${PYSITELIB}/ephem/tests/test_usno_equinoxes.pyc
+${PYSITELIB}/ephem/tests/test_usno_equinoxes.pyo
+${PYSITELIB}/ephem/tests/usno/appgeo_deneb.txt
+${PYSITELIB}/ephem/tests/usno/appgeo_jupiter.txt
+${PYSITELIB}/ephem/tests/usno/appgeo_moon.txt
+${PYSITELIB}/ephem/tests/usno/appgeo_sun.txt
+${PYSITELIB}/ephem/tests/usno/apptopo_deneb.txt
+${PYSITELIB}/ephem/tests/usno/apptopo_moon.txt
+${PYSITELIB}/ephem/tests/usno/apptopo_sun.txt
+${PYSITELIB}/ephem/tests/usno/astrom_antares.txt
+${PYSITELIB}/ephem/tests/usno/astrom_mercury.txt
+${PYSITELIB}/ephem/tests/usno/astrom_neptune.txt
+${PYSITELIB}/ephem/tests/usno/moon_phases.txt
+${PYSITELIB}/ephem/tests/usno/riset_moon.txt
+${PYSITELIB}/ephem/tests/usno/riset_sun.txt
+${PYSITELIB}/ephem/tests/usno/risettran_moon.txt
+${PYSITELIB}/ephem/tests/usno/risettran_rigel.txt
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt

$ cat < ./patches/patch-aa

$NetBSD$

--- setup.py.orig       2010-08-10 15:37:10.000000000 +0000
+++ setup.py    2010-08-10 15:37:37.000000000 +0000
@@ -46,8 +46,7 @@
         ],
       packages = [ 'ephem', 'ephem.tests' ],
       package_dir = { '': 'src' },
-      package_data = { 'ephem': ['doc/*.rst',
-                                 'tests/jpl/*.txt',
+      package_data = { 'ephem': ['tests/jpl/*.txt',
                                  'tests/usno/*.txt',
                                  ],},
       test_suite = 'ephem.tests',

$diff -ruN distinfo.orig distinfo
--- distinfo.orig	2010-08-10 15:41:44.000000000 +0000
+++ distinfo	2010-08-10 15:44:37.000000000 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/11/13 15:55:55 wulf Exp $
+$NetBSD$

-SHA1 (pyephem-3.7b.tar.gz) = 541346dbcad966bcc8be407722132304c3d2bc3a
-RMD160 (pyephem-3.7b.tar.gz) = bc1b1a8312dbc95735b6c1b82439d604992a942f
-Size (pyephem-3.7b.tar.gz) = 299901 bytes
+SHA1 (pyephem-3.7.3.4.tar.gz) = d1be94b2f0314a6ec572787c6d1b39ffbbb8ea5c
+RMD160 (pyephem-3.7.3.4.tar.gz) = 798b79bebf094bd3d5b22a598281c564e974e89e
+Size (pyephem-3.7.3.4.tar.gz) = 704097 bytes
+SHA1 (patch-aa) = f82c0c493089d73d6c259da5fa63f39c9b922d4b

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 14 Aug 2010 12:48:31 +0000
State-Changed-Why:
Why USE_LANGUAGES=c is added? I feel updated version is pure python module.
Why new patch-aa is required? I feel just skip installation of document.


From: kamel derouiche <kamelderouiche@yahoo.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/43737 (Update math/py-ephem-3.7.3.4)
Date: Sat, 14 Aug 2010 06:11:34 -0700 (PDT)

 > Why USE_LANGUAGES=c is added? I feel updated version is
 > pure python module
 Sorry, I have forget to remove USE_LANGUAGES=c

 >I feel just skip installation b of document.
 forced skip *.rst document installation.








From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/43737 (Update math/py-ephem-3.7.3.4)
Date: Sat, 14 Aug 2010 23:17:16 +0900

 On Sat, 14 Aug 2010 23:15:04 +0900, kamel derouiche <kamelderouiche@yahoo.com> wrote:

 >  >I feel just skip installation b of document.
 >  forced skip *.rst document installation.

 Why do you want to do so?

Responsible-Changed-From-To: pkg-manager->obache
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Mon, 20 Sep 2010 09:54:09 +0000
Responsible-Changed-Why:
I've updated this package.


State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 20 Sep 2010 09:54:09 +0000
State-Changed-Why:
Updated without your patch-aa.


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43737 CVS commit: pkgsrc/math/py-ephem
Date: Mon, 20 Sep 2010 09:52:14 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Mon Sep 20 09:52:14 UTC 2010

 Modified Files:
 	pkgsrc/math/py-ephem: Makefile PLIST distinfo

 Log Message:
 Update py-ephem to 3.7.3.4.
 Based on PR#43737 by Kamel Derouiche.

 remove RESTRICTION, because COPYING file said GPL or LGPL, nothing for others.

 PyEphem CHANGELOG
 =================

 Version 3.7.3.4 (2009 April 30)
 -------------------------------

 - Added a new ``next_pass()`` method to ``Observer`` that searches for
   when a satellite next rises, culminates, and sets.

 - Added a ``compute_pressure()`` method to ``Observer`` which computes
   the standard atmospheric pressure at the observer's current elevation.
   This function now gets called automatically on new ``city()`` objects
   before they are returned to the user.

 - Corrected the altitude of San Francisco as returned by ``city()``.

 - Improved the copyright message so that two more authors are credited.

 Version 3.7.3.3 (2008 October 3)
 --------------------------------

 - Added ``cmsI`` and ``cmsII`` attributes to ``Jupiter`` to provide the
   central meridian longitude in both System I and System II.

 - **Bugfix**: Saturn was returning the wrong values for its earthward
     and sunward angle tilt.

 Version 3.7.3.2 (2008 July 2)
 -----------------------------

 - **Bugfix**: the rising and setting functions, if called repeatedly,
   would sometimes get hung up on a single answer which they would return
   over and over again instead of progressing to the next rising or
   setting.  They should now always progress instead of getting stuck.

 Version 3.7.3.1 (2008 July 1)
 -----------------------------

 - **Bugfix**: the rising and setting functions were attempting to
   achieve such high precision that users sometimes found circumstances
   under which they would not complete at all!  They now stop and return
   an answer once they are withing a half-second of the real time of
   rising, transit, or setting, which solves the problem without damaging
   the quality of the results when tested against the Naval Observatory.

 - Upgraded to the libastro from XEphem 3.7.3.

 Version 3.7.2.4 (2008 June 12)
 ------------------------------

 - **Incompatible Change**: After feedback from users, I have changed
   the ``Observer`` methods which find risings, settings, and transits,
   so that they do not change their Observer's ``.date`` attribute.  So
   the sequence:

   .. code-block:: python

      r1 = boston.next_rising(mars)
      r2 = boston.next_rising(mars)

   now computes the same value twice!  If you want a series of calls to
   each begin when the other left off, you can use the ``start=``
   parameter described in the next item:

   .. code-block:: python

      r1 = boston.next_rising(mars)
      r2 = boston.next_rising(mars, start=r1)

 - Added an optional ``start=`` argument to the rising, setting, and
   transit ``Observer`` functions, that tells them from which date and
   time to begin their search.

 - **Bugfix**: Rewrote planetary moon routines so that moons of Mars,
   Jupiter, Saturn, and Uranus now return appropriate data for years
   1999-2020.  (Each moon had been returning the unmodified position of
   its planet, because I was unsure whether I could distribute the moon
   data with PyEphem.)

 - You can no longer create arbitrary attributes on an ``Observer``, to
   prevent users from accidentially saying things like
   ``here.longitude`` or ``here.lon`` when they mean ``here.long``.
   Create your own subclass of ``Observer`` if you need the power to
   set your own attributes.

 - The ephem module now provides a ``__version__`` symbol.

 - Added test suite that tests planet and planet moon positions
   against JPL ephemeris data (needs more work).

 Version 3.7.2.3 (2008 January 8)
 --------------------------------

 - Three new classes ``Equatorial``, ``Ecliptic``, and ``Galactic``
   allow coordinates to be transformed between the three systems
   (ability to transform coordinates was requested by Aaron Parsons).

 - Added constants for popular epochs ``B1900``, ``B1950``, and
   ``J2000``.

 - Added named functions for every solstice and equinox (before, only
   the vernal equinox could be asked for specifically).

 - Product tests have been moved inside of the ``ephem`` module itself,
   and can now be invoked simply by running:

   .. code-block:: bash

      $ python setup.py test

 - **Bugfix**: ``Angle()`` can no longer be directly instantiated.

 - **Bugfix**: San Francisco had the wrong coordinates in the cities
   database (pointed out by Randolph Bentson).

 Version 3.7.2.2 (2007 December 9)
 ---------------------------------

 - The phases of the moon can now be determined through the functions
   ``next_new_moon()``, ``next_full_moon()``, ``previous_new_moon()``,
   et cetera.

 - Added a modest database of world cities; the ``city()`` function
   returns a new Observer on each call:

   .. code-block:: python

      observer = ephem.city('Boston')

 - Using the old ``rise``, ``set``, and ``transit`` attributes on
   ``Body`` objects now causes a deprecation warning.

 - **Bugfix**: the last release of PyEphem omitted the constants
   ``meters_per_au``, ``earth_radius``, ``moon_radius``, and
   ``sun_radius``; the constant ``c`` (the speed of light) is also now
   available.

 Version 3.7.2.1 (2007 October 1)
 --------------------------------

 - Functions now exist to find equinoxes and solstices.

 - Bodies now cleanly offer three different versions of their
   position, rather than making the user remember obscure rules for
   having each of these three values computed:

   * Astrometric geocetric right ascension and declination
   * Apparent geocentric right ascension and declination
   * Apparent topocentric right ascension and declination

 - Bodies can now find their next or previous times of transit,
   anti-transit, rising, and setting.

 - A ``localtime()`` function can convert PyEphem ``Date`` objects to
   local time.

 - Now ``ephem.angle`` instances can survive unary ``+`` and ``-``
   without getting changed into plain floats.

 - The ``elev`` Observer attribute has been renamed to ``elevation``.

 - Observers now display useful information when printed.

 - Added a much more extensive test suite, which, among other things,
   now compares results with the United States Naval Observatory,
   insisting upon arcsecond agreement.

 - **Bugfix**: When a fixed body is repeatedly precessed to different
   dates, its original position will no longer accumulate error.

 Version 3.7.2a (2007 June)
 --------------------------

 - Upgraded to the libastro from XEphem 3.7.2.

 - Should now compile under Windows!

 - **Bugfix**: rewrote date-and-time parsing to avoid the use of
   ``sscanf()``, which was breaking under Windows and requiring the
   insertion of a leading space to succeed.

 - Improved the error returned when a date string cannot be parsed,
   so that it now quotes the objectionable string (so you can tell
   which of several date strings on the same line gave an error!).


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/math/py-ephem/Makefile
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/math/py-ephem/PLIST
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/math/py-ephem/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.