Maximilian Downey Twiss
b5e4cedb0d
Re-enable And/Or cop, lint tree ( #7457 )
2022-10-05 20:16:53 -05:00
Ed Reel
2b09b03a48
Add no_compress, no_shrink and no_strip boolean options ( #7416 )
...
* Add no_compress, no_shrink and no_strip boolean options
* Remove empty lines in bin/crew
2022-09-17 18:46:33 -04:00
Maximilian Downey Twiss
f6cea137b4
Fix rubocop errors that snuck in ( #7335 )
2022-08-23 22:35:03 -04:00
Maximilian Downey Twiss
de24923ee8
Add Rubocop CI ( #7083 )
...
* Rename IgnoredPatterns to AllowedPatterns.
* Exclude docopt.rb (not our code) from Rubocop
* Disable Style/RedundantReturn
* Disable Style/MutableConstant
* Disable Style/NumericLiterals
* Set Layout/IndentationStyle to spaces
* Temporarily disable various cops.
* Add Rubocop CI via Octocop
* Lint tree with rubocop -A -c .rubocop.yml
Co-authored-by: Satadru Pramanik <satadru@gmail.com >
2022-08-22 13:31:25 -04:00
supechicken
27fdd2294f
crew: Force UT8 on package load ( #7320 )
2022-08-22 08:25:32 -04:00
supechicken
d2cc954ed0
crew sysinfo: Fix not a git repository error (#7307 )
...
* crew: Fix `not a git repository` error
* Bump version
2022-08-20 07:10:58 -04:00
Satadru Pramanik
f6109a1405
Refactor CREW_COMMON_FLAGS to benefit meson builds ( #7286 )
...
* Use mold linker in meson builds by default
* use CREW_COMMON_FNO_LTO_FLAGS in meson
* add CREW_CORE_FLAGS
* bump crew version appropriately
2022-08-18 11:54:49 -05:00
supechicken
e34661c3c2
crew: Update git command used in crew sysinfo ( #7285 )
...
* crew: Remove last update time from `crew sysinfo`
* Bump version
* Re-add `Last update in local repository`
* Update crew
* Remove color as markdown does not support
* Do not wrap commit hash with `\`` so that it can be referred by github
2022-08-17 18:59:41 -04:00
supechicken
7ed76d1845
crew: Isolate package classes from global scope ( #7283 )
...
* crew: Isolate package classes from global scope
* Use `require_relative`
* Fix typo
* Prevent duplicate loading packages
* Bump version
2022-08-17 13:51:07 -05:00
supechicken
777e9177f0
lib/progress_bar: Fix non-interactive terminal fallback logic ( #7276 )
2022-08-16 15:41:44 -04:00
supechicken
de5bf96d41
lib/downloader: Add fix for invalid file size recieved from server ( #7271 )
...
* Add fix for github raw links
* lib/downloader: Add fix for github raw links
* Update comment
2022-08-14 13:02:32 -05:00
supechicken
64ba6d7ab5
lib/downloader: New progress bar style, disappear after download complete ( #7270 )
...
* lib/downloader: New progress bar design, with more info
* Reduce progress bar update time
* Clear progress bar when success only
* Update progress_bar.rb
* Update downloader.rb
2022-08-14 09:53:36 -05:00
Ed Reel
94707830b6
Fix http_downloader: uninitialized constant Net (NameError) ( #7212 )
...
Co-authored-by: chronos <no-reply@github.com >
2022-07-19 10:51:08 -04:00
supechicken
0b642e5734
lib/downloader: Fix securerandom error ( #7206 )
2022-07-17 22:33:55 -04:00
supechicken
0e532bef6d
Update homepage URL in packages from skycocker/chromebrew to chromebrew/chromebrew ( #7146 )
...
* Change homepage URL from skycocker/chromebrew to chromebrew/chromebrew
* Use https
* Bump version
2022-06-15 12:49:40 -05:00
Cassandra Watergate
5cd230bf1a
python buildsystem, second PR ( #7106 )
...
* Revert d3038e0805
* upgrade ca_certificates
* upgrade py3_cryptography
* upgrade py3_semantic_version
* upgrade py3_setuptools
* upgrade py3_setuptools_rust
* upgrade py3_typing_extensions
* upgrade py3_wheel
* new package py3_setuptools_scm
* enable git_clone_deep on py3_setuptools_scm
* new package py3_pycparser
* fix setuptools_scm (super secret environment variable)
* fix python -m versioning with envvar
* ca_certificates should be in different PR
* git_no_recursive -> git_no_submodules (better name)
* bump crew version
* add x86_64 and i686 binaries
* git_no_submodules => no_git_submodules
* add missed binaries
* add arm binaries
Co-authored-by: Ed Reel <edreel@gmail.com >
2022-06-04 02:29:45 -05:00
supechicken
0383cbee54
lib/downloader: Add an option for disabling progress bar (#7116 )
...
* Add `CREW_DOWNLOADER_SHOW_PROGBAR` option
* Add `CREW_DOWNLOADER_SHOW_PROGBAR` variable
* Change to `CREW_HIDE_PROGBAR`
* Bump version
2022-06-04 01:10:15 -05:00
Cassandra Watergate
464a55c2d0
bleachbit -> 4.4.2 ( #7113 )
...
* new package py3_mock
* bleachbit -> 4.4.2
fix paths
re-add bleachbit.ini file
add x86_64 and i686 binaries
bump version, fix indentation
add arm binaries
2022-06-03 02:44:30 -05:00
Cassandra Watergate
87e057e0dd
new package py3_build ( #7100 )
...
new package py3_installer
new package py3_pep517
new package py3_tomli
add new buildsystem to buildessential
add constants to const.rb for new buildsystem
new package py3_flit_core
new package py3_flit
add py3_flit_core to buildessential
new package py3_tomli_w
add x86_64 and i686 binaries
fix flit-core and tomli-w binaries
bump crew version
update pyparsing and packaging
oops py3_packaging depends on py3_pyparsing (add x86_64 and i686 binaries)
py3_pyparsing does not depend on itself
add arm binaries
2022-05-31 02:42:48 -05:00
Ed Reel
fc1d3efafe
Revert d3038e0805 ( #7090 )
2022-05-29 17:17:01 -04:00
supechicken
d3038e0805
crew: Add multi-component support in one package ( #7018 )
...
* crew: Add multi-component support in one package
* Remove CREW_USE_RSYNC variable
* suggested @uberhacker changes
* Change back to `Dir.glob(...)` (`Dir[...]` will not work with blocks)
* Change `Dir.glob` to `Dir[...].each` (be consistent)
* Merge upstream
* Update gcc.rb
* Add `{glob,regex,array}` support for file filter
* Add comment
* `sed s/gcc11::libs/gcc::libs/g *`
* Remove extra options
* Delete `CREW_PREFIX` in filenames that will be passed to the filter function
Co-authored-by: Satadru Pramanik <satadru@gmail.com >
2022-05-23 10:45:24 -05:00
supechicken
cb7eb4993b
Merge gcc12.rb and gcc.rb, cleanup, remove any gcc packages older than 12 ( #7076 )
...
* Delete older `gcc` versions
* Delete older `gcc` versions, merge `gcc12.rb` and `gcc.rb`
* Fix syntax error
* Switch from `gcc12.rb` to `gcc.rb`
* remove gcc_tools
* Fix `exception` logic in `def self.system` (`package.rb`)
* Update gcc.rb
* Correct usage of `File.write`
* Update gcc.rb
* Update gcc.rb
* `previous` might be better than `older`
2022-05-22 12:30:01 -05:00
Satadru Pramanik
0e3539cc18
crew: Don't use patchelf if a package specifies no_compile_needed ( #7045 )
...
* Don't use patchelf if no_compile_needed
* bump version
2022-05-09 13:13:16 -05:00
Satadru Pramanik
8f6ca61c85
mold -> 1.2.1, enable mold on armv7l ( #6943 )
...
* mold -> 1.2.0, which is now supported on armv7l
* add mold 1.2.1
2022-04-29 12:43:09 +08:00
Ed Reel
c6625ef080
Update jdk packages 8u321-17.0.2 => 8u331-18.0.1 ( #7009 )
2022-04-25 15:15:27 -04:00
Satadru Pramanik
3b6f59ec0d
Use patchelf function by default when building packages ( #7003 )
2022-04-21 15:17:50 -05:00
supechicken
7aae33a505
downloader: Fallback to curl if an error is raised by securerandom ( #6997 )
...
* Update downloader.rb
* Update downloader.rb
2022-04-18 22:38:26 -04:00
Satadru Pramanik
b57b497bf5
Patchelf -> 0.14.5, Update patchelf fxn in crew, rebuild util-linux ( #6991 )
...
* adjust patchelf veto files
* patchelf -> 0.14.5
* add util__linux rebuild
* remove ldconfig
* bump crew version
2022-04-17 23:13:00 -05:00
Satadru Pramanik
9460d7ee30
crew: Fix patchelf use for glibc packages, use patchelf for zsh to fix breakage with sudo ( #6981 )
...
* adjust patchelf logic, add zsh processed with patchelf
* bump version
2022-04-16 09:42:12 -05:00
supechicken
91643ef578
crew: Fix postinstall, remove extra ! in const.rb ( #6962 )
...
* Remove extra `!`
* Should be `unless` not `if`
* Bump version
2022-04-11 10:15:41 -05:00
supechicken
38f21e4f60
crew: Only perform postinstall only if it is defined by package, hide error when ctrl+c ( #6957 )
...
* Only perform postinstall if function defined by package
* Bump version
2022-04-09 14:52:21 -05:00
Satadru Pramanik
e73d8efaf2
fix gnome postinstall dep ( #6942 )
2022-04-08 10:10:23 -05:00
supechicken
725fc6c769
lib/package.rb: Exclude buildessential dependency on some packages which have prebuilt binary as source ( #6923 )
...
* lib/package.rb: Add `no_compile_needed` flag
* Bump version
* Check `no_compile_needed` also in `def strip_dir`
* Change all `CREW_NOT_STRIP` to `no_compile_needed`
2022-03-30 14:28:08 -04:00
Satadru Pramanik
3738037086
Gnome macro ( #6909 )
...
* Use gnome macro for package postinstalls
* add gnome postinstall message.
* add fixed up package
* fix continue logic
* move info message behind verbose flag
* add gnome flag to current gtk packages
* remove GNOME_DEPS
2022-03-29 18:09:28 -05:00
Satadru Pramanik
bd35219408
Don't let CREW_LINKER_FLAGS break cmake on armv7l ( #6915 )
2022-03-29 18:08:53 -05:00
Ed Reel
0d699b1ad6
Fix dependency resolver to include only one version of jdk ( #6896 )
2022-03-24 09:13:34 -07:00
supechicken
7d7e491190
crew: Move checksum checking part to lib/downloader.rb ( #6891 )
...
* lib/downloader: Check checksum if provided
* crew: Move checksum part to downloader
* Update `Checksum mismatch` message
* Move the `filename` or statement to a variable
* Bump version
* Make `sha256sum` a required param
* Add SKIP option, update packages that use `downloader`
* Remove extra round bracket
* Fix option order
* Update usage
* libspatialaudio: Check sha256sum with `downloader`, rubyize
* Make retry times configurable
* Correct usage
2022-03-23 02:33:11 -05:00
supechicken
a0bcbd5842
sysinfo: Fix not a git repository error ( #6890 )
...
* sysinfo: Fix `not a git repository` error
* Should be `CREW_LIB_PATH`
* Bump version
* Correct version
2022-03-20 11:01:12 -05:00
Cassandra Watergate
37681c98c1
Merge pull request #6873 from saltedcoffii/samuorninja
...
envvar to control use of samurai or ninja
2022-03-19 23:10:41 -07:00
Ed Reel
5ce3095626
Fix downloader for file:// scheme ( #6878 )
2022-03-20 14:05:26 +08:00
supechicken
7150adaa70
deb_utils: Ignore trailing newline ( #6880 )
...
* deb_utils: Ignore trailing newline
* Fix trailing newline detection
* Change comment location
2022-03-19 13:18:45 -05:00
supechicken
12ecf03abc
crew: Add sysinfo command ( #6875 )
...
* crew: Add `sysinfo` command
* Bump version
* Read from environment variable if `lsb-release` not exist
* Update README.md
2022-03-18 11:05:30 -05:00
Cassandra Watergate
aa94d03255
lib/const.rb: bump version
2022-03-17 15:24:55 -07:00
Cassandra Watergate
e2501790db
samurai or ninja variable
2022-03-17 13:50:58 -07:00
supechicken
5698565fa7
downloader.rb: Fix progress bar overflow, add support for external downloaders ( #6844 )
...
* downloader.rb: Fix progress bar overflow
* Bump version
* Remove extra `.to_i`
2022-03-11 13:22:26 -06:00
Satadru Pramanik
c6cf6a82c6
Fix rsync upgrade breaking crew ( #6849 )
2022-03-11 09:55:36 -06:00
supechicken
80204ded10
lib/deb_utils.rb: Improve .deb unarchive algorithm ( #6848 )
...
* Fix `.deb` unarchive algorithm
* signal_desktop.rb: use source_url
* signal_desktop.rb: Remove alien dep
* Add color for error message
* Add color for error message
2022-03-11 09:12:05 -06:00
Satadru Pramanik
c7c2eea7e4
Make mold default x86 linker, plus harfbuzz + initial libpng cleanup ( #6842 )
...
* move libpng inside harfbuzz, make sure harfbuzz installs before freetype
* Make mold linker default for x86, make ragel an is_fake package
* fix fetchtags, start gtk3 update
* Add buildable gdk_pixbuf with patch
* rev harfbuzz version
* add rebuilds
* add pixman builds
* add binaries
* suggested changes
* add libva build
* change CREW_LINKER logic
* crew: Remove `CREW_*_PACKAGES` support
* const.rb: Remove `CREW_*_PACKAGES`
* suggested changes
* suggested changes
* fix linker env variable logic
* Don't let icon cache update failure derail other installs
* upload glew binaries
* suggested changes + add updated glib
* suggested changes
Co-authored-by: supechicken <supechicken666@gmail.com >
2022-03-11 13:20:28 +08:00
Satadru Pramanik
dcc70d322d
GCC11 rebuilt w/ mold support, add mold to buildessentials, add libst… ( #6839 )
2022-03-11 02:10:57 +08:00
supechicken
e44d98aa8c
crew: Rewrite dependency resolver algorithm ( #6840 )
...
* Rewrite dependency resolver algorithm
* Add color for build dependencies, show satisfied dependencies
* Update help message
* Fix typo
2022-03-10 13:07:16 -05:00