First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 41062
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Robert Morris <robertm@idcomm.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

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

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


Not eligible to see or edit group visibility for this bug.






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


Description:   Opened: 2004-02-09 19:17 0000
When attempting to inject any package into portage using Portage 2.0.50
it returns with the error '!!! BAD COUNTER in <package-name>'. it seems to inject the package ok otherwise.

Reproducible: Always
Steps to Reproduce:
1. emerge --inject net-www/epiphany-1.0.7

Actual Results:  
emerge returns with:
!!! BAD COUNTER in net-www/epiphany-1.0.7
>>> Injected net-www/epiphany-1.0.7.

Expected Results:  
Should return with
>>> Injected net-www/epiphany-1.0.7

I've checked the sources of ver. 2.0.50 against ver. 2.0.49-r21 and I think I've
tracked down the problem.

In file /usr/lib/portage/pym/portage.py :
The function dbapi.counter_tick_core has this line (line 3808 in ver 2.0.50)
old_counter = long(self.aux_get(x, ["COUNTER"])[0])

but aux_get() just returns None since there is no code in the function which
raises an excepion and causes the error message.

In version 2.0.49-rc2 the variable mycpv is None so this code is never called.
By changing line 4000 from:
counter=db[self.root]["vartree"].dbapi.counter_tick(self.root,mycpv)
to:
counter=db[self.root]["vartree"].dbapi.counter_tick(self.root)
as it is in version 2.0.490-rc2, the error is eliminated.

I'm not sure if somebody forgot to add the aux_get() code, if the mycpv variable
was added by accident, or if this really is the correct result (I hope not
because to users it seems like there is something very bad happening).

------- Comment #1 From P.L.Hayes 2004-03-04 18:03:29 0000 -------
I noticed this too but I also discovered that although the injected pkg shows
up in 'emerge search' etc, emerge will still try to install the old pkgs I was
trying to skip. I've tried to use inject to stop 'emerge system/world' from
trying to install devfsd and for other stuff but it doesn't work.   

------- Comment #2 From P.L.Hayes 2004-03-08 10:48:23 0000 -------
Okay, my mistake - I've found that it works but only if I inject the exact
version of devfsd that emerge thinks should be installed.       

------- Comment #3 From Masatomo Nakano (RETIRED) 2004-03-17 12:31:43 0000 -------
Fixed in cvs

------- Comment #4 From Jordi Vilalta 2004-07-03 09:51:25 0000 -------
Can you change this bug's status to closed?

------- Comment #5 From Jason Stubbs (RETIRED) 2004-07-03 17:18:44 0000 -------
Done.

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