Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
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.
This was on a Power Mac G5 with a fresh MacPorts installation. The command `sudo port -v install tenfourfox-devel` will build for G4 by default, and it was the command issued that resulted in the build failure.

I'm not too interested in building TenFourFox with MacPorts myself, but I have added nostrip versions of the mozconfig to the GitHub repository to retain compatibility with the way the TenFourFox portfile is set up. I hope you can test the portfile, although the checksums will probably be invalid now.

As for automatic CPU detection, is it not possible to do something along the lines of this?
Code:
if {${arch} eq "ppc970"} {
    # something
}
 

mortlocli

macrumors 6502a
Feb 23, 2020
729
665
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!
I've only just been catching up with this fantastic news re aquafox..but a question regarding online reading - as a obsolete iPad owner I've recently been using Firefox with reader mode turned on. It makes a big difference by cutting out everything except the text..so I'm very curious to know if aquafox has this option ?
 

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
This was on a Power Mac G5 with a fresh MacPorts installation. The command `sudo port -v install tenfourfox-devel` will build for G4 by default, and it was the command issued that resulted in the build failure.

I'm not too interested in building TenFourFox with MacPorts myself, but I have added nostrip versions of the mozconfig to the GitHub repository to retain compatibility with the way the TenFourFox portfile is set up. I hope you can test the portfile, although the checksums will probably be invalid now.

As for automatic CPU detection, is it not possible to do something along the lines of this?
Code:
if {${arch} eq "ppc970"} {
    # something
}

Got it, no issues, you do not have to test TFF builds, of course. Hopefully someone with a reasonably fast G4 machine can try that some day, since I do not have such.
(If anyone bumps into this topic: on a G5 please build this as `sudo port -v install tenfourfox +G5`.)

We cannot condition on ppc970, because it is not a valid value for arch in MacPorts. If we add it to valid archs, the question is how to detect it: that does not solve the problem, it just moves it elsewhere. It also introduces a new problem, since we cannot use `-arch ppc970` (AFAIK), so handling of flags should be changed.
 

Nils Zaayenga

macrumors member
Jan 27, 2023
41
92
Got it, no issues, you do not have to test TFF builds, of course. Hopefully someone with a reasonably fast G4 machine can try that some day, since I do not have such.
(If anyone bumps into this topic: on a G5 please build this as `sudo port -v install tenfourfox +G5`.)

We cannot condition on ppc970, because it is not a valid value for arch in MacPorts. If we add it to valid archs, the question is how to detect it: that does not solve the problem, it just moves it elsewhere. It also introduces a new problem, since we cannot use `-arch ppc970` (AFAIK), so handling of flags should be changed.
Hello,

I have done this.

Please look for post #75 from me in this chat.

I have tested a G4 1.33 Ghz and a G4 1.67 Ghz with it.

AquaFox runs perfectly with it.
 

headlessmike

macrumors 65816
May 16, 2017
1,424
2,814
Got it, no issues, you do not have to test TFF builds, of course. Hopefully someone with a reasonably fast G4 machine can try that some day, since I do not have such.
(If anyone bumps into this topic: on a G5 please build this as `sudo port -v install tenfourfox +G5`.)

We cannot condition on ppc970, because it is not a valid value for arch in MacPorts. If we add it to valid archs, the question is how to detect it: that does not solve the problem, it just moves it elsewhere. It also introduces a new problem, since we cannot use `-arch ppc970` (AFAIK), so handling of flags should be changed.
What about ppc64? It should be valid. The G5 was the only 64-bit PowerPC Mac.
 

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
What about ppc64? It should be valid. The G5 was the only 64-bit PowerPC Mac.

ppc64 is, of course, a valid arch. Problem is that a) TFF does not build for ppc64 and that was never supported by its developer; b) MacPorts itself will not work for ppc64 without some manual tweaks. The second is a difficulty, the first is a stopper.
 

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
@barracuda156 I've fixed the checksums for Aquafox and updated the TFF entry to the latest version (20240505). It should be fine, but I haven't been able to test it myself. Shall I open a pull request after I've fixed my MacPorts installation and verified the portfile?
 

Attachments

  • Portfile.txt
    5.2 KB · Views: 19
  • Like
Reactions: mortlocli

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
@barracuda156 I've fixed the checksums for Aquafox and updated the TFF entry to the latest version (20240505). It should be fine, but I haven't been able to test it myself. Shall I open a pull request after I've fixed my MacPorts installation and verified the portfile?

Great!
If you have tested Aquafox build from your portfile, it is good for the PR. (You do not have to test anything for TFF.)
 
  • Like
Reactions: mortlocli

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
I've only just been catching up with this fantastic news re aquafox..but a question regarding online reading - as a obsolete iPad owner I've recently been using Firefox with reader mode turned on. It makes a big difference by cutting out everything except the text..so I'm very curious to know if aquafox has this option ?
The reader view functionality is available in Aquafox. The icon will appear on the right side of the address bar.
Great!
If you have tested Aquafox build from your portfile, it is good for the PR. (You do not have to test anything for TFF.)
After my misfortunes with MacPorts on 10.5 and 10.4 on one of my Power Macs, I performed a fresh install of 10.5 and MacPorts on another machine, but the troubles continue. The dependency libgcc6 fails to compile. I am following the instructions, but perhaps I missed a memo somewhere because it’s not working for me.
 
  • Like
Reactions: mortlocli

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
The reader view functionality is available in Aquafox. The icon will appear on the right side of the address bar.

After my misfortunes with MacPorts on 10.5 and 10.4 on one of my Power Macs, I performed a fresh install of 10.5 and MacPorts on another machine, but the troubles continue. The dependency libgcc6 fails to compile. I am following the instructions, but perhaps I missed a memo somewhere because it’s not working for me.

Could you please share the log?
(Having it broken means that all dependencies are broken, and there are more of them.)

P. S. Tiger is kinda broken, AFAIK, don’t bother with it.
 

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
Could you please share the log?
(Having it broken means that all dependencies are broken, and there are more of them.)

P. S. Tiger is kinda broken, AFAIK, don’t bother with it.
It seems like I spoke too soon. After numerous retries, it appears all dependencies have compiled. This process spanned several days and nights. Building TenFourFox still failed, and after adding the local repository, Aquafox didn't even get to the building stage as it fails to fetch patch-ots-stdlog-fix.diff. It appears I'm in exactly the same spot as described in post #64. I am still somewhat new to MacPorts, and it seems that simply following the instructions won't suffice. What am I missing?

PS: I have attached two logs: the TenFourFox log, which was generated without a local repository enabled, and the Aquafox log, which was generated with the local repository enabled.
 

Attachments

  • tenfourfox.log.txt
    4.6 MB · Views: 13
  • aquafox.log.txt
    117.7 KB · Views: 13

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
It seems like I spoke too soon. After numerous retries, it appears all dependencies have compiled. This process spanned several days and nights. Building TenFourFox still failed, and after adding the local repository, Aquafox didn't even get to the building stage as it fails to fetch patch-ots-stdlog-fix.diff. It appears I'm in exactly the same spot as described in post #64. I am still somewhat new to MacPorts, and it seems that simply following the instructions won't suffice. What am I missing?

PS: I have attached two logs: the TenFourFox log, which was generated without a local repository enabled, and the Aquafox log, which was generated with the local repository enabled.

Thank you, let me look into this.
 

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
It seems like I spoke too soon. After numerous retries, it appears all dependencies have compiled. This process spanned several days and nights. Building TenFourFox still failed, and after adding the local repository, Aquafox didn't even get to the building stage as it fails to fetch patch-ots-stdlog-fix.diff. It appears I'm in exactly the same spot as described in post #64. I am still somewhat new to MacPorts, and it seems that simply following the instructions won't suffice. What am I missing?

PS: I have attached two logs: the TenFourFox log, which was generated without a local repository enabled, and the Aquafox log, which was generated with the local repository enabled.

Sorry for a silly question, but did you actually copy files folder into your new overlay portfile?
The patch certainly exists in MacPorts master: https://github.com/macports/macports-ports/tree/master/www/tenfourfox/files
But if you did not put it into ${your_local_ports}/www/tenfourfox/files then it won't be found, and it will not be downloaded at port fetch stage, since it is not a part of source files.

I have no issues configuring aquafox, when I just replace existing portfile with yours (but keeping files dir):
Code:
36-242% sudo port -v -n configure aquafox +G5
Warning: configured user/group macports does not exist, will build as root
Portfile for aquafox changed since last build; discarding previous state.
--->  Computing dependencies for aquafox.
--->  Fetching distfiles for aquafox
--->  Aquafox-0785667d630acf269af554f538c19da181e5253f.tar.gz does not exist in /opt/local/var/macports/distfiles/tenfourfox
--->  Attempting to fetch Aquafox-0785667d630acf269af554f538c19da181e5253f.tar.gz from https://codeload.github.com/BlackBirdLC/Aquafox/legacy.tar.gz/0785667d630acf269af554f538c19da181e5253f?dummy=
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  310M    0  310M    0     0  8695k      0 --:--:--  0:00:36 --:--:-- 8775k
--->  Verifying checksums for aquafox
--->  Checksumming Aquafox-0785667d630acf269af554f538c19da181e5253f.tar.gz
--->  Extracting aquafox
--->  Extracting Aquafox-0785667d630acf269af554f538c19da181e5253f.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/tenfourfox/Aquafox-0785667d630acf269af554f538c19da181e5253f.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Applying patches to aquafox
--->  Applying patch-ots-stdlog-fix.diff
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f" && /usr/bin/patch -t -N -p1 < '/opt/PPCSnowLeopardPorts/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_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f/.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_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f/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_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f/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_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f/104fx_copy.sh
--->  Patching OptimizedFor.h: s|Debugging|macOS 10.6 on G5|g
Warning: reinplace s|Debugging|macOS 10.6 on G5|g didn't change anything in /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f/netwerk/protocol/http/OptimizedFor.h
--->  Configuring aquafox
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_www_tenfourfox/aquafox/work/Aquafox-0785667d630acf269af554f538c19da181e5253f" && autoconf213 --verbose 
Autoconf version 2.13
 

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
Anyway, I have put the build to run on 10.6 now, let us see how it goes. Will update on it once it either succeeds or fails.
 

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
Worked fine with no issues. Looks like it works :)

aquafox.png
 

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
Sorry for a silly question, but did you actually copy files folder into your new overlay portfile?
That's not a silly question at all. I did not do that. I've never created a port or subport for MacPorts, so I didn't think I needed an extra file in the ports directory. This wasn't mentioned in the documentation I read, and since MacPorts was clearly attempting to reach some servers, I figured the problem lay elsewhere.

After copying the file into the correct location, it finally seemed like it was going to work. However, compilation failed again after some time. I don't really have the time to investigate further. I should add that when using @pipetogrep's build_tenfourfox script (edited to point to /opt/local rather than /opt/macports-tff), Aquafox builds without any issues, indicating that MacPorts installed all dependencies correctly. I don't know why building initiated with port fails.

Though I am happy to see it built and run on 10.6, I guess I should add that somewhere in the description on GitHub.

PS: I have added logs from two instances of the build failure if you would like to investigate further.
 

Attachments

  • main-2024-09-22.log.txt
    3.4 MB · Views: 12
  • main-2024-09-23.log.txt
    760.6 KB · Views: 13
Last edited:
  • Like
Reactions: barracuda156

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
That's not a silly question at all. I did not do that. I've never created a port or subport for MacPorts, so I didn't think I needed an extra file in the ports directory. This wasn't mentioned in the documentation I read, and since MacPorts was clearly attempting to reach some servers, I figured the problem lay elsewhere.

After copying the file into the correct location, it finally seemed like it was going to work. However, compilation failed again after some time. I don't really have the time to investigate further. I should add that when using @piptogrep's build_tenfourfox script (edited to point to /opt/local rather than /opt/macports-tff), Aquafox builds without any issues, indicating that MacPorts installed all dependencies correctly. I don't know why building initiated with port fails.

Though I am happy to see it built and run on 10.6, I guess I should add that somewhere in the description on GitHub.

PS: I have added logs from two instances of the build failure if you would like to investigate further.

Unfortunately, I cannot do anything on 10.5 now. From one of your logs, this looks like an assembler error:
Code:
{standard input}:unknown:Undefined local symbol LL[T866
I have no idea why two builds will fail at different spots.

I think it is still worth adding Aquafox subport as it is, since the error may be something local, and it does work normally on my setup. Would you mind if I add you as a co-maintainer?
 
  • Like
Reactions: thewireless

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
I think it is still worth adding Aquafox subport as it is, since the error may be something local, and it does work normally on my setup. Would you mind if I add you as a co-maintainer?
Not at all. I was planning to create the PR myself, but if you would like to, please feel free to go ahead.
 

barracuda156

macrumors 68020
Sep 3, 2021
2,295
1,514
Not at all. I was planning to create the PR myself, but if you would like to, please feel free to go ahead.

I am running the build for tenfourfox-devel now (from your update), just to make sure it builds fine as before. (I didn’t bother to update it since the only change since 2023 was minor and apparently Linux-related, but anyway, now it is a good time to update it nevertheless together with adding aquafox.)

UPD. Update went normally, all good.
 
Last edited:
  • Like
Reactions: thewireless

smnbldwn

macrumors member
Feb 17, 2016
89
34
This is excellent! I tried to compile TFF using Macports a while back and it failed to compile after a day and a half of compiling on my PowerBook G4! Much easier to download a package so thank you! Is it possible to install Grease Monkey on this so I can use ViewTube?
 
  • Like
Reactions: thewireless

thewireless

macrumors member
Original poster
Jul 27, 2024
57
76
the internet
This is excellent! I tried to compile TFF using Macports a while back and it failed to compile after a day and a half of compiling on my PowerBook G4! Much easier to download a package so thank you! Is it possible to install Grease Monkey on this so I can use ViewTube?
Greasemonkey 3.11 should work fine (for example, the file attached in the userscripts thread). What script do you use for ViewTube? The website seems to be broken.
 

Attachments

  • viewtube.png
    viewtube.png
    94.2 KB · Views: 27
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.