Fix CALC_SIZE with rlworkman's repository; this should
work with most others as well.