Giter Site home page Giter Site logo

Comments (10)

barracuda156 avatar barracuda156 commented on May 28, 2024 1

@leo-arch Perfect, that worked!
(We need it is small case for Apple though, __ppc__.)

This will, perhaps, be generally applicable:

--- src/helpers.h.orig  2023-07-18 20:44:17.000000000 +0800
+++ src/helpers.h       2023-08-25 22:16:29.000000000 +0800
@@ -219,7 +219,7 @@
  * actually store creation times: the value of __st_birthtim is always zero.
 #elif defined(__OpenBSD__)
 # define ST_BTIME __st_birthtim */
-#elif defined(__NetBSD__) || defined(__APPLE__)
+#elif defined(__NetBSD__) || (defined(__APPLE__) && !(defined(__ppc__) || defined(__i386__)))
 # define ST_BTIME st_birthtimespec
 #elif defined(__FreeBSD__) || defined(__CYGWIN__)
 # define ST_BTIME st_birthtim

P. S. Are colors like this intended? Yellow is barely readable.
clifm

from clifm.

leo-arch avatar leo-arch commented on May 28, 2024 1

Great! Thanks for testing.

As to the colors, yes, those are the default colors (4-bit). However, the default color scheme is intended to be used with dark terminals (dark background). Try just switching your color scheme: cs light (you can also try the 256 colors version of the default color scheme: cs default-256). If you still do not find them comfortable enough, every single color is customizable. Take a look at the colors section in the wiki.

from clifm.

leo-arch avatar leo-arch commented on May 28, 2024 1

Already done @barracuda156! See c9a0a10.

from clifm.

leo-arch avatar leo-arch commented on May 28, 2024 1

Good to know. Thanks for your answer @barracuda156!

from clifm.

leo-arch avatar leo-arch commented on May 28, 2024

10.6?! That's quite old, but it doesn't matter: we really want clifm running on everything. So, let's try to fix this.

Is your machine 32-bit?

from clifm.

barracuda156 avatar barracuda156 commented on May 28, 2024

@leo-arch Thank you for responding! Yes, I build for ppc, which is only 32-bit on 10.6. (The last OS to support ppc64 is 10.5.8.)

from clifm.

leo-arch avatar leo-arch commented on May 28, 2024

Ok. The thing is that st_birthtimespec is a 64-bit extension. Try this: replace line 222 in helpers.h from this:

 #elif defined(__NetBSD__) || defined(__APPLE__)

to this:

 #elif defined(__NetBSD__) || (defined(__APPLE__) && !defined(__PPC__))

If your compiler supports the __PPC__ macro, we should be fine.

from clifm.

barracuda156 avatar barracuda156 commented on May 28, 2024

@leo-arch Thank you! Noted.

By the way, maybe you could add the patch above into the master? It may help someone who builds clifm directly (without Macports), and also frees us from a need to carry a local patch :)

from clifm.

leo-arch avatar leo-arch commented on May 28, 2024

Hey @barracuda156, what version of readline does Snow Leopard provide? The oldest version I've tried is 6.3 (2014, I think), but Snow Leopard is probably using something even older (5.2?).

from clifm.

barracuda156 avatar barracuda156 commented on May 28, 2024

@leo-arch We have the latest one, I believe. Whatever Apple had at the time does not really matter, we can always use newer versions (technically, whatever Macports offers, but usually that is either the latest or latest feasible for the OS).
However it may need to be specified in the portfile, to ensure the correct one is picked by the build.

from clifm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.