Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 811501

Summary: games-arcade/ri-li-2.0.1-r1 - tableau.cc: error: ordered comparison of pointer with integer zero (unsigned char* and int)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: samuel.bauer
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://sourceforge.net/p/ri-li/bugs/2/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
games-arcade:ri-li-2.0.1-r1:20210903-175226.log
logs.tar.bz2
temp.tar.bz2
ri-li-2.0.1-gcc11.patch
ri-li-2.0.1-r2.ebuild

Description Toralf Förster gentoo-dev 2021-09-03 18:55:25 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -DDATA_DIR="\"/usr/share/Ri-li\"" -Wno-deprecated -DLINUX  -pipe -march=native -fno-diagnostics-color -O2 -c -o utils.o utils.cc
tableau.cc: In member function ‘bool Tableau::Save()’:
tableau.cc:90:9: error: ordered comparison of pointer with integer zero (‘unsigned char*’ and ‘int’)
   90 |   if(Buf<=0) return false;
      |      ~~~^~~
make[2]: *** [Makefile:385: tableau.o] Error 1
make[2]: *** Waiting for unfinished jobs....

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20210902-230016

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.54.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  HEAD of ::gentoo
commit 4b33da749520b4366897c88cc09777e2930213b2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 3 16:21:54 2021 +0000

    2021-09-03 16:21:53 UTC

emerge -qpvO games-arcade/ri-li
[ebuild  N    ] games-arcade/ri-li-2.0.1-r1
Comment 1 Toralf Förster gentoo-dev 2021-09-03 18:55:26 UTC
Created attachment 737278 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-03 18:55:28 UTC
Created attachment 737281 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-09-03 18:55:30 UTC
Created attachment 737284 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-09-03 18:55:31 UTC
Created attachment 737287 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-09-03 18:55:33 UTC
Created attachment 737290 [details]
games-arcade:ri-li-2.0.1-r1:20210903-175226.log
Comment 6 Toralf Förster gentoo-dev 2021-09-03 18:55:34 UTC
Created attachment 737293 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-09-03 18:55:35 UTC
Created attachment 737296 [details]
temp.tar.bz2
Comment 8 Samuel Bauer 2022-02-05 15:36:32 UTC
Created attachment 764403 [details, diff]
ri-li-2.0.1-gcc11.patch

gcc-11 patch, derived from debian sid package
Comment 9 Samuel Bauer 2022-02-05 15:37:37 UTC
Created attachment 764404 [details]
ri-li-2.0.1-r2.ebuild

Updated ebuild
Comment 10 Larry the Git Cow gentoo-dev 2023-02-04 23:37:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38c49856cf85f12c1ea9c8ad4ab52bc0582568a6

commit 38c49856cf85f12c1ea9c8ad4ab52bc0582568a6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-04 23:24:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-04 23:36:58 +0000

    games-arcade/ri-li: EAPI 8, fix build w/ gcc 11
    
    Closes: https://bugs.gentoo.org/811501
    Signed-off-by: Sam James <sam@gentoo.org>

 games-arcade/ri-li/files/ri-li-2.0.1-gcc11.patch   | 47 ++++++++++++++++++++++
 ...ri-li-2.0.1-r1.ebuild => ri-li-2.0.1-r2.ebuild} | 25 +++++++-----
 2 files changed, 63 insertions(+), 9 deletions(-)