pkglink
struct pkglink *next;
struct pkglink *prev;
#define PKGLIST_EMPTY(pkglink) ((pkglink)->next == (pkglink))
struct pkglink;