Set a large heavy-based saucepan with the oil over a medium heat. Cook the onion for 5 minutes until soft and translucent. Stir in the ginger and cumin. Season, add the wine and cook out for 2 more minutes.
Stir in the pears, cinnamon sticks, sugar, vinegar, cranberries and walnuts. Increase the heat, bring to the boil then reduce to a gentle simmer. Cover with a lid and cook for 1 hour 30 minutes, stirring occasionally, until thick and syrupy.
Divide the chutney among sterilised jars. Cool then seal with lids.
Serve alongside sharp cheddar cheese and oaty crackers.