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
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.
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(-)
Good catch! I've tweaked only latest and live ebuilds. Thank you!