Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632092 - sys-fs/btrfs-progs-4.13.1 USE=convert & USE=static fails to compile at btrfs-convert unless sys-fs/reiserfsprogs compiled with USE=static-libs
Summary: sys-fs/btrfs-progs-4.13.1 USE=convert & USE=static fails to compile at btrfs-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-26 19:08 UTC by Attila Tóth
Modified: 2017-10-09 19:05 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2017-09-26 19:08:37 UTC
If btrfs-progs-4.13.1 gets compiled with USE=static and USE=convert, it will fail to compile while compiling btrfs-convert unless reiserfsprogs has been compiled with USE=static-libs.

Relevant error messages in the log:
    [LD]     btrfs-convert.static
x86_64-pc-linux-gnu-gcc -o btrfs-convert.static convert/main.static.o convert/common.static.o convert/source-fs.static.o convert/source-ext2.static.o convert/source-reiserfs.static.o ctree.static.o disk-io.static.o kernel-lib/radix-tree.static.o extent-tree.static.o print-tree.static.o root-tree.static.o dir-item.static.o file-item.static.o inode-item.static.o inode-map.static.o extent-cache.static.o extent_io.static.o volumes.static.o utils.static.o repair.static.o qgroup.static.o free-space-cache.static.o kernel-lib/list_sort.static.o props.static.o kernel-shared/ulist.static.o qgroup-verify.static.o backref.static.o string-table.static.o task-utils.static.o inode.static.o file.static.o find-root.static.o free-space-tree.static.o help.static.o send-dump.static.o fsfeatures.static.o kernel-lib/tables.static.o kernel-lib/raid56.static.o transaction.static.o send-stream.static.o send-utils.static.o kernel-lib/rbtree.static.o btrfs-list.static.o kernel-lib/crc32c.static.o messages.static.o uuid-tree.static.o utils-lib.static.o rbtree-utils.static.o -static -Wl,--gc-sections -lext2fs -lcom_err -L/lib64 -lreiserfscore -luuid -lblkid -luuid -L. -pthread
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lreiserfscore
collect2: error: ld returned 1 exit status
make: *** [Makefile:440: btrfs-convert.static] Error 1
Comment 1 Attila Tóth 2017-09-26 19:11:03 UTC
Solution: compile reiserfsprogs with USE=static-libs if USE=convert & USE=static is specified for btrfs-progs. I think btrfs-progs ebuild should somehow reflect these requirements as a USE dependency. This actual issue pops up with the advent of new btrfs-convert features of -4.13.1 and hasn't been there in -4.12. BR: Dw.
Comment 2 Larry the Git Cow gentoo-dev 2017-10-09 19:04:25 UTC
The bug has been closed via the following commit(s):

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

commit fdaaded8f81ad0821ae1e53ebe9e25698cb17a3b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2017-10-09 19:04:07 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2017-10-09 19:04:17 +0000

    sys-fs/btrfs-progs: add USE=reiserfs for automagic depend on reiserfsprogs, bug #632092
    
    USE=static exposed automagic dependency on libreiserfscore.a.
    The change adds USE=reiserfs and makes dependency and configuration
    explicit.
    
    While at it tweaked live ebuild (added 'm4' directory to autoconf).
    
    Reported-by: Attila Tóth
    Closes: https://bugs.gentoo.org/632092
    Package-Manager: Portage-2.3.11, Repoman-2.3.3

 sys-fs/btrfs-progs/btrfs-progs-4.13.2.ebuild | 13 +++++++++++--
 sys-fs/btrfs-progs/btrfs-progs-9999.ebuild   | 15 ++++++++++++---
 sys-fs/btrfs-progs/metadata.xml              |  3 ++-
 3 files changed, 25 insertions(+), 6 deletions(-)
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2017-10-09 19:05:18 UTC
Good catch! I've tweaked only latest and live ebuilds.

Thank you!