Bug 1189088

Summary: glib2 fails with glibc 2.34
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1189079    

Description Martin Liška 2021-08-04 14:47:56 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:B/glib2/standard/x86_64

due to:
[  133s] ../glib/gspawn.c:1497:7: error: too few arguments to function ‘close_range’
[  133s]  1497 |   if (close_range (lowfd, G_MAXUINT) != 0 && errno == ENOSYS)
[  133s]       |       ^~~~~~~~~~~
[  133s] In file included from /usr/include/unistd.h:1205,
[  133s]                  from /usr/include/bits/sigstksz.h:24,
[  133s]                  from /usr/include/signal.h:328,
[  133s]                  from /usr/include/sys/wait.h:36,
[  133s]                  from ../glib/gspawn.c:25:
[  133s] /usr/include/bits/unistd_ext.h:56:12: note: declared here
[  133s]    56 | extern int close_range (unsigned int __fd, unsigned int __max_fd,
[  133s]       |            ^~~~~~~~~~~

This has already been fixed upstream:

https://gitlab.gnome.org/GNOME/glib/-/commit/b71117d89434db83d34bc1b981ca03d4be299576
https://gitlab.gnome.org/GNOME/glib/-/commit/63e7864d1a0ddbead3c18872e95116e3843e81be
Comment 1 Dominique Leuenberger 2021-08-04 15:47:53 UTC
910172  State:review     By:dimstar      When:2021-08-04T15:47:29
        submit:          home:dimstar:Factory/glib2@586bfa42a22005db57d5e7098f3bc22f -> GNOME:Factory
        Review by User       is new:       gnome-review-bot                                  
        Review by Group      is new:       gnome-maintainers                                 
        Descr: - Add 63e7864.patch: Fix build with glibc 2.34: use 3 parameters
               for close_range (boo#1189088).
Comment 2 OBSbugzilla Bot 2021-08-06 07:51:52 UTC
This is an autogenerated message for OBS integration:
This bug (1189088) was mentioned in
https://build.opensuse.org/request/show/910437 Factory / glib2