Opened 6 years ago

Closed 6 years ago

#56750 closed update (fixed)

py-pysvn: latest version is 1.9.6

Reported by: josephsacco Owned by: reneeotten <reneeotten@…>
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: py-pysvn

Description

The Portfile and patch file have been updated to support py-pysvn @1.9.6 for python versions: 27, 34, 35, and 36.

  • py27-pysvn and py36-pysvn build with minor warnings. [I have no other versions of python installed]
  • All tests in the source Test directory pass for each build.

FWIW... The build currently fails for python37.

-Joseph

Attachments (4)

Portfile_py-pysvn.diff (1.6 KB) - added by josephsacco 6 years ago.
updated Portfile_py-pysvn.diff
Portfile.diff (2.2 KB) - added by josephsacco 6 years ago.
Portfile diff 24July2018
patch-Source_setup_configure.py.diff (1.3 KB) - added by josephsacco 6 years ago.
patch-Source_setup_configure.py.diff 24July2018
patch-IndirectPythonInterface.cxx.diff (633 bytes) - added by josephsacco 6 years ago.
patch-IndirectPythonInterface.cxx.diff 24July2018

Download all attachments as: .zip

Change History (10)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Keywords: haspatch added; has patches removed
Version: 2.5.2

Only add py36. No need to add python versions that will be removed soon and that you haven't tested anyway. When removing py26, the py-graveyard port should be updated with it too.

Changed 6 years ago by josephsacco

Attachment: Portfile_py-pysvn.diff added

updated Portfile_py-pysvn.diff

comment:2 Changed 6 years ago by josephsacco

Updated Updated Portfile_py-pysvn.diff and py-graveyard [See #56751]

-Joseph

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 6 years ago by josephsacco

I have updated the Portfile to support python3.7. In addition, I added a patch for Import/pycxx-7.0.3/Src/IndirectPythonInterface.cxx to eliminate a cast problem. I also modified the original patch for Source/setup_configure.py.

The previous version of the Portfile set worksrcdir to ${worksrcdir}/Source. That was OK when everything when patch, configure, and build were done from the Source directory. With the addition of the new patch, the source needed to be patched in two different directories. I set patch.dir to the original ${worksrcpath} and modified the two patch files to work from the top of the application source tree. . I then added a line just before pre-configure to reset worksrcdir to ${worksrcdir}/Source. That actually worked.

With the new version of the Portfile and the two patches, py-pysvn builds for py27, py36, and py37.

-Joseph

Changed 6 years ago by josephsacco

Attachment: Portfile.diff added

Portfile diff 24July2018

Changed 6 years ago by josephsacco

patch-Source_setup_configure.py.diff 24July2018

Changed 6 years ago by josephsacco

patch-IndirectPythonInterface.cxx.diff 24July2018

comment:4 Changed 6 years ago by reneeotten (Renee Otten)

hi josephsacco,

thanks for the updates/patches to several Python ports recently. I have taken some of those (including this one) and submitted them as a PR on GitHub for incorporation in MacPorts. If you are familiar with git/GitHub (see https://trac.macports.org/wiki/WorkingWithGit for useful pointers) you might consider submitting your changes as a PR instead of Trac tickets. From my experience (as a new contributor) that process is fast and efficient, and there are always people willing to help out when you run into trouble.

comment:5 Changed 6 years ago by josephsacco

Renee,

Thank you for the suggestion. I will look into it.

-Joseph

comment:6 Changed 6 years ago by reneeotten <reneeotten@…>

Owner: set to reneeotten <reneeotten@…>
Resolution: fixed
Status: newclosed

In 37518f6f42064101fa41c0d7ca6cacbcb6a65a05/macports-ports (master):

py-pysvn: update to 1.9.6

  • patches from josephsacco
  • remove obsolete py26 subport, add py36 (py37 doesn't compile)
  • remove "backport" call, only needed for Python 2.6 and earlier
  • modernize checksums

Closes: #56750
Closes: #56751

Note: See TracTickets for help on using tickets.