LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2018, 08:41 PM   #1
spenced
Member
 
Registered: Oct 2017
Posts: 43

Rep: Reputation: Disabled
installing hfsprogs from source. PB.project?


Hi all,

I've been building and LFS distro and have gotten pretty far. I thought this question might be better suited here. I've scoured the internet to no avail for simple build instructions for hfsprogs.

I realize it was created using Apple Project Builder the precursor to Xcode but I've obtained the debian source tarball. Its all very confusing. In the top directory there is:

Makefile
Makefile
PB.project
and then various sub directories <tool>.tproj

The makefile references pb_makefiles/ but the directory does not exist. I'm assuming it is created with some sort of configure command?

when I just issue the command 'make' I get this output:

Code:
Makefile:55: pb_makefiles/aggregate.make
make: *** No rule to make target 'pb_makefiles/aggregate.make'
I'm sure the Pb.project file is the key. How to I go about configuring this build?

The debian folder contains various files and also a directory of patches I'm assuming I need to apply as well.

I'm really lost here. Thanks for any suggestions.

spencer
 
Old 07-19-2018, 10:53 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Quote:
Originally Posted by spenced View Post
The debian folder contains various files and also a directory of patches I'm assuming I need to apply as well.
Yep. From the first patch file: https://sources.debian.org/src/hfspr...-Debian.patch/
Quote:
Create short Makefiles for compiling just the necessary parts for a
Debian-based (and possibly other distributions) HFS+ filesystem
utilities.
You can apply all of the patches like this:
Code:
$ cd /path/to/hfsprogs
$ for i in /path/to/patches/*.patch; do patch -p1 < $i; done
$ make -f Makefile.lnx
HTH
 
1 members found this post helpful.
Old 07-20-2018, 12:18 AM   #3
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
sweet! thanks so much.
 
Old 07-20-2018, 10:05 PM   #4
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
Hmmm well now im getting weird build errors.

first was

Code:
In file from hfs_endian.c:35
/include/missing.h:9:10 fatal error: bsd/string.h no such file or directory
#include <bsd/string.h>
first I looked at the makefile and got rid of "-D BSD=1" in the CFLAGS line. Then i tried just commenting out the "#include <bsd/string.h> (bad idea probably) when i then got this:

Code:
In file included from Scavenger.h:31
                 from hfs_endian.c

SRuntime.h:44:10 fatal error Mactypes.h: no such file or directory
There is a big #IF include block in the SRuntime.h file that if Im reading correctly decides what to include whether its linux or bsd. If i change the #if block so it jjst reads like its linux only, i just get a massive amount of type reference errors when i try to make.

im not really a c programmer, or really a programmer at all. Im just trying to learn all this stuff by doing it the hard way. Any suggestions appreciated!

spence
 
Old 07-21-2018, 11:18 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I really don't think the apple sources will compile on Linux. Try this: https://github.com/Artoria2e5/hfsprogs
 
1 members found this post helpful.
Old 07-21-2018, 11:52 AM   #6
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
On Debian you would need libbsd-dev. For LFS I guess you need to compile the lib: https://libbsd.freedesktop.org/wiki/
 
1 members found this post helpful.
Old 07-21-2018, 12:39 PM   #7
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
thanks all! libbsd-dev was the key.

i actually had artoria package on my first try, they include the debian packages automatically, when i downloaded from the debian source repository i had to download ..orig.tar.gz and debian.tar.gz which had the patches and just moved the debian folder into the orig.tar.gz extracted directory. the artoria package just already has it in the right spot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GitHub makes open-source project licensing easier with an open-source program LXer Syndicated Linux News 0 03-07-2018 11:03 AM
LXer: This Week in Open Source News: Open Source Fridays, New Linux Foundation Project for Multi-Cloud Environments & More LXer Syndicated Linux News 0 07-01-2017 10:11 AM
hfsprogs hDUQUE Fedora 1 07-26-2014 04:56 AM
My first open-source project! MTK358 Programming 18 08-28-2010 02:56 AM
LXer: Morevna - An Open Source Anime Project Using Open Source Tools Only LXer Syndicated Linux News 0 07-22-2010 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration