Giter VIP home page Giter VIP logo

Comments (8)

danfe avatar danfe commented on July 20, 2024 1

Though I couldn't use the --author function

I've never used it on GitHub myself as well, but you might want to find this guide and this one with more elaborate animation helpful.

from clifm.

leo-arch avatar leo-arch commented on July 20, 2024

That's great news! Thanks @danfe! As to the patch, consider it done. Just give me a few days.

from clifm.

danfe avatar danfe commented on July 20, 2024

As to the patch, consider it done. Just give me a few days.

Take your time, there's no rush. You'd most likely want to adjust the patch, as I've only tested in on FreeBSD and wanted to have minimal diff, e.g. the int j variable would be unused in Linux case, and you'd probably want to insert a blank line before if (!self || sysctl(mib, 4, self, &len, NULL, 0) == -1) { and adjust the comment Update filesystem counter ... -> Update mountpoint counter ....

from clifm.

leo-arch avatar leo-arch commented on July 20, 2024

Are you sure you don't want to submit this patch yourself via a PR so that you appear as a contributor to the project? I think that would be fair.

Btw, the patch works ok.

Have you had some issue with the makefile? I modified a few things and now it complains about libintl.h not being found.

UPDATE: The problem was CFLAGS. It seems that FreeBSD has some predefined value for this variable (-O2 -pipe), so that setting it in the makefile using ?= won't work. Should I use += in this case instead?

from clifm.

danfe avatar danfe commented on July 20, 2024

Are you sure you don't want to submit this patch yourself via a PR so that you appear as a contributor to the project?

I'm not very comfortable with pull requests, and I'm usually not hunting for extra attribution either, just for better code, but I reckon git commit has this --author switch which should DTRT, no?

Should I use += in this case instead?

In the FreeBSD port, I patch the src/Makefile to amend the CFLAGS with += rather than set it, not just because our framework provides default value for it which ports should respect, but also because it's a common build environment variable which better not be overwritten unless there's a strong reason to do so; e.g. -march=native is typically what should IMHO be left to user's discretion.

from clifm.

danfe avatar danfe commented on July 20, 2024

Ah, forgot to comment about headers not being found. In FreeBSD, third-party software bits are installed under /usr/local prefix, so that's why we have this USES+=localbase thing which adds -isystem /usr/local/include to CFLAGS (and -L/usr/local/lib to LDFLAGS). Another reason to respect, i.e. not trying to override them. ;-)

from clifm.

leo-arch avatar leo-arch commented on July 20, 2024

Great. I'll try the --author option then. Good to know about how FreeBSD handles these make flags. Thanks.

from clifm.

leo-arch avatar leo-arch commented on July 20, 2024

Patch applied and submitted. Though I couldn't use the --author function, I'll mention you in the changelog. Thanks again @danfe!

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.