Opened 14 years ago
Closed 5 years ago
#26454 closed update (fixed)
Update for tovid to version 0.33
Reported by: | danielb@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) | |
Port: | tovid |
Description
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)
Attachments (24)
Change History (36)
comment:1 Changed 14 years ago by danielb@…
comment:3 Changed 14 years ago by danielb@…
Replying to 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)
comment:4 follow-up: 5 Changed 14 years ago by jmroot (Joshua Root)
Cc: | danielb@… removed |
---|---|
Keywords: | tovid 0.33 removed |
Milestone: | MacPorts 1.9.2 |
Owner: | changed from macports-tickets@… to macports@… |
Version: | 1.9.1 |
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.
comment:5 Changed 14 years ago by danielb@…
Replying to 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.
comment:6 Changed 14 years ago 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?
Changed 14 years ago by danielb@…
Attachment: | cpuinfo-tovid-init.in.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | cpuinfo-tovid.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-tovid-init.in.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-tovid-init.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-todisc.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-makexml.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-makempg.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-makemenu.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-makedvd.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-make_titlesets.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-idvid.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-libtovid-deps.py.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | ffmpeg-flag-fix.diff added |
---|
comment:7 Changed 14 years ago by danielb@…
Updated files to build tovid 033. This is very close to the final version. I need to do some more testing.
Changed 14 years ago by danielb@…
Attachment: | Portfile-tovid.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-libtovid-coreutils-bins.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-coreutils-bins.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-cpuinfo-tovid-init.in.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-ffmpeg-flag-fix.diff added |
---|
comment:8 Changed 14 years ago 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.
Changed 14 years ago by danielb@…
Attachment: | Portfile-tovid.2.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-src-coreutils.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-cpuinfo-tovid-init.in.2.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-libtovid-coreutils.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-cpuinfo-tovid.diff added |
---|
Changed 14 years ago by danielb@…
Attachment: | patch-ffmpeg-pad-flag.diff added |
---|
comment:9 Changed 14 years ago 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
comment:10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports@… to macports-tickets@… |
---|
comment:11 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | MarcusCalhoun-Lopez added |
---|
comment:12 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think I may create one patch file for all this stuff at some point. Was a pain to attach all these files.