Bug 147801 - Build fails when specific bsdtar.exe version is in PATH
Summary: Build fails when specific bsdtar.exe version is in PATH
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-06 12:27 UTC by Hossein
Modified: 2022-03-31 20:40 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2022-03-06 12:27:56 UTC
Description:
When building LibreOffice using LODE, build fails when specific bsdtar.exe is in PATH that for some reason can not handle the tar.xz files

Steps to Reproduce:
1. Install Anaconda, make sure that bsdtar.exe is in the Cygwin PATH
2. Configure LibreOffice build (./autogen.sh)
3. Try building LibreOffice (make)

Actual Results:
Build error: (provided by Vansh)

[build UPK] boost_1_78_0.tar.xz
[build UPK] dragonbox-1.1.0.tar.gz
[build UPK] dtoa-20180411.tgz
[build UPK] zlib-1.2.11.tar.xz
bsdtar.exe: Error opening archive: Failed to open '/cygdrive/d/lode/ext_tar/dtoa-20180411.tgz'
bsdtar.exe: Error opening archive: Failed to open '/cygdrive/d/lode/ext_tar/zlib-1.2.11.tar.xz'
bsdtar.exe: Error opening archive: Failed to open '/cygdrive/d/lode/ext_tar/dragonbox-1.1.0.tar.gz'
bsdtar.exe: Error opening archive: Failed to open '/cygdrive/d/lode/ext_tar/boost_1_78_0.tar.xz'

LODE resides on the D:
Cygwin is in C:

autogen.input:
--with-visual-studio=2022
--enable-dbgutil
--without-java

Expected Results:
The build should pass, and the $GNUTAR utility should be a able to extract the tar.xz files.


Reproducible: Always


User Profile Reset: No



Additional Info:
$ anaconda --version
anaconda Command line client (version 1.9.0)

$ bsdtar.exe --version
bsdtar 3.4.2 - libarchive 3.4.2 zlib/1.2.11 liblzma/5.2.5 bz2lib/1.0.8 liblz4/1.9.2 libzstd/1.4.4
Comment 1 Julien Nabet 2022-03-06 12:33:04 UTC
And so it seems you're already working on fixing this with https://gerrit.libreoffice.org/c/core/+/130974
Comment 2 Commit Notification 2022-03-08 09:45:14 UTC
Hossein committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/abaac7a4c1b27d71c4e6f9cfb64900619a46f7f7

tdf#147801 Demote bsdtar in favor of tar in configure.ac

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.