Commit graph

226 commits

Author SHA1 Message Date
Nobuyoshi Nakada
a47ed9f4aa
Fix lrama for snapshot
- Old versions should compile parse.y by `bison` or the bundled
  version `lrama`, not the `lrama` in the running repository.

- Check variables for ruby executable more strictly.
2025-01-21 23:12:38 +09:00
ydah
ccb4ba45ed Use LRAMA instead of YACC 2025-01-14 17:20:02 +09:00
Hiroshi SHIBATA
3fe59b04d6
-l option of 7z is unknown switch with the ubuntu-latest.
3082317402 (step):3:349
2024-09-30 12:03:02 +09:00
Sorah Fukumori
952de171c0 make-snapshot: update RUBY_PATCHLEVEL_STR regexp
the regexp to replace RUBY_PATCHLEVEL_STR for prerelease snapshots doesn't
match since GH-8578.

follow-up: https://github.com/ruby/ruby/pull/8578
follow-up: 68df43788d
2023-11-13 11:28:48 +09:00
Nobuyoshi Nakada
7c98d520f4 [Bug #19892] Clean intermediate files regardless -keep_temp
Not to include such files in the result packages.
2023-09-21 12:19:00 +09:00
Nobuyoshi Nakada
7ba88e13e0 Make clean.create to accept a block
Like `File.open`, yield an IO to write the file.
2023-09-21 12:19:00 +09:00
Yuichiro Kaneko
a1b01e7701
Use Lrama LALR parser generator instead of Bison
https://bugs.ruby-lang.org/issues/19637

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-05-12 18:25:10 +09:00
Hiroshi SHIBATA
6e7990144f Removed svn feature from make-snapshot 2023-02-08 15:36:32 +09:00
Nobuyoshi Nakada
5a5644dadc
Introduce VCS::Null for fallback 2022-09-30 10:39:42 +09:00
Takashi Kokubun
38a7a13ac6
Auto-generate the release date on version.h from git CommitDate (#6382)
* Auto-generate the release date on version.h

from git CommitDate

* Generate revision.h on mswin
2022-09-17 21:16:06 +09:00
Nobuyoshi Nakada
35c493ecf5
Dump cross.rb only when verbose [ci skip] 2022-09-07 14:48:54 +09:00
Nobuyoshi Nakada
4d469472e2
Debugging snapshot [ci skip] 2022-09-05 13:08:23 +09:00
Nobuyoshi Nakada
85a483169f
Use cross compiling settings as fake.rb for snapshots 2022-09-05 11:16:20 +09:00
Nobuyoshi Nakada
2767cb2825
Now fake.rb is needed to prepare sources 2022-09-03 21:57:17 +09:00
Nobuyoshi Nakada
462a8be511
VCS#revision_header: Make arguments optional 2022-09-01 20:57:30 +09:00
Nobuyoshi Nakada
55b1600987
Update revision.h in packages using VCS#revision_header 2022-09-01 18:45:09 +09:00
Nobuyoshi Nakada
762fca9b12
Prefer File class methods to write a string 2022-09-01 18:01:40 +09:00
Nobuyoshi Nakada
663c297e34
Remove CI configuration files from extracted bundled gems 2022-03-31 10:49:56 +09:00
NARUSE, Yui
8325094177 Revert "Do not include external library sources into packages"
This reverts commit a042043487.
2021-12-25 21:22:02 +09:00
NARUSE, Yui
1cc02078e5 Revert "make-snapshot: add -extlibs option"
This reverts commit afa9d65d61.
It prevents installing libffi.
2021-12-25 21:01:37 +09:00
Nobuyoshi Nakada
b8386f7f7f
Prepend DebugSystem to VCS class only
And revert 24e5f1c982, pepending to
Kernel did not affect the top level methods before 3.0.
2021-07-26 15:44:40 +09:00
Nobuyoshi Nakada
24e5f1c982
Ignore 7z unless available
`DebugSystem#system` is prepended in vcs.rb and defaulted to
`exception: true`.
2021-07-26 14:17:30 +09:00
Nobuyoshi Nakada
4c8c3fb230
Load rubygems before default gems 2021-06-24 13:01:47 +09:00
Nobuyoshi Nakada
afa9d65d61
make-snapshot: add -extlibs option
`make-snapshot` with `-extlibs` (or `-extlibs=yes`) includes
extracted and patched external library sources that the extension
libraries depend on.
2021-01-04 19:55:35 +09:00
Nobuyoshi Nakada
a042043487
Do not include external library sources into packages 2020-12-27 23:33:56 +09:00
Nobuyoshi Nakada
e9c3de4764
make-snapshot: don't store symlinks by 7z for reproduceable pacakges 2020-11-22 11:30:02 +09:00
Nobuyoshi Nakada
0f51105ece
make-snapshot: measure archiving times 2020-11-22 11:01:17 +09:00
Nobuyoshi Nakada
821aa35c8b
make-snapshot: suppress messages copying cached files unless verbose 2020-11-22 10:59:32 +09:00
Nobuyoshi Nakada
11cd9339a8
make-snapshot: clean autoconf caches for reproduceable packages 2020-11-22 10:49:02 +09:00
Nobuyoshi Nakada
358f91bf6f
Skip comment and empty lines in gems/bundled_gems file 2020-07-05 18:59:06 +09:00
Nobuyoshi Nakada
df275179bd
Revert "Moved aclocal.m4 to macro directory"
This reverts commit 4a6571dbc1,
because chkbuild does not follow.
2020-04-05 11:53:07 +09:00
Nobuyoshi Nakada
4a6571dbc1 Moved aclocal.m4 to macro directory 2020-04-05 09:26:57 +09:00
Nobuyoshi Nakada
5f18635a80
make-snapshot: fixed mode
"X" must be used in conjunction with "+".
2019-12-23 10:10:23 +09:00
Kazuhiro NISHIYAMA
7abb02771a
Fix typo [ci skip]
pointed out by ruby-trunk-changes
2019-10-08 00:00:24 +09:00
Kazuhiro NISHIYAMA
3374e1450c
Write yaml and json under destdir and print to stdout 2019-10-07 19:33:33 +09:00
Kazuhiro NISHIYAMA
96753e8475
Create info.yml and info.json
- `info.yml` is for ruby/www.ruby-lang.org/_data/releases.yml
- `info.json` is meta data for users of snapshot
2019-10-07 19:05:42 +09:00
Kazuhiro NISHIYAMA
bb86611c9b
Remove -s3 option
It will not use in `ruby/actions`, and `default=tmp` is not correct.
2019-10-07 19:03:06 +09:00
Nobuyoshi Nakada
8f7fca784a
make-snapshot: touch updated files after prepared
Align mtime of files updated by `make prepare-package` to make
packages reproducible.
2019-10-03 19:14:49 +09:00
Nobuyoshi Nakada
8142a9b43d
make-snapshot: suppress make error messages unless failed 2019-10-03 19:12:03 +09:00
Nobuyoshi Nakada
47d143be17
make-snapshot: copy cache files instead of linking
To get rid of setting mode and mtime of the original cache files.
2019-10-03 19:09:16 +09:00
Nobuyoshi Nakada
4ed51b3956
Fixed failure message for clean-cache 2019-10-02 17:03:55 +09:00
NAKAMURA Usaku
a61ae414b6 Fix the order of executing after-update task 2019-10-02 13:00:17 +09:00
NAKAMURA Usaku
5af2c8735a Should fail if system failed 2019-10-02 12:59:59 +09:00
Nobuyoshi Nakada
642dbb962c
make-snapshot: store timestamps in UTC for zip which lacks timezone 2019-09-23 01:25:17 +09:00
Kazuhiro NISHIYAMA
d8221a54f2
Add -mtc=off to 7z not to store NTFS timestamps
https://sevenzip.osdn.jp/chm/cmdline/switches/method.htm
2019-09-23 00:55:48 +09:00
Nobuyoshi Nakada
b0d24e262f
make-snapshot: Added -no7z option
It disables 7z, which seems not to have an option to stop saving
extra file attributes (uid/gid and atime), in order to make zip
packages stable.
2019-09-22 22:26:07 +09:00
Nobuyoshi Nakada
7fe7dec7e5
make-snapshot: Do not save extra file attributes
Extra file attributes (uid/gid and atime) make the packaged zip
file unstable.
2019-09-22 22:18:14 +09:00
Nobuyoshi Nakada
df4a4bd88c
make-snapshot: export ChangeLog from srcdir 2019-09-15 11:22:32 +09:00
Nobuyoshi Nakada
1ad4be13cb
make-snapshot: deprecated -exported option [Bug #16167] 2019-09-15 02:07:00 +09:00
Nobuyoshi Nakada
3ef76ce44a
make-snapshot: -git option is no longer provided [ci skip] 2019-09-08 21:22:37 +09:00