Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671100 - app-i18n/man-pages-de-2.9 version bump plus bug fix
Summary: app-i18n/man-pages-de-2.9 version bump plus bug fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markus Walter
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 670092
  Show dependency tree
 
Reported: 2018-11-13 20:51 UTC by Markus Walter
Modified: 2019-02-17 15:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
man-pages-de-2.9.ebuild (man-pages-de-2.9.ebuild,1.70 KB, text/plain)
2018-11-13 20:51 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2018-11-13 20:51:37 UTC
Created attachment 555050 [details]
man-pages-de-2.9.ebuild

Please bump man-pages-de to version 2.9 with the attached ebuild.

The diff is as below to fix bug #670092.

 	# Use the same compression as every other manpage
 	local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
-	if [[ ${PORTAGE_COMPRESS+set} == "set" ]] ; then
-		PORTAGE_COMPRESS_LOCAL="#"
-	fi
+	local PORTAGE_COMPRESS_FLAGS_LOCAL=${PORTAGE_COMPRESS_FLAGS}
 	if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
 		case ${PORTAGE_COMPRESS_LOCAL} in
-			bzip2|gzip)  local PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
+			bzip2|gzip)  PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
 			;;
 		esac
 	fi
 	sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
 		po/Makefile.in || die
+	# Fix source files for symlinks
+	case ${PORTAGE_COMPRESS_LOCAL} in
+		bzip2)  for LINKSOURCE in "${S}/upstream/"*"/links.txt"
+				do
+					sed -i -e "s/\.gz/\.bz2/g" "$LINKSOURCE" || die
+				done
+		;;
+		gzip)  # pass
+		;;
+		*)  ewarn "Unexpected compression command ${PORTAGE_COMPRESS} found, symlinks will not work."
+		;;
+	esac
 	eautoreconf
 }
Comment 1 Larry the Git Cow gentoo-dev 2019-02-17 15:43:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d456e8eadeb7a6f79431fe541a8d15a694d421

commit 54d456e8eadeb7a6f79431fe541a8d15a694d421
Author:     Markus Oehme <bureau@jonglieren-jena.de>
AuthorDate: 2019-02-17 15:10:25 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-02-17 15:43:22 +0000

    app-i18n/man-pages-de: Bump to version 2.9
    
    Closes: https://bugs.gentoo.org/671100
    Package-Manager: Portage-2.3.60, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 app-i18n/man-pages-de/Manifest                |  1 +
 app-i18n/man-pages-de/man-pages-de-2.9.ebuild | 66 +++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)