First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 92843
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: App-Backup Team <app-backup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Remy Blank <remy.blank@pobox.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
sync2cd-0.9.ebuild sync2cd-0.9.ebuild text/plain Remy Blank 2005-05-16 15:54 0000 675 bytes Details
sync2cd-1.1.ebuild sync2cd-1.1.ebuild text/plain Remy Blank 2006-04-07 12:10 0000 533 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 92843 depends on: Show dependency tree
Show dependency graph
Bug 92843 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-16 15:53 0000
New ebuild for sync2cd-0.9.

------- Comment #1 From Remy Blank 2005-05-16 15:54:54 0000 -------
Created an attachment (id=59064) [edit]
sync2cd-0.9.ebuild

To be put into app-cdr/sync2cd.

------- Comment #2 From Daniel Black 2005-06-08 06:47:41 0000 -------
looks good  

------- Comment #3 From Remy Blank 2005-06-08 07:28:02 0000 -------
Is it normal that the ebuild has to call python_mod_compile in pkg_postinst to
compile the python modules? Wasn't this automatic before?

I see at least one other ebuild (gnome-python) calls python_mod_optimize, and
python_mod_cleanup in pkg_postrm. Should the latter also be added?

------- Comment #4 From Daniel Black 2005-06-08 14:38:45 0000 -------
Remy,  
  
You're right - python_mod_compile in src_install is a bit odd. I'm not sure if 
anything has changed as I don't maintain many (any?) python modules. 
 
I'd look for more examples of dist eclass usage. When I get around to this one 
I'll consult some of the more python savy devs. 

------- Comment #5 From Remy Blank 2005-06-09 00:54:33 0000 -------
Looking at distutils_src_install(), it seems that starting with python-2.3,
modules are not compiled through distutils anymore, but later in
distutils_pkg_postinst(), where python_mod_optimize() is called with every
module in PYTHON_MODNAME. This will compile the modules, but only if they are
packages, i.e. subdirectories of /usr/lib/pythonX.Y/site-packages.

This ebuild, however, installs just one file at this location. The comment at
the beginning of python_mod_compile() seems to indicate that this is the
function to call for the job. That's why I added the call in pkg_postinst().

Would it make sense to change distutils_pkg_postinst() to call
python_mod_compile() if a module in PYTHON_MODNAME is a file instead of a
directory? I could write a patch for that, if it does.

------- Comment #6 From Daniel Black 2005-06-09 05:27:21 0000 -------
python people - any comment on comment #5 

------- Comment #7 From Remy Blank 2005-07-11 22:45:06 0000 -------
Daniel,

I noticed you added an ebuild for sync2cd-0.9 to portage, pretty much identical
to the old 0.8 ebuild. Did you get any answers to the questions above? I'm
always interested in improving my ebuild writing skills ;-)

------- Comment #8 From Daniel Black 2005-07-12 22:33:26 0000 -------
sorry Remy - I'm not that familiar with the internals of python building. 
 
I was hoping on of the python herd members could answer your question. 

------- Comment #9 From Remy Blank 2005-07-13 00:05:12 0000 -------
No problem. But would it be possible to add the dependency on virtual/eject, as
it is used during restore, and to add the src_test() function so that the unit
tests are run? This would allow catching platform-specific bugs.

RDEPEND="virtual/eject"

src_test() {
	cd ${S}/tests
	./runTests.py || die "Unit tests failed"
}

------- Comment #10 From Remy Blank 2006-04-07 12:09:12 0000 -------
Version 1.0 is out.

------- Comment #11 From Remy Blank 2006-04-07 12:10:49 0000 -------
Created an attachment (id=84149) [edit]
Ebuild

Ebuild for new version.

I added running of the test suite during the test phase.

------- Comment #12 From Remy Blank 2006-05-07 10:01:17 0000 -------
(From update of attachment 84149 [edit])
Version 1.1 is out. Massively decreased memory usage for large archives.

------- Comment #13 From Jakub Moc 2006-05-12 05:08:43 0000 -------
*** Bug 133105 has been marked as a duplicate of this bug. ***

------- Comment #14 From Lisa Seelye (RETIRED) 2006-06-27 08:30:38 0000 -------
Fixed In CVS

First Last Prev Next    No search results available      Search page      Enter new bug