Opened 9 years ago

Closed 7 months ago

Last modified 7 months ago

#6014 closed enhancement (fixed)

script to assist building BFS_FUSE in other OS's

Reported by: mmadia Owned by: nobody
Priority: normal Milestone:
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

As Haiku's source includes the BFS FUSE module, to allow access on other operating systems. It may be worthwhile to provide a helper script to checkout the related files and provide either the information or links to further information.

Assigning to myself as it'd probably be a shell script, but I've no immediate plans to work on it.

To note, this script may be helpful to other people who are willing to create pre-built packages for use with various Linux/BSD/... package managers.

Attachments (2)

configure.patch (908 bytes) - added by idefix 7 years ago.
Patch file needed by checkout_tree_and_configure.sh.
checkout_tree_and_configure.sh (6.5 KB) - added by idefix 4 years ago.
Simple shell script that will setup the tree for the building of 'bfs_fuse'.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by mmadia

Owner: changed from mmadia to nobody
Status: newassigned

Giving ownership up, as I've no immediate plans to implement this.

comment:2 Changed 8 years ago by idefix

I've created a simple shell script that will checkout the necessary files and patch configure.

After this initial set-up you can periodically build an updated bfs_fuse with:

git stash
git pull --rebase --no-tags origin HEAD
git stash pop
jam -q "<build>bfs_fuse"
Last edited 7 years ago by idefix (previous) (diff)

Changed 7 years ago by idefix

Attachment: configure.patch added

Patch file needed by checkout_tree_and_configure.sh.

comment:3 Changed 4 years ago by idefix

Three years later and a couple of things have changed. Most notably the configure script doesn't need patching any more. I've updated the shell script.

Changed 4 years ago by idefix

Simple shell script that will setup the tree for the building of 'bfs_fuse'.

comment:4 Changed 4 years ago by diver

I've tried the script on my OS X which ran fine, but then I couldn't compile bfs_fuse:

jam -q "<build>bfs_fuse"
No `BuildConfig' found in /Users/diver/Downloads/bfs_fuse/generated/build!
Run ./configure in the source tree's root directory first!

comment:5 Changed 4 years ago by idefix

Unfortunately, I only tested this script on Linux (Ubuntu x86, x86_64 & arm). I don't know if it's even possible to build bfs_fuse on OS X.

comment:6 Changed 7 months ago by waddlesplash

Resolution: fixed
Status: assignedclosed

A full tree checkout is needed (but a shallow clone is now possible and much smaller than it used to be). Just run ./configure --host-only to configure the build without cross-compilers, and then jam -q "<build>bfs_fuse".

It seems this is documented on the website, anyway: https://www.haiku-os.org/guides/daily-tasks/access_bfs_with_fuse/

comment:7 Changed 7 months ago by diver

This is what i'm getting now on macOS 10.14:

./configure --host-only

stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
./configure: line 556: [: -lt: unary operator expected
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
You need a case-sensitive file-system to build Haiku.
You can create a case-sensitive disk image using Disk Utility.
Note: See TracTickets for help on using tickets.