Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715256 - net-analyzer/sngrep-1.4.6-r1 : capture.c:194:21: error: assignment of read-only variable ‘stdin’
Summary: net-analyzer/sngrep-1.4.6-r1 : capture.c:194:21: error: assignment of read-on...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 09:52 UTC by Toralf Förster
Modified: 2020-03-29 12:25 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.80 KB, text/plain)
2020-03-29 09:52 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,30.72 KB, text/plain)
2020-03-29 09:52 UTC, Toralf Förster
Details
environment (environment,57.74 KB, text/plain)
2020-03-29 09:52 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.95 KB, application/x-bzip)
2020-03-29 09:52 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.82 KB, application/x-bzip)
2020-03-29 09:52 UTC, Toralf Förster
Details
net-analyzer:sngrep-1.4.6-r1:20200329-020323.log (net-analyzer:sngrep-1.4.6-r1:20200329-020323.log,8.42 KB, text/plain)
2020-03-29 09:52 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,17.18 KB, application/x-bzip)
2020-03-29 09:52 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 2020-03-29 09:52:05 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I.      -O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Wformat -Werror=format-security -c -o sngrep-capture.o test -f capture.c || echo ./capture.c
capture.c: In function capture_offline:
capture.c:194:21: error: assignment of read-only variable stdin
  194 |         if (!(stdin = freopen(/dev/tty, r, stdin))) {
      |                     ^
make[2]: *** [Makefile:555: sngrep-capture.o] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200328-141627

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 29 00:09:08 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO net-analyzer/sngrep
[ebuild  N    ] net-analyzer/sngrep-1.4.6-r1  USE="ipv6 pcre unicode -eep -gnutls -openssl"
Comment 1 Toralf Förster gentoo-dev 2020-03-29 09:52:08 UTC
Created attachment 626732 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-29 09:52:10 UTC
Created attachment 626734 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-29 09:52:13 UTC
Created attachment 626736 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-29 09:52:15 UTC
Created attachment 626738 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-29 09:52:18 UTC
Created attachment 626740 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-29 09:52:21 UTC
Created attachment 626742 [details]
net-analyzer:sngrep-1.4.6-r1:20200329-020323.log
Comment 7 Toralf Förster gentoo-dev 2020-03-29 09:52:23 UTC
Created attachment 626744 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-03-29 12:24:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75dee2285b1309f42d7490673d94a682fe30b1fa

commit 75dee2285b1309f42d7490673d94a682fe30b1fa
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-03-29 12:19:34 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-03-29 12:24:04 +0000

    net-analyzer/sngrep: Fix building against sys-libs/musl
    
    See also:
    https://github.com/irontec/sngrep/commit/604f6d0ce2ec42ac494d76c95e68850ea6e7da8f
    
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/715256
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/sngrep/files/sngrep-1.4.6-stdin.patch | 11 ++++++
 net-analyzer/sngrep/sngrep-1.4.6-r2.ebuild         | 44 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)