Bug#1067066: ruby-fusefs: fusefs_fuse.c:31:10: error: implicit declaration of function ‘fuse_chan_fd’ [-Werror=implicit-function-declaration]

2024-04-11 Thread Zixing Liu
Package: ruby-fusefs
Followup-For: Bug #1067066
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/fix-missing-includes.patch: Add missing includes.
Closes LP: #2061037.


Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), 
(100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-26-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch 
ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch
--- ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch 1969-12-31 
17:00:00.0 -0700
+++ ruby-fusefs-0.7.0/debian/patches/fix-missing-includes.patch 2024-04-11 
16:38:56.0 -0600
@@ -0,0 +1,19 @@
+Description: Add missing includes
+Author: Zixing Liu 
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067066
+Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/ruby-fusefs/+bug/2061037
+Forwarded: no
+Last-Update: 2024-04-11
+---
+Index: ruby-fusefs/ext/fusefs_fuse.c
+===
+--- ruby-fusefs.orig/ext/fusefs_fuse.c
 ruby-fusefs/ext/fusefs_fuse.c
+@@ -7,6 +7,7 @@
+ #define _FILE_OFFSET_BITS 64
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
diff -Nru ruby-fusefs-0.7.0/debian/patches/series 
ruby-fusefs-0.7.0/debian/patches/series
--- ruby-fusefs-0.7.0/debian/patches/series 2022-06-30 17:15:19.0 
-0600
+++ ruby-fusefs-0.7.0/debian/patches/series 2024-04-11 16:35:51.0 
-0600
@@ -1,2 +1,3 @@
 port-to-newer-ruby.patch
 fix-dynamic-library-load-path.patch
+fix-missing-includes.patch


Bug#1067066: ruby-fusefs: fusefs_fuse.c:31:10: error: implicit declaration of function ‘fuse_chan_fd’ [-Werror=implicit-function-declaration]

2024-03-17 Thread Sebastian Ramacher
Source: ruby-fusefs
Version: 0.7.0-5
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=ruby-fusefs=amd64=0.7.0-5%2Bb3=1710696156=0

make[1]: Entering directory '/<>/ext'
gcc -fdebug-prefix-map=/<>=. -I. 
-I/usr/include/x86_64-linux-gnu/ruby-3.1.0 
-I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. 
-Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -fPIC  -o fusefs_fuse.o -c fusefs_fuse.c
fusefs_fuse.c: In function ‘fusefs_fd’:
fusefs_fuse.c:31:10: error: implicit declaration of function ‘fuse_chan_fd’ 
[-Werror=implicit-function-declaration]
   31 |   return fuse_chan_fd(fusech);
  |  ^~~~
fusefs_fuse.c: In function ‘fusefs_unmount’:
fusefs_fuse.c:41:5: warning: ignoring return value of ‘system’ declared with 
attribute ‘warn_unused_result’ [-Wunused-result]
   41 | system(buf);
  | ^~~
cc1: some warnings being treated as errors
make[1]: *** [Makefile:246: fusefs_fuse.o] Error 1
make[1]: Leaving directory '/<>/ext'

Cheers
-- 
Sebastian Ramacher