SOURCES: poldek-refcnt.patch (NEW) - extend refcnt to uint (correct me if i...
shadzik
shadzik at pld-linux.org
Tue Mar 31 12:15:53 CEST 2009
Author: shadzik Date: Tue Mar 31 10:15:53 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- extend refcnt to uint (correct me if i'm wrong, but we don't need signed int here, think even about uint32 to fix further complications)
- fixes ugly bug
[root at moana ~]# poldek -n titanium -n titanium-ready -n titanium-test -s /home/users/shadzik/rpm/RPMS/
b³±d: open /home/users/shadzik/rpm/RPMS/packages.ndir.md: Nie ma takiego pliku ani katalogu
uwaga: trying to scan directory /home/users/shadzik/rpm/RPMS/...
Wczytywanie [pndir]titanium...
Wczytywanie [pndir]titanium...
Wczytywanie [pndir]titanium-ready...
Wczytywanie [pndir]titanium-ready...
Wczytywanie [pndir]titanium-test...
Wczytywanie [pndir]titanium-test...
Wczytywanie [dir]/home/users/shadzik/rpm/RPMS/...
200..400..436
Przeczytano 11839 pakietów
Usuniêto 1 zdublowany pakiet z listy dostêpnych
Something wrong, something not quite right with 0.30 (snap20080820.23)
Assertion 'pkg->_refcnt < INT16_MAX - 1' failed, pkg.c:1461
Please report this bug to <mis at pld-linux.org>.
Przerwane
---- Files affected:
SOURCES:
poldek-refcnt.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/poldek-refcnt.patch
diff -u /dev/null SOURCES/poldek-refcnt.patch:1.1
--- /dev/null Tue Mar 31 12:15:54 2009
+++ SOURCES/poldek-refcnt.patch Tue Mar 31 12:15:47 2009
@@ -0,0 +1,22 @@
+--- pkg.h-orig 2009-03-31 12:08:29.238718195 +0200
++++ pkg.h 2009-03-31 12:08:49.843187842 +0200
+@@ -106,7 +106,7 @@
+ int32_t itime; /* date of installation */
+
+ /* private, don't touch */
+- int16_t _refcnt;
++ uint16_t _refcnt;
+ tn_alloc *na;
+ int16_t _buf_size;
+ char _buf[0]; /* private, store all string members */
+--- pkg.c-orig 2009-03-31 11:37:37.825570800 +0200
++++ pkg.c 2009-03-31 12:05:24.631861551 +0200
+@@ -1458,7 +1458,7 @@
+ pkg->na ? pkg->na->_refcnt : -1,
+ pkg->_refcnt, &pkg->_refcnt);
+ }
+- n_assert(pkg->_refcnt < INT16_MAX - 1);
++ n_assert(pkg->_refcnt < UINT16_MAX - 1);
+ pkg->_refcnt++;
+ return pkg;
+ }
================================================================
More information about the pld-cvs-commit
mailing list