[MacPorts] #26454: Update for tovid to version 0.33
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: MacPorts 1.9.2 Component: ports | Version: 1.9.1 Keywords: tovid, 0.33 | Port: tovid -----------------------------------+---------------------------------------- Hello all I am attempting to update the tovid port to version 0.33 which has some python dependencies, etc. I have a few issues with how it's building and this is my first stab at writing a Portfile. If add this line I can get tovid to actually install and run properly: +destroot.destdir --prefix=${prefix} --root=${destroot} However it installs all the python modules to /opt/local/lib/python2.6 /site-packages which is not in sys.path so running 'tovid gui' fails to find libtovid.guid module. If I remove this line it will install everything in the long "framework" path but then the 'tovid' binary fails to find the shell scripts and it names it to tovid-2.6 which is silly. I believe the binary is expecting the bash script to be located in ${prefix}/lib or what not. So in essence I am looking for the proper way to use the python port group and get this running. Any guidance would be appreciated. I've also patched the source to use the 'g' prefix utils in coreutils which I have attached. Finally, as soon as I get the build things worked out the last item would be to replace the Linux specific bash code that gleams info out of /proc/cpuinfo with proper sysctl calls that is portable across the supported OS X versions. I may be getting some help on those patches but I am pretty confident that I can fix that portion of the code myself if needed. Any help or suggestions would be appreciated. I am going to keep plugging away. Thank you, Dan (a.k.a., chillywilly on #macports) -- Ticket URL: <http://trac.macports.org/ticket/26454> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: MacPorts 1.9.2 Component: ports | Version: 1.9.1 Keywords: tovid, 0.33 | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): I think I may create one patch file for all this stuff at some point. Was a pain to attach all these files. -- Ticket URL: <http://trac.macports.org/ticket/26454#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: MacPorts 1.9.2 Component: ports | Version: 1.9.1 Keywords: tovid, 0.33 | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): Replying to [ticket:26454 danielb@…]: I think I know how to get this to work without the destroot.destdir line but I am still trying to figure out how this things works. I need to link the scripts to: ${prefix}/lib/${name} I am just not sure what commands to use at this point or where to call them from...I am thinking post-destroot? I am struggling with trying to figure out the difference between ${worksrcpath}, ${desroot}, and ${prefix}....help? :)
Hello all I am attempting to update the tovid port to version 0.33 which has some python dependencies, etc. I have a few issues with how it's building and this is my first stab at writing a Portfile. If add this line I can get tovid to actually install and run properly:
+destroot.destdir --prefix=${prefix} --root=${destroot}
However it installs all the python modules to /opt/local/lib/python2.6 /site-packages which is not in sys.path so running 'tovid gui' fails to find libtovid.guid module.
If I remove this line it will install everything in the long "framework" path but then the 'tovid' binary fails to find the shell scripts and it names it to tovid-2.6 which is silly. I believe the binary is expecting the bash script to be located in ${prefix}/lib or what not. So in essence I am looking for the proper way to use the python port group and get this running. Any guidance would be appreciated.
I've also patched the source to use the 'g' prefix utils in coreutils which I have attached. Finally, as soon as I get the build things worked out the last item would be to replace the Linux specific bash code that gleams info out of /proc/cpuinfo with proper sysctl calls that is portable across the supported OS X versions. I may be getting some help on those patches but I am pretty confident that I can fix that portion of the code myself if needed.
Any help or suggestions would be appreciated. I am going to keep plugging away.
Thank you,
Dan (a.k.a., chillywilly on #macports)
-- Ticket URL: <http://trac.macports.org/ticket/26454#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: tovid -----------------------------------+---------------------------------------- Changes (by jmr@…): * cc: danielb@… (removed) * keywords: tovid, 0.33 => * version: 1.9.1 => * owner: macports-tickets@… => macports@… * milestone: MacPorts 1.9.2 => Comment: As per the ticket guidelines linked from the New Ticket page, please don't set the Milestone field, and remember to cc the maintainer. You do not need to be in cc when you are the reporter. -- Ticket URL: <http://trac.macports.org/ticket/26454#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): Replying to [comment:4 jmr@…]:
As per the ticket guidelines linked from the New Ticket page, please don't set the Milestone field, and remember to cc the maintainer. You do not need to be in cc when you are the reporter.
I could not remove the milestone after I set it or I was unable to figure out how to remove it. -- Ticket URL: <http://trac.macports.org/ticket/26454#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): I added a new Portfile. Not quite done yet. I am not sure whether the symlinking approach is a good idea or not. There's some other files that I left sitting in the python framework path as well. Thoughts? -- Ticket URL: <http://trac.macports.org/ticket/26454#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): Updated files to build tovid 033. This is very close to the final version. I need to do some more testing. -- Ticket URL: <http://trac.macports.org/ticket/26454#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): Added the following patches which are referenced in the new Portfile diff: {{{ # Patch tovid scripts to use coreutils binaries: gdu, gsed, gmd5sum, and greadlink # Patch ffmpeg flags w/ vendor patch and /proc/cpuinfo munging to use sysctl (contributed by drepper) patchfiles patch-libtovid-coreutils-bins.diff \ patch-src-coreutils-bins.diff \ patch-ffmpeg-flag-fix.diff \ patch-cpuinfo-tovid-init.in.diff \ patch-cpuinfo-tovid.diff }}} The rest of the patches can be removed. I do not have access to remove them. -- Ticket URL: <http://trac.macports.org/ticket/26454#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 -----------------------------------+---------------------------------------- Reporter: danielb@… | Owner: macports@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: tovid -----------------------------------+---------------------------------------- Comment(by danielb@…): Ok, Please see the last 6 patches that I have attached. I forgot to check the "overwrite if same file name button" a couple of times :-/. This is the final version of the port. I have other issues with transcode segfaulting when doing more sophisticated things with 'tovid disc', but I can at least create a DVD with a simple text menu. I am not sure what to do about the segfault issues in transcode, but that's not necessarily a tovid issue. -Dan -- Ticket URL: <https://trac.macports.org/ticket/26454#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26454: Update for tovid to version 0.33 ------------------------+-------------------------------- Reporter: danielb@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: tovid | ------------------------+-------------------------------- Changes (by ryandesign@…): * owner: macports@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/26454#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts