Coder Social home page Coder Social logo

Comments (7)

vinifmor avatar vinifmor commented on May 17, 2024 2

@CJ1169, sorry for the late response and thank you for your help. I will change the behavior this week and release 0.7.3 with it.

from bauh.

CJ1169 avatar CJ1169 commented on May 17, 2024 1

Good to hear! Lovely work

from bauh.

vinifmor avatar vinifmor commented on May 17, 2024

If you have enabled AUR , it will create an optimized version of makepkg in your home folder. This behavior can be disabled via the environment variable BAUH_ARCH_OPTIMIZE=0. This is described in the project README file in the AUR (arch) gem section.

from bauh.

CJ1169 avatar CJ1169 commented on May 17, 2024

If you have enabled AUR , it will create an optimized version of makepkg in your home folder. This behavior can be disabled via the environment variable BAUH_ARCH_OPTIMIZE=0. This is described in the project README file in the AUR (arch) gem section.

Good to hear the behavior can be modified. However, is it best to have that as the default behavior? I believe it's possible to call makepkg using a custom makepkg.conf that won't be picked up regularly. yay, the aur helper does this, I believe (although not by default).
i.e. maybe in a ~/.config/bauh directory, a makepkg.conf file could be used and then makepkg directed to use that instead.

Also good work my dude!

from bauh.

vinifmor avatar vinifmor commented on May 17, 2024

I added this behavior with new Linux users in mind. Non-tech people that don't know anything about compilation and probably won't like some AUR applications taking too long to install. bauh just make a copy of your /etc/makepkg.conf in your home folder and add these two lines ( if you haven't defined a value for them ):

MAKEFLAGS="-j$(nproc)"
COMPRESSXZ=(xz -c -z - --threads=0)

In the next future, I will add a settings window where you can see all bauh options and enable / disable them.

About informing a custom makepkg, I agree with you that is a better way and was the first thing that came in mind when I was coding. Unfortunately, I didn't find any other way at the time. If you know how to do it, please let me know, and I will change it for the next release.

Cheers

from bauh.

CJ1169 avatar CJ1169 commented on May 17, 2024

I added this behavior with new Linux users in mind. Non-tech people that don't know anything about compilation and probably won't like some AUR applications taking too long to install. bauh just make a copy of your /etc/makepkg.conf in your home folder and add these two lines ( if you haven't defined a value for them ):

MAKEFLAGS="-j$(nproc)" COMPRESSXZ=(xz -c -z - --threads=0)

In the next future, I will add a settings window where you can see all bauh options and enable / disable them.

About informing a custom makepkg, I agree with you that is a better way and was the first thing that came in mind when I was coding. Unfortunately, I didn't find any other way at the time. If you know how to do it, please let me know, and I will change it for the next release.

Cheers

Makes sense!
As for passing a custom config to makepkg, I believe
exec:

	if config.MakepkgConf != "" {
		args = append(args, "--config", config.MakepkgConf)
	}

config:

		MakepkgConf:        "",

Does it in Go. This was taken from yay's source code.
TL;DR: passing --config "/etc/makepkg.conf" should do it?
Goodluck! :)

from bauh.

vinifmor avatar vinifmor commented on May 17, 2024

Already done. If you want to have a look at the code changes -> 374c697

In the end of the day I will be publishing it to AUR in bauh-staging package.

from bauh.

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.