Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919204 - x11-apps/xlsfonts-1.0.7 - xlsfonts.c: error: assignment to char from incompatible pointer type const char [-Wincompatible-pointer-types]
Summary: x11-apps/xlsfonts-1.0.7 - xlsfonts.c: error: assignment to char from incompat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-04 20:08 UTC by Toralf Förster
Modified: 2023-12-09 18:11 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.70 KB, text/plain)
2023-12-04 20:08 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,72.07 KB, application/x-xz)
2023-12-04 20:08 UTC, Toralf Förster
Details
environment (environment,96.45 KB, text/plain)
2023-12-04 20:08 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,964 bytes, application/x-xz)
2023-12-04 20:08 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,41.09 KB, application/x-xz)
2023-12-04 20:08 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,6.73 KB, application/x-xz)
2023-12-04 20:08 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,74.49 KB, application/x-xz)
2023-12-04 20:08 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,25.11 KB, application/x-xz)
2023-12-04 20:08 UTC, Toralf Förster
Details
x11-apps:xlsfonts-1.0.7:20231204-152152.log (x11-apps:xlsfonts-1.0.7:20231204-152152.log,9.46 KB, text/plain)
2023-12-04 20:08 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-04 20:08:39 UTC
too long lines were shrinked:

/bin/sed -e 's|__vendorversion__|"xlsfonts 1.0.7" "X Version 11"|' 	-e 's|__xorgversion__|"xlsfonts 1.0.7" "X Version 11"|' 	-e 's|__xservername__|Xorg|g' 	-e 's|__xconfigfile__|xorg.conf|g' 	-e 's|__projectroot__|/usr|g' 	-e 's|__apploaddir__||g' 	-e 's|__appmansuffix__|1|g' 	-e 's|__drivermansuffi
make[2]: Leaving directory '/var/tmp/portage/x11-apps/xlsfonts-1.0.7/work/xlsfonts-1.0.7/man'
make[2]: Entering directory '/var/tmp/portage/x11-apps/xlsfonts-1.0.7/work/xlsfonts-1.0.7'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-fo
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-fo
xlsfonts.c: In function get_list:
xlsfonts.c:204:23: error: assignment to char ** from incompatible pointer type const char ** [-Wincompatible-pointer-types]
  204 |                 fonts = &pattern;
      |                       ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-20231127-152538

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.6
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	OpenJDK 17.0.8.1_p1 [openjdk-17]
2)	OpenJDK 21.0.1_p12 [openjdk-21]
3)	OpenJDK 8.382_p05 [openjdk-8]
4)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-17 
  [3]   openjdk-21 
  [4]   openjdk-bin-17 
  [5]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 9fbac9a87a3f54ee750529d7650d1bab53f12910
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 4 14:16:57 2023 +0000

    2023-12-04 14:16:56 UTC

emerge -qpvO x11-apps/xlsfonts
[ebuild  N    ] x11-apps/xlsfonts-1.0.7
Comment 1 Toralf Förster gentoo-dev 2023-12-04 20:08:40 UTC
Created attachment 876948 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-04 20:08:42 UTC
Created attachment 876949 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-04 20:08:43 UTC
Created attachment 876950 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-04 20:08:44 UTC
Created attachment 876951 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-04 20:08:45 UTC
Created attachment 876952 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-04 20:08:46 UTC
Created attachment 876953 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-04 20:08:48 UTC
Created attachment 876954 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-04 20:08:49 UTC
Created attachment 876955 [details]
temp.tar.xz
Comment 9 Toralf Förster gentoo-dev 2023-12-04 20:08:50 UTC
Created attachment 876956 [details]
x11-apps:xlsfonts-1.0.7:20231204-152152.log
Comment 10 Larry the Git Cow gentoo-dev 2023-12-09 18:11:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=734485684fdf87e64b35402e54c3b51657d62689

commit 734485684fdf87e64b35402e54c3b51657d62689
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-09 16:34:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-09 18:06:00 +0000

    x11-apps/xlsfonts: fix modern C issue
    
    Closes: https://bugs.gentoo.org/919204
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-apps/xlsfonts/files/xlsfonts-1.0.7-c99.patch | 66 ++++++++++++++++++++++++
 x11-apps/xlsfonts/xlsfonts-1.0.7-r1.ebuild       | 19 +++++++
 2 files changed, 85 insertions(+)