[MacPorts] #48994: py-bob @2.0.5 New release
#48994: py-bob @2.0.5 New release -------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: -------------------------------+-------------------------------- Hi, Follow attached a set of port files for publication that will replace the port bob@1.2.2. This port now is using the portgroup python and for that reason was renamed to py-bob. py-bob was split in several small port files and they are available in the attached files also for publication. I will open another ticket to replace the current bob@1.2.2 to an obsolete version. Any question, please let me know. Thanks in advance -- Ticket URL: <https://trac.macports.org/ticket/48994> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: | --------------------------------+-------------------------------- Comment (by ryandesign@…): I haven't looked at everything, by some initial problems I see are: Each directory in the zip archive contains an alias called Portfile, pointing to a file called Portfile.current. There should be no alias, and the real file should be called Portfile. The py-bob portfile declares dependencies globally. In python portgroup ports, dependencies should only be declared inside the "if {${subport} eq ${name}} {...}" block. -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: | --------------------------------+-------------------------------- Comment (by tiagofrepereira@…): Hi, Thanks for the comments. I implemented them and the result is in the current attachment for publication. Thank you very much Tiago -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: | --------------------------------+-------------------------------- Comment (by tiagofrepereira@…): Hello, Any news about this one? Thanks Tiago -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | --------------------------------+-------------------------------- Changes (by mf2k@…): * cc: tiagofrepereira@… (removed) * version: 2.3.3 => Comment: As reporter, you do not need to Cc yourself. -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | --------------------------------+-------------------------------- Comment (by tiagofrepereira@…): Hello, Any news about this one? PS: Sorry, but I don't know how to remove my e-mail from the Cc. Thank you very much in advance Tiago -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+-------------------------------- Reporter: tiagofrepereira@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+-------------------------------- Changes (by mf2k@…): * cc: tiagofrepereira@… (removed) * cc: andre.anjos@…, laurent.el-shafey@… (added) * port: => py-bob -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Changes (by devans@…): * owner: macports-tickets@… => devans@… * status: new => assigned Comment: As mentioned in my ticket #46465, I've dowloaded your submitted ports and have begun testing. First let me thank you for porting the new bob to MacPorts. It's truly a monumental amount of work! I've run into a few issues, however, some stylistic and some more substantial. Minor issues: * port names contain '.'. MacPorts common usage is to use '-' instead to separate name components. * the port group python sets some parameters for you particularly categories and dependencies. In particular, the port group sets the primary category to python and adds a depends_lib for the appropriate python version. Normal practice is to use categories-append and depends_lib-append to append any additional categories and dependencies that my be required. In particular, you are overriding python as the primary category with science. MacPorts practice is that all python ports should be in the python category. So you should just append your additional categories. Note also that the name of the containing directory for all your ports should be the same as the primary category (python). * you use 'revision 0' throughout. This is the default value so it is common practice to avoid explicitly setting the revision to 0 and only add the revision statement when incrementing the revision. If the version number is incremented the revision is reset to 0 and any revision statement removed. * currently there is an effort underway to add support, if possible, for python35. If your ports are compatible with python35 and the appropriate dependencies exist in MacPorts you might want to add this to your python.versions statement. None of the above are show stoppers so I went ahead and attempted to build py-bob. The first dependency py-bob.blitz failed during configuration due to a missing dependency on boost so that needs to be added. Note also that boost has different variants depending on which version of python was used to build its python libraries. Default is boost +python27. MacPorts doesn't allow you to specify a dependency by variant so you should probably check to ensure that the proper variant of boost is installed depending on your ports' python version. This can be done by using the active_variants port group as follows: {{{ PortGroup active_variants 1.1 ... require_active_variants port:boost python${python.version} }}} This will perform a check during dependency checking at the beginning of the configure phase to determine if the installed version of boost uses the specified variant and will fail with an appropriate message to the user if not. So that's where I am right now. Since I'm the one that asked for these ports, I'm taking ownership of this ticket and will commit these ports for you when the various issues are resolved and they build without error. Thanks again for your help in contributing your significant software package to MacPorts. Let me know if you have any questions. Dave -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by tiagofrepereira@…): Dear Dave, Thanks for your attention and advice on this one. I applied all the suggestions, except the one with the python 3.5 support (which was created an issue to take care of that https://github.com/idiap/bob/issues/209). The portfiles are attached (py-bob.zip) Thanks again for your attention. Best Regards Tiago -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by devans@…): I finally got an opportunity to spend some time testing your latest update yesterday. Sorry for the delay. With the new modifications, attempting to build py27-bob in a clean environment causes the following to be built successfully: {{{ py27-bob-extension py27-bob-blitz }}} However, it then attempts to build py27-bob-core and fails with the following error (full log attached) {{{ :debug:build Assembled command: 'cd "/opt/local/var/macports/build /_Users_devans_macports_dports_python_py-bob-core/py27-bob- core/work/bob.core-2.0.4" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build' :debug:build Executing command line: cd "/opt/local/var/macports/build /_Users_devans_macports_dports_python_py-bob-core/py27-bob- core/work/bob.core-2.0.4" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build :info:build Traceback (most recent call last): :info:build File "setup.py", line 56, in <module> :info:build boost_modules = ['system', 'iostreams', 'filesystem'], :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/bob/blitz/extension.py", line 92, in __init__ :info:build BobLibrary.__init__(self, *args, **kwargs) :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/bob/extension/__init__.py", line 532, in __init__ :info:build raise OSError("The Library class needs CMake version >= 2.8 to be installed, but CMake cannot be found") :info:build OSError: The Library class needs CMake version >= 2.8 to be installed, but CMake cannot be found :info:build Command failed: cd "/opt/local/var/macports/build /_Users_devans_macports_dports_python_py-bob-core/py27-bob- core/work/bob.core-2.0.4" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build :info:build Exit code: 1 }}} This is caused by a missing dependency on cmake and installing cmake at this point allows the full build to complete successfully but it's not clear to me where the dependency on cmake should go. It appears to be required when the BobLibrary class is initialized which implies that it should be included in one or more depends_lib statements. But not being familiar with your code, I'm not sure whether this is only needed in a few specific modules or all. Apparently not needed in the first two. So I'll leave this to you to determine. Note that when building on our buildbots (to generate potentially disstributable binary modules) each module will be built separately in a clean environment with no ports active initially so your declared dependencies for each module need to bring in all necessary dependencies. So if we can resolve this issue, I think the ports should be ready to commit. -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by tiagofrepereira@…): Dear Dave, Thanks for the feedback. I updated the PortFiles with your suggested fix. I took a bit longer to submit this fix because we released the bob 2.0.6. Now these portfiles relies on tbob 2.0.6. Hope this is not an issue. Thanks again Tiago -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by devans@…): Replying to [comment:13 tiagofrepereira@…]:
Now these portfiles relies on tbob 2.0.6.
Is this a typo? I don't see any dependencies on tbob or any new such submission. -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by tiagofrepereira@…): Sorry, it is a typo. It is bob 2.0.6 -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by devans@…): OK, no problem. Also you posted two new zip files py-bob.zip appears to be malformed so I assume py-bob.2.zip is the correct file? -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by tiagofrepereira@…): Hi Dave, Consider the second one please (py-bob.2.zip). I had a issue with the first upload. Thanks -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:17> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-bob | --------------------------------+---------------------- Comment (by devans@…): I'm testing now. Will report shortly. -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:18> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.5 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: py-bob | --------------------------------+---------------------- Changes (by devans@…): * status: assigned => closed * resolution: => fixed Comment: All ports both python27 and python34 built successfully during testing. Committed in r142985. Thanks for all your work on this latest update to bob. If you have any further updates or modifications that you would like to make, copy me on your ticket and I'll be glad to test and commit them. Dave -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
#48994: py-bob @2.0.6 New release --------------------------------+---------------------- Reporter: tiagofrepereira@… | Owner: devans@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: py-bob | --------------------------------+---------------------- -- Ticket URL: <https://trac.macports.org/ticket/48994#comment:20> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts