Skip to content

Commit

Permalink
app-misc/graphlcd-base: fix compilation with musl
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/716892
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Aug 27, 2020
1 parent a9d1b1f commit 032956f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app-misc/graphlcd-base/files/graphlcd-base-2.0.0-musl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/glcdgraphics/font.c
+++ b/glcdgraphics/font.c
@@ -176,7 +176,7 @@

int y; int loop;
int num = 0;
- uint dot; uint b;
+ unsigned int dot; unsigned int b;
cBitmap * charBitmap = new cBitmap(charWidth, fontHeight);
charBitmap->SetMonochrome(true);
charBitmap->Clear();
2 changes: 2 additions & 0 deletions app-misc/graphlcd-base/graphlcd-base-1.0.2-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ BDEPEND="virtual/pkgconfig"

DOCS=( "HISTORY" "README" "TODO" "docs/." )

PATCHES=( "${FILESDIR}/${PN}-2.0.0-musl.patch" )

src_prepare() {
default

Expand Down
2 changes: 2 additions & 0 deletions app-misc/graphlcd-base/graphlcd-base-2.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ BDEPEND="virtual/pkgconfig"

DOCS=( "HISTORY" "README" "TODO" "docs/." )

PATCHES=( "${FILESDIR}/${P}-musl.patch" )

src_prepare() {
default

Expand Down

0 comments on commit 032956f

Please sign in to comment.