Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Alright, please tell me what I need to do to get Aquafox on MacPorts. As mentioned before, I looked into the portfile, but I'm not entirely sure what changes are necessary for Aquafox aside from updating the name and removing the nostrip mozconfig options.

Regarding 10.6, would there be much of a difference? I noticed that the TenFourFox portfile for 10.6 is identical to the standard one, so I would assume that MacPorts for 10.6 will build Aquafox just fine.

Assuming it still needs an archaic gcc and 10.4 SDK, perhaps just
Code:
. . .
subport                 aquafox {}
. . .
} elseif {${subport} eq "aquafox"} {
    description         . . .
    long_description    ${description}

    github.setup        BlackBirdLC Aquafox 75e7382404a57eacd4d1d6e37af848d135a09e0e
    version             20240825
. . .
}
(Or whichever you prefer.)

Please feel free to add yourself as a co-maintainer.

Unless you are personally interested in using this on 10.6, no need to worry about it at all. As long as 10.5 is tested, we are good. Whatever may be needed for 10.6 ppc specifically I can handle on my end.

One thing which IMO is very desirable is getting rid of requiring a specific old gcc, since it pulls in a lot of otherwise useless dependencies, which take many hours to compile. This is not required for adding aquafox port, this is just a thing to consider.

P. S. `nostrip` was used on 10.6 because stripping failed for me. It is likely fixable, but I never bothered to investigate why specifically it fails.
 
The smartass in me wants to reply "strange answer", but I won't do that! 😎

Strange question

It WAS a serious question. Perhaps I am missing the point, but I have always thought of MacPorts as a way of porting non Mac-native Linux apps into the Mac environment, making the Mac experience even better. Since AquaFox is already both open source AND Mac-native, I completely miss the benefit of moving it to MacPorts.

What am I missing?
 
The smartass in me wants to reply "strange answer", but I won't do that! 😎


It WAS a serious question. Perhaps I am missing the point, but I have always thought of MacPorts as a way of porting non Mac-native Linux apps into the Mac environment, making the Mac experience even better. Since AquaFox is already both open source AND Mac-native, I completely miss the benefit of moving it to MacPorts.

What am I missing?

1. A matter of optimization (build against newer dependencies, with native opts etc.).
2. A matter of security.
3. Save some disk space, after all (avoiding duplicate libs).
4. Tweak installation to one’s needs.
5. For development purposes.
6. Build from source because you can ;)
 
  • Like
Reactions: sparty411
Hey everyone! Today marks one week since Aquafox 1.0.0 was released on the 25th of August.

I want to extend a huge thank you to everyone who took the beta version for a spin. With over 150 downloads and just a single bug report, I would call this a grand success. A special shoutout to @pipetogrep for adding Aquafox to The Unofficial TenFourFox Development Toolkit.

I’ve taken the lessons learned from the previous release to heart, and this time I’ve personally tested Aquafox on all four supported platforms before uploading the release.

Not much has changed since the last release, so this version is mostly a formality.

Thank you for your support, and I’ll see you all again at the next release!

https://github.com/BlackBirdLC/Aquafox/releases/expanded_assets/v1.0.0
 
It really IS terrific. I am now able to do pretty much everything I want to on the web using AquaFox running on Sorbet Leopard, even hugely demanding banking web sites. It is not as fast as it would be on the latest Mac screamer, but is in infinitely more cool!
 
It really IS terrific. I am now able to do pretty much everything I want to on the web using AquaFox running on Sorbet Leopard, even hugely demanding banking web sites. It is not as fast as it would be on the latest Mac screamer, but is in infinitely more cool!
Seeing that others have logged in to their banks, I thought I'd try logging in to my Readly account. Well, it was slow but, DID login. Unfortunately, it would not load a magazine to read. Maybe a future update might! This is very encouraging though! It works overall very well for most websites!
 
  • Like
Reactions: thewireless
Assuming it still needs an archaic gcc and 10.4 SDK, perhaps just
Code:
. . .
subport                 aquafox {}
. . .
} elseif {${subport} eq "aquafox"} {
    description         . . .
    long_description    ${description}

    github.setup        BlackBirdLC Aquafox 75e7382404a57eacd4d1d6e37af848d135a09e0e
    version             20240825
. . .
}
(Or whichever you prefer.)

Please feel free to add yourself as a co-maintainer.

Unless you are personally interested in using this on 10.6, no need to worry about it at all. As long as 10.5 is tested, we are good. Whatever may be needed for 10.6 ppc specifically I can handle on my end.

One thing which IMO is very desirable is getting rid of requiring a specific old gcc, since it pulls in a lot of otherwise useless dependencies, which take many hours to compile. This is not required for adding aquafox port, this is just a thing to consider.

P. S. `nostrip` was used on 10.6 because stripping failed for me. It is likely fixable, but I never bothered to investigate why specifically it fails.
I finally managed to find some time (I still have a huge backlog) and added Aquafox to the portfile. I have two questions remaining: TenFourFox and TenFourFox-devel have checksums listed, so I assume Aquafox will need those as well. What exactly are they calculated from?

The other question I have concerns a few lines at the bottom. I am still somewhat unfamiliar with how MacPorts uses portfiles, but it seems to me that the compiled application will be named TenFourFox.app, which shouldn't happen for Aquafox. One should be able to install Aquafox alongside TenFourFox.
 
I finally managed to find some time (I still have a huge backlog) and added Aquafox to the portfile. I have two questions remaining: TenFourFox and TenFourFox-devel have checksums listed, so I assume Aquafox will need those as well. What exactly are they calculated from?

The other question I have concerns a few lines at the bottom. I am still somewhat unfamiliar with how MacPorts uses portfiles, but it seems to me that the compiled application will be named TenFourFox.app, which shouldn't happen for Aquafox. One should be able to install Aquafox alongside TenFourFox.

1. For checksums, you can leave that empty (or have random checksums) and just run sudo port -v extract. It will fail to extract, of course, but will return correct checksums. Just copy-paste that to the portfile.

2. For destroot phase: it can be done in a few ways. If you want to replicate the current implementation, but simply with a different app name, you could do something like:
Code:
if {${subport} eq "aquafox"} {
    set appname AquaFox
} else {
    set appname TenFourFox
}
. . .
pre-destroot {
    system -W ${worksrcpath} "./104fx_copy.sh ${appname}.app"
}

destroot {
    move ${worksrcpath}/${appname}.app ${destroot}${applications_dir}
}

If the code for destroot should differ, then rather wrap the whole block into `${subport} eq` condition.
Does this fit the need?
 
  • Like
Reactions: thewireless
Hey everyone! Today marks one week since Aquafox 1.0.0 was released on the 25th of August.
I just wanted to say a huge thank you! to thewireless, pipetogrep, and everyone else for all your hard work making Aquafox work and making it easy for us mere mortals to build on our systems! I successfully built Aquafox on my '05 2.3 DP G5 under both SorbetLeopard and Tiger with Quartz acceleration enabled. Last night, I updated my builds to 1.0.0 and rebuilt them. Thank you for the fine browser. It is now my main default web browser under both versions of OS X.
 
Thank you. For some reason, I assumed that portfiles followed a strict template, like a form. However, it appears that they can contain programming logic just like any other script.

I could try building from your portfile, if that is helpful. (You can also open the PR directly to MacPorts, of course.)
 
I could try building from your portfile, if that is helpful. (You can also open the PR directly to MacPorts, of course.)
After setting up MacPorts and all the required dependencies on one of my Power Macs, I decided to build TenFourFox just to see if everything worked. Unfortunately, it did not. Several hours into the build process, it failed. I did not investigate further; instead, I deemed it a success since MacPorts, with one exception, appeared fully functional.

I then decided to set up a local portfile repository to test the Aquafox portfile. After all, as long as it reaches the build process, it should be fine. However, it is not fine. No matter what I do—whether attempting to extract or just install TenFourFox or Aquafox—it fails when trying to download the .diff file, resulting in a 404 error after trying several mirrors.

There’s probably just something wrong with my configuration, but I don’t have any experience debugging MacPorts. Can you point me in the right direction?

P.S. I had to add an allowed extension in order to upload it to the forum.
 

Attachments

  • Portfile.txt
    5.2 KB · Views: 38
  • Like
Reactions: barracuda156
After setting up MacPorts and all the required dependencies on one of my Power Macs, I decided to build TenFourFox just to see if everything worked. Unfortunately, it did not. Several hours into the build process, it failed. I did not investigate further; instead, I deemed it a success since MacPorts, with one exception, appeared fully functional.

I then decided to set up a local portfile repository to test the Aquafox portfile. After all, as long as it reaches the build process, it should be fine. However, it is not fine. No matter what I do—whether attempting to extract or just install TenFourFox or Aquafox—it fails when trying to download the .diff file, resulting in a 404 error after trying several mirrors.

There’s probably just something wrong with my configuration, but I don’t have any experience debugging MacPorts. Can you point me in the right direction?

P.S. I had to add an allowed extension in order to upload it to the forum.

Let me check this, will update soon.
 
After setting up MacPorts and all the required dependencies on one of my Power Macs, I decided to build TenFourFox just to see if everything worked. Unfortunately, it did not. Several hours into the build process, it failed. I did not investigate further; instead, I deemed it a success since MacPorts, with one exception, appeared fully functional.

I then decided to set up a local portfile repository to test the Aquafox portfile. After all, as long as it reaches the build process, it should be fine. However, it is not fine. No matter what I do—whether attempting to extract or just install TenFourFox or Aquafox—it fails when trying to download the .diff file, resulting in a 404 error after trying several mirrors.

There’s probably just something wrong with my configuration, but I don’t have any experience debugging MacPorts. Can you point me in the right direction?

P.S. I had to add an allowed extension in order to upload it to the forum.

Does it even parse for you, to begin with? What does `port info aquafox` say?

(It does not parse for me, I will try to figure out how to do that correctly.)
 
Does it even parse for you, to begin with? What does `port info aquafox` say?

(It does not parse for me, I will try to figure out how to do that correctly.)
Code:
wirelesss-power-mac-g5:~ wireless$ port info aquafox
aquafox @1.0.0 (www)
Variants:             [+]G4, G5

Description:          TenFourFox fork with extra optimizations.
Homepage:             https://github.com/BlackBirdLC/Aquafox

Build Dependencies:   autoconf213, cctools, freetype, gmake, ld64, libidl,
                      python27, strip7, gcc48
Library Dependencies: libgcc, libgcc6
Platforms:            darwin
License:              GPL-2
Maintainers:          Email: vital.had@gmail.com, GitHub: barracuda156
                      Email: thewireless@netcourrier.com, GitHub: BlackBirdLC
                      Policy: openmaintainer
 
I do not get any problems with existing tenfourfox port in MacPorts in terms of parsing and patching (this uses unmodified portfile):
Code:
36-202% sudo port -v patch tenfourfox
Warning: configured user/group macports does not exist, will build as root
--->  Fetching distfiles for tenfourfox
--->  tenfourfox-FPR32SPR5.tar.gz does not exist in /opt/local/var/macports/distfiles/tenfourfox
--->  Attempting to fetch tenfourfox-FPR32SPR5.tar.gz from https://codeload.github.com/classilla/tenfourfox/legacy.tar.gz/FPR32SPR5?dummy=
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  310M    0  310M    0     0   9.8M      0 --:--:--  0:00:31 --:--:-- 10.8M
--->  Verifying checksums for tenfourfox
--->  Checksumming tenfourfox-FPR32SPR5.tar.gz
--->  Extracting tenfourfox
--->  Extracting tenfourfox-FPR32SPR5.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_tenfourfox/tenfourfox/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/tenfourfox/tenfourfox-FPR32SPR5.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Applying patches to tenfourfox
--->  Applying patch-ots-stdlog-fix.diff
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_tenfourfox/tenfourfox/work/tenfourfox-FPR32SPR5" && /usr/bin/patch -t -N -p1 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/www/tenfourfox/files/patch-ots-stdlog-fix.diff'
patching file gfx/ots/src/silf.cc
patching file gfx/ots/src/sill.cc
--->  Patching .mozconfig: s|-j2|-j6|
--->  Patching .mozconfig: s|/opt/local|/opt/local|g
Warning: reinplace s|/opt/local|/opt/local|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_tenfourfox/tenfourfox/work/tenfourfox-FPR32SPR5/.mozconfig
--->  Patching Makefile.in: s|/opt/local|/opt/local|g
Warning: reinplace s|/opt/local|/opt/local|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_tenfourfox/tenfourfox/work/tenfourfox-FPR32SPR5/media/libvpx/Makefile.in
--->  Patching Makefile.in: s|/opt/local|/opt/local|g
Warning: reinplace s|/opt/local|/opt/local|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_tenfourfox/tenfourfox/work/tenfourfox-FPR32SPR5/config/external/nss/Makefile.in
--->  Patching 104fx_copy.sh: s|/opt/local|/opt/local|g
Warning: reinplace s|/opt/local|/opt/local|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_tenfourfox/tenfourfox/work/tenfourfox-FPR32SPR5/104fx_copy.sh
--->  Patching OptimizedFor.h: s|Debugging|macOS 10.6 on G4|g

However tenfourfox-devel got checksum mismatch: apparently there was a stealth update.

I will fix that in MacPorts now.
Code:
36-202% sudo port clean tenfourfox-devel
Password:
Warning: configured user/group macports does not exist, will build as root
--->  Cleaning tenfourfox-devel
36-202% sudo port -v patch tenfourfox-devel
Warning: configured user/group macports does not exist, will build as root
--->  Fetching distfiles for tenfourfox-devel
--->  tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz does not exist in /opt/local/var/macports/distfiles/tenfourfox
--->  Attempting to fetch tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz from https://codeload.github.com/classilla/tenfourfox/legacy.tar.gz/656875dfebe724c31896e3073780638e2c213f81?dummy=
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  311M    0  311M    0     0   296T      0 --:--:-- --:--:-- --:--:-- 10.5M
--->  Verifying checksums for tenfourfox-devel
--->  Checksumming tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz
Error: Checksum (rmd160) mismatch for tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz
Portfile checksum: tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz rmd160 82d5229d46ab25ec9850754d97fd4f7ccad8c5e3
Distfile checksum: tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz rmd160 bf781113db14bd674b5ee7147adef398a54a74e5
Error: Checksum (sha256) mismatch for tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz
Portfile checksum: tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz sha256 a523c6a9985f1df83c167839b36f8c3ed6a67e133baf42859cf0d826e3d17bda
Distfile checksum: tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz sha256 c3fdba6b727ece69ccdfd586f4c899c405a343982857819e81a2274f6f1c94bf
Error: Checksum (size) mismatch for tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz
Portfile checksum: tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz size 326149990
Distfile checksum: tenfourfox-656875dfebe724c31896e3073780638e2c213f81.tar.gz size 326149844
The correct checksum line may be:
checksums           rmd160  bf781113db14bd674b5ee7147adef398a54a74e5 \
                    sha256  c3fdba6b727ece69ccdfd586f4c899c405a343982857819e81a2274f6f1c94bf \
                    size    326149844
Error: Failed to checksum tenfourfox-devel: Unable to verify file checksums
 
Code:
wirelesss-power-mac-g5:~ wireless$ port info aquafox
aquafox @1.0.0 (www)
Variants:             [+]G4, G5

Description:          TenFourFox fork with extra optimizations.
Homepage:             https://github.com/BlackBirdLC/Aquafox

Build Dependencies:   autoconf213, cctools, freetype, gmake, ld64, libidl,
                      python27, strip7, gcc48
Library Dependencies: libgcc, libgcc6
Platforms:            darwin
License:              GPL-2
Maintainers:          Email: vital.had@gmail.com, GitHub: barracuda156
                      Email: thewireless@netcourrier.com, GitHub: BlackBirdLC
                      Policy: openmaintainer

Ah, that is a silly macOS behavior. When you remove .txt via Finder it just hides it, but does not actually remove. So MacPorts did not see the portfile at all.
 
Code:
wirelesss-power-mac-g5:~ wireless$ port info aquafox
aquafox @1.0.0 (www)
Variants:             [+]G4, G5

Description:          TenFourFox fork with extra optimizations.
Homepage:             https://github.com/BlackBirdLC/Aquafox

Build Dependencies:   autoconf213, cctools, freetype, gmake, ld64, libidl,
                      python27, strip7, gcc48
Library Dependencies: libgcc, libgcc6
Platforms:            darwin
License:              GPL-2
Maintainers:          Email: vital.had@gmail.com, GitHub: barracuda156
                      Email: thewireless@netcourrier.com, GitHub: BlackBirdLC
                      Policy: openmaintainer

Ok, so it fails on
Code:
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/tenfourfox/Aquafox-75e7382404a57eacd4d1d6e37af848d135a09e0e.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
Error: Failed to extract aquafox: error renaming "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-75e7382404a57eacd4d1d6e37af848d135a09e0e/G4-7450-nostrip.mozcfg": no such file or directory
Error: See /opt/local/var/macports/logs/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/main.log for details.

Because `G4-7450-nostrip.mozcfg` does not exist, but the portfile expects it to.

P. S. What exactly failed with tenfourfox, could you say? Or share the log.
 
Ok, so it fails on
Code:
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/tenfourfox/Aquafox-75e7382404a57eacd4d1d6e37af848d135a09e0e.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
Error: Failed to extract aquafox: error renaming "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-75e7382404a57eacd4d1d6e37af848d135a09e0e/G4-7450-nostrip.mozcfg": no such file or directory
Error: See /opt/local/var/macports/logs/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/main.log for details.

Because `G4-7450-nostrip.mozcfg` does not exist, but the portfile expects it to.

P. S. What exactly failed with tenfourfox, could you say? Or share the log.
I will try building tenfourfox-devel again with the local repository disabled and will upload the fresh log once that is done. As for Aquafox, I could add the nostrip versions of mozconfig to the GitHub repository for compatibility with MacPorts. I believe that would be easier than adding extra conditions to the portfile.
On another note, does the compiler optimize for G5? I ask because I've seen 'G4' mentioned quite a few times in the terminal.
 
I will try building tenfourfox-devel again with the local repository disabled and will upload the fresh log once that is done. As for Aquafox, I could add the nostrip versions of mozconfig to the GitHub repository for compatibility with MacPorts. I believe that would be easier than adding extra conditions to the portfile.
On another note, does the compiler optimize for G5? I ask because I've seen 'G4' mentioned quite a few times in the terminal.

It does, but you need to install it like `sudo port -v install tenfourfox-devel +G5`.
The problem is that the archaic gcc 4.8 cannot handle -mtune=native, but only specific CPUs. And I know of no way to detect G4 vs G5 from the portfile.

Default was chosen to be G4, because that is presumably the majority of machines. On G5 is it better to build with +G5.
 
See the attached log.

I have to admit I do not even see from the log what exactly goes wrong. Perhaps need some sleep LOL

But I see you build for G4, it is on G5? `-mcpu` is not a safe flag, it may break compatibility.

I don’t think I ever tried building this for G4, to be honest. Build for G5 certainly worked on 10.6 (strip could fail depending on some obscure factors, so I just disabled that, everything else worked reproducibly: I have built this a number of times on two machines). I think I built in once on 10.5.8 too, for G5.

Assuming no exotic toolchain components have been introduced, I would suspect -mcpu breaking things.
 
Hey everyone! Today marks one week since Aquafox 1.0.0 was released on the 25th of August.

I want to extend a huge thank you to everyone who took the beta version for a spin. With over 150 downloads and just a single bug report, I would call this a grand success. A special shoutout to @pipetogrep for adding Aquafox to The Unofficial TenFourFox Development Toolkit.

I’ve taken the lessons learned from the previous release to heart, and this time I’ve personally tested Aquafox on all four supported platforms before uploading the release.

Not much has changed since the last release, so this version is mostly a formality.

Thank you for your support, and I’ll see you all again at the next release!

https://github.com/BlackBirdLC/Aquafox/releases/expanded_assets/v1.0.0
Hi,

I installed AquaFox on 2 PowerPC at the weekend.
On my 2005 IBook G4 1.33 12“ and the 2005 PowerBook G4 1.67 17” (DLSD/HR - Al).

The browser runs perfectly on both under Sorbet Leopard.

Thank you
 
  • Like
Reactions: thewireless
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.