mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 20:04:15 +02:00
arch -> default MAKEFLAGS as nproc
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## bauh
|
## bauh
|
||||||
|
|
||||||
Graphical user interface to manage your Linux applications (packages) (old **fpakman**). It currently supports Flatpak, Snap and AUR packaging types. When you launch **bauh** you will see
|
**bauh** ( ba-oo ) is a graphical user interface to manage your Linux applications ( packages ) ( old **fpakman** ). It currently supports Flatpak, Snap and AUR packaging types. When you launch **bauh** you will see
|
||||||
a management panel where you can search, update, install, uninstall and launch applications. You can also downgrade some applications depending on the package technology.
|
a management panel where you can search, update, install, uninstall and launch applications. You can also downgrade some applications depending on the package technology.
|
||||||
|
|
||||||
It has a **tray mode** (see **Settings** below) that attaches the application icon to the system tray providing a quick way to launch it. Also the icon will get red when updates are available.
|
It has a **tray mode** (see **Settings** below) that attaches the application icon to the system tray providing a quick way to launch it. Also the icon will get red when updates are available.
|
||||||
@@ -106,7 +106,7 @@ will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings
|
|||||||
|
|
||||||
a) if **MAKEFLAGS** is not set in **/etc/makepkg.conf** and **~/.makepkg.conf** does not exist,
|
a) if **MAKEFLAGS** is not set in **/etc/makepkg.conf** and **~/.makepkg.conf** does not exist,
|
||||||
then a copy of **/etc/makepkg.conf** will be generated at **~/.makepkg.conf** defining MAKEFLAGS to work with
|
then a copy of **/etc/makepkg.conf** will be generated at **~/.makepkg.conf** defining MAKEFLAGS to work with
|
||||||
the number of your machine processors multiplied by 1.5 rounded up.
|
the number of your machine processors (**-j${nproc}**).
|
||||||
|
|
||||||
b) same as previous, but related to **COMPRESSXZ** definition. If '--threads=0' is not defined, the custom file will be generated.
|
b) same as previous, but related to **COMPRESSXZ** definition. If '--threads=0' is not defined, the custom file will be generated.
|
||||||
|
|
||||||
|
|||||||
@@ -99,11 +99,11 @@ class ArchCompilationOptimizer(Thread if bool(os.getenv('BAUH_DEBUG', 0)) else P
|
|||||||
|
|
||||||
if not not_commented:
|
if not not_commented:
|
||||||
user_makepkg = RE_MAKE_FLAGS.sub('', global_makepkg)
|
user_makepkg = RE_MAKE_FLAGS.sub('', global_makepkg)
|
||||||
optimizations.append('MAKEFLAGS="-j{}"'.format(ncpus))
|
optimizations.append('MAKEFLAGS="-j$(nproc)"')
|
||||||
else:
|
else:
|
||||||
self.logger.warning("It seems '{}' compilation flags are already customized".format(GLOBAL_MAKEPKG))
|
self.logger.warning("It seems '{}' compilation flags are already customized".format(GLOBAL_MAKEPKG))
|
||||||
else:
|
else:
|
||||||
optimizations.append('MAKEFLAGS="-j{}"'.format(ncpus))
|
optimizations.append('MAKEFLAGS="-j$(nproc)"')
|
||||||
|
|
||||||
compress_xz = RE_COMPRESS_XZ.findall(user_makepkg if user_makepkg else global_makepkg)
|
compress_xz = RE_COMPRESS_XZ.findall(user_makepkg if user_makepkg else global_makepkg)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user