app-arch/pbzip2: fix builds w/newer clang
authorMike Frysinger <vapier@chromium.org>
Wed, 31 Jan 2018 15:47:18 +0000 (10:47 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 31 Jan 2018 15:49:45 +0000 (10:49 -0500)
Bug: https://crbug.com/806102
Bug: https://bugs.launchpad.net/pbzip2/+bug/1746369

app-arch/pbzip2/pbzip2-1.1.13.ebuild

index ff11b13040bb8f49db17b6db11523422800c4287..8f83901fc495f6562992b243d218a3bd185683c1 100644 (file)
@@ -22,6 +22,8 @@ DEPEND="${RDEPEND}
        static? ( ${LIB_DEPEND} )"
 
 src_prepare() {
+       # https://bugs.launchpad.net/pbzip2/+bug/1746369
+       sed -i 's:"PRIuMAX":" PRIuMAX ":g' *.cpp || die
        epatch "${FILESDIR}"/${PN}-1.1.10-makefile.patch
        tc-export CXX
        use static && append-ldflags -static