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

Bug 830108

Summary: sys-fs/inotify-tools-3.21.9.6 - inotifytools.c: error: PATH_MAX undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: polynomial-c, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/inotify-tools/inotify-tools/pull/153
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sys-fs:inotify-tools-3.21.9.6:20211227-164309.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-12-27 17:06:04 UTC
too long lines were shrinked:

libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -pipe -march=native -fno-diagnostics-color -O2 -c inotifytools.c  -fPIC -DPIC -
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -pipe -march=native -fno-diagnostics-color -O2 -c redblack.c  -fPIC -DPIC -o .l
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -pipe -march=native -fno-diagnostics-color -O2 -c stats.c  -fPIC -DPIC -o .libs
inotifytools.c: In function 'inotifytools_filename_from_fid':
inotifytools.c:749:30: error: 'PATH_MAX' undeclared (first use in this function)
  749 |         static char filename[PATH_MAX];
      |                              ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20211222-160113

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0
  [2]   rust-1.57.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

php cli:

  HEAD of ::gentoo
commit b3d24ee895dc2b1af1e54e47ae9163c1c7163f0e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 27 16:22:06 2021 +0000

    2021-12-27 16:22:04 UTC

emerge -qpvO sys-fs/inotify-tools
[ebuild  N    ] sys-fs/inotify-tools-3.21.9.6  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2021-12-27 17:06:06 UTC
Created attachment 760584 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-27 17:06:08 UTC
Created attachment 760585 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-27 17:06:09 UTC
Created attachment 760586 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-27 17:06:10 UTC
Created attachment 760587 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-27 17:06:11 UTC
Created attachment 760588 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-27 17:06:12 UTC
Created attachment 760589 [details]
sys-fs:inotify-tools-3.21.9.6:20211227-164309.log
Comment 7 Toralf Förster gentoo-dev 2021-12-27 17:06:13 UTC
Created attachment 760590 [details]
temp.tar.bz2
Comment 8 CFuga 2022-06-24 19:35:23 UTC
Please, close this bug. The referred patch was applied upstream, and it's included in versions 3.22.1.0 and 3.22.6.0, both in Gentoo tree. There's no 3.21.x version left in the current tree.

https://github.com/inotify-tools/inotify-tools/commit/19370c62370b29ee44faa3d1c2de68a73e8a5089
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-24 19:36:42 UTC
(In reply to CFuga from comment #8)
> Please, close this bug. The referred patch was applied upstream, and it's
> included in versions 3.22.1.0 and 3.22.6.0, both in Gentoo tree. There's no
> 3.21.x version left in the current tree.
> 
> https://github.com/inotify-tools/inotify-tools/commit/
> 19370c62370b29ee44faa3d1c2de68a73e8a5089

Thanks!