Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814965 - sys-fs/mtpfs-1.1-r6 - /.../gthread.h: error: extra brace group at end of initializer
Summary: sys-fs/mtpfs-1.1-r6 - /.../gthread.h: error: extra brace group at end of init...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-26 08:16 UTC by Toralf Förster
Modified: 2021-09-30 22:20 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.30 KB, text/plain)
2021-09-26 08:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,65.59 KB, text/plain)
2021-09-26 08:16 UTC, Toralf Förster
Details
environment (environment,20.85 KB, text/plain)
2021-09-26 08:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,5.89 KB, application/x-bzip)
2021-09-26 08:16 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.17 KB, application/x-bzip)
2021-09-26 08:16 UTC, Toralf Förster
Details
sys-fs:mtpfs-1.1-r6:20210926-065352.log (sys-fs:mtpfs-1.1-r6:20210926-065352.log,8.14 KB, text/plain)
2021-09-26 08:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,8.60 KB, application/x-bzip)
2021-09-26 08:16 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 2021-09-26 08:16:52 UTC
                 from ./mtpfs.h:25,
                 from mtpfs.c:9:
/usr/include/glib-2.0/glib/deprecated/gthread.h:129:37: error: extra brace group at end of initializer
  129 | #define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER } GLIB_DEPRECATED_MACRO_IN_2_32_FOR(g_mutex_init)
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
./mtpfs.h:80:29: note: in expansion of macro ‘G_STATIC_MUTEX_INIT’
   80 | static GMutex device_lock = G_STATIC_MUTEX_INIT;

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20210925-180029

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 456bd366bedf86d8e86f09de7bc0f24723b29677
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 26 06:21:27 2021 +0000

    2021-09-26 06:21:26 UTC

emerge -qpvO sys-fs/mtpfs
[ebuild  N    ] sys-fs/mtpfs-1.1-r6  USE="-debug -mad"
Comment 1 Toralf Förster gentoo-dev 2021-09-26 08:16:53 UTC
Created attachment 741372 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-26 08:16:54 UTC
Created attachment 741375 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-09-26 08:16:56 UTC
Created attachment 741378 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-09-26 08:16:56 UTC
Created attachment 741381 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-09-26 08:16:57 UTC
Created attachment 741384 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-09-26 08:16:58 UTC
Created attachment 741387 [details]
sys-fs:mtpfs-1.1-r6:20210926-065352.log
Comment 7 Toralf Förster gentoo-dev 2021-09-26 08:16:59 UTC
Created attachment 741390 [details]
temp.tar.bz2
Comment 8 Kobboi 2021-09-26 16:39:06 UTC
Probably because of the upgrade of glib to 2.70
Comment 9 Bernard Cafarelli gentoo-dev 2021-09-30 22:12:53 UTC
Indeed, if I got it correctly this was deprecated for some time and this upstream patch should do the trick:
https://github.com/cjd/mtpfs/commit/ae9f70ab52e54e5442e68fb782c8f0aa940b5b96
Comment 10 Larry the Git Cow gentoo-dev 2021-09-30 22:20:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c778578a4f5e73a7edff20e09d35afbac7a8c06

commit 8c778578a4f5e73a7edff20e09d35afbac7a8c06
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2021-09-30 22:20:05 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2021-09-30 22:20:33 +0000

    sys-fs/mtpfs: fix deprecated init of lock
    
    This became an error with glib 2.70
    
    Closes: https://bugs.gentoo.org/814965
    Package-Manager: Portage-3.0.26, Repoman-3.0.3
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 .../files/mtpfs-1.1-deprecated_lock_init.patch     | 24 ++++++++++++++++++++++
 sys-fs/mtpfs/mtpfs-1.1-r6.ebuild                   |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)