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

Bug 883127

Summary: dev-ruby/serialport-1.3.2 - posix_serialport_impl.c: error: incompatible pointer to integer
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31998
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-ruby:serialport-1.3.2:20221126-070539.log
emerge-history.txt
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
var.tmp.clang.tar.bz2

Description Toralf Förster gentoo-dev 2022-11-26 10:20:14 UTC
      is deprecated in all versions of C and is not supported in C2x
      [-Wdeprecated-non-prototype]
VALUE sp_create_impl(class, _port)
      ^
posix_serialport_impl.c:113:13: error: incompatible pointer to integer
      conversion passing 'struct RFile *' to parameter of type 'VALUE'
      (aka 'unsigned long') [-Wint-conversion]

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

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

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.5
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit f6f5e85533f958c663c61e42bd6cbd27a2544d3f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 26 06:33:54 2022 +0000

    2022-11-26 06:33:53 UTC

emerge -qpvO dev-ruby/serialport
[ebuild  N    ] dev-ruby/serialport-1.3.2  USE="-test" RUBY_TARGETS="ruby27 ruby31 -ruby30"
Comment 1 Toralf Förster gentoo-dev 2022-11-26 10:20:15 UTC
Created attachment 836989 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-26 10:20:16 UTC
Created attachment 836991 [details]
dev-ruby:serialport-1.3.2:20221126-070539.log
Comment 3 Toralf Förster gentoo-dev 2022-11-26 10:20:17 UTC
Created attachment 836993 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-26 10:20:18 UTC
Created attachment 836995 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-26 10:20:19 UTC
Created attachment 836997 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-26 10:20:20 UTC
Created attachment 836999 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-26 10:20:21 UTC
Created attachment 837001 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-26 10:20:22 UTC
Created attachment 837003 [details]
var.tmp.clang.tar.bz2
Comment 9 Larry the Git Cow gentoo-dev 2023-08-12 10:01:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d47923d11bb7dd81c5275b6677202ca6b72164e

commit 9d47923d11bb7dd81c5275b6677202ca6b72164e
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-07-22 18:42:27 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-08-12 10:01:12 +0000

    dev-ruby/serialport: Fix incompatible pointer to integer
    
    Closes: https://bugs.gentoo.org/883127
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../files/serialport-1.3.2-clang16-build-fix.patch | 13 ++++++++
 dev-ruby/serialport/serialport-1.3.2-r1.ebuild     | 38 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)