From afd3ceb085e7e68f65bc02be2a017285b1a4f7a4 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 17 Jul 2023 09:19:24 +0200 Subject: [PATCH] libpaper: don't write a /etc/papersize by default this was copied from Arch, but the parsing code doesn't understand empty lines and comment lines, so I'm not sure how that is supposed to work. This led to the default papersize being the comment line which makes the lookup fail, and in combination with xpdf not checking any return values results in xpdf crashing. --- mingw-w64-libpaper/PKGBUILD | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mingw-w64-libpaper/PKGBUILD b/mingw-w64-libpaper/PKGBUILD index 517d7a47a8..c55271a35c 100644 --- a/mingw-w64-libpaper/PKGBUILD +++ b/mingw-w64-libpaper/PKGBUILD @@ -53,8 +53,4 @@ check() { package() { cd "${srcdir}"/build-${CARCH} make install DESTDIR="${pkgdir}" - - # add systemwide default papersize read by many office applications - install -dm 755 ${pkgdir}${MINGW_PREFIX}/etc - echo '# Simply write the paper name. See papersize(5) for possible values' > ${pkgdir}${MINGW_PREFIX}/etc/papersize }