[Parted-maintainers] Bug#910326: parted: include sys/sysmacros.h missing for major(), minor()

Colin Watson cjwatson at ubuntu.com
Sat Oct 6 00:01:13 BST 2018


On Thu, Oct 04, 2018 at 03:47:25PM -0400, Mathieu Trudel-Lapierre wrote:
> parted 3.2-21 FTBFS in latest test rebuild on ubuntu. major() and minor()
> macros are being used without include sys/sysmacros.h, leading to undefined
> symbols at linking for these macros.
> 
> In Ubuntu, the attached patch was applied to achieve the following:
> 
>   * debian/patches/sysmacros_for_major_minor.patch: include sys/sysmacros.h to
>     account for the user of major() and minor() macros.

Thanks.  I took the similar upstream cherry-pick instead
(https://git.savannah.gnu.org/cgit/parted.git/commit/?id=ba5e0451b51c983e40afd123b6e0d3eddb55e610),
since that'll be slightly more convenient at the next upstream release
(git will automatically drop it rather than me having to resolve a
conflict).  It'll be in my next upload.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the Parted-maintainers mailing list