Skip to content

Commit b40e8eb

Browse files
committed
prepare v12.1.0-2
1 parent d5777b8 commit b40e8eb

File tree

6 files changed

+47
-59
lines changed

6 files changed

+47
-59
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
Entries in this file are in reverse chronological order.
55

6+
## 2022-05-17
7+
8+
- v12.1.0-2 prepared
9+
- patch nano.specs to use C++ nano libraries
10+
611
## 2022-05-15
712

813
- v12.1.0-1.1 published on npmjs.com

README-BUILD.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ not be accepted by bash.
107107

108108
## Versioning
109109

110-
The version string is an extension to semver, the format looks like `12.1.0-1`.
110+
The version string is an extension to semver, the format looks like `12.1.0-2`.
111111
It includes the three digits with the original GCC version, a fourth
112112
digit with the xPack release number.
113113

@@ -209,10 +209,10 @@ their SHA signatures, created in the `deploy` folder:
209209
```console
210210
$ ls -l ~/Work/riscv-none-elf-gcc-*/deploy
211211
total 940080
212-
-rw-rw-rw- 1 ilg ilg 476486985 May 13 18:05 xpack-riscv-none-elf-gcc-12.1.0-1-linux-x64.tar.gz
213-
-rw-rw-rw- 1 ilg ilg 117 May 13 18:05 xpack-riscv-none-elf-gcc-12.1.0-1-linux-x64.tar.gz.sha
214-
-rw-rw-rw- 1 ilg ilg 486134774 May 13 18:29 xpack-riscv-none-elf-gcc-12.1.0-1-win32-x64.zip
215-
-rw-rw-rw- 1 ilg ilg 114 May 13 18:29 xpack-riscv-none-elf-gcc-12.1.0-1-win32-x64.zip.sha
212+
-rw-rw-rw- 1 ilg ilg 476486985 May 13 18:05 xpack-riscv-none-elf-gcc-12.1.0-2-linux-x64.tar.gz
213+
-rw-rw-rw- 1 ilg ilg 117 May 13 18:05 xpack-riscv-none-elf-gcc-12.1.0-2-linux-x64.tar.gz.sha
214+
-rw-rw-rw- 1 ilg ilg 486134774 May 13 18:29 xpack-riscv-none-elf-gcc-12.1.0-2-win32-x64.zip
215+
-rw-rw-rw- 1 ilg ilg 114 May 13 18:29 xpack-riscv-none-elf-gcc-12.1.0-2-win32-x64.zip.sha
216216
```
217217

218218
### Build the Arm GNU/Linux binaries
@@ -285,17 +285,17 @@ archives and their SHA signatures, created in the `deploy` folder:
285285
```console
286286
$ ls -l ~/Work/riscv-none-elf-gcc-*/deploy
287287
total 462200
288-
-rw-rw-rw- 1 ilg ilg 473282190 May 14 03:11 xpack-riscv-none-elf-gcc-12.1.0-1-linux-arm64.tar.gz
289-
-rw-rw-rw- 1 ilg ilg 119 May 14 03:11 xpack-riscv-none-elf-gcc-12.1.0-1-linux-arm64.tar.gz.sha
288+
-rw-rw-rw- 1 ilg ilg 473282190 May 14 03:11 xpack-riscv-none-elf-gcc-12.1.0-2-linux-arm64.tar.gz
289+
-rw-rw-rw- 1 ilg ilg 119 May 14 03:11 xpack-riscv-none-elf-gcc-12.1.0-2-linux-arm64.tar.gz.sha
290290
```
291291

292292
and:
293293

294294
```console
295295
$ ls -l ~/Work/riscv-none-elf-gcc-*/deploy
296296
total 457292
297-
-rw-rw-rw- 1 ilg ilg 468260455 May 14 04:00 xpack-riscv-none-elf-gcc-12.1.0-1-linux-arm.tar.gz
298-
-rw-rw-rw- 1 ilg ilg 117 May 14 04:00 xpack-riscv-none-elf-gcc-12.1.0-1-linux-arm.tar.gz.sha
297+
-rw-rw-rw- 1 ilg ilg 468260455 May 14 04:00 xpack-riscv-none-elf-gcc-12.1.0-2-linux-arm.tar.gz
298+
-rw-rw-rw- 1 ilg ilg 117 May 14 04:00 xpack-riscv-none-elf-gcc-12.1.0-2-linux-arm.tar.gz.sha
299299
```
300300

301301
### Build the macOS binaries
@@ -337,17 +337,17 @@ and its SHA signature, created in the `deploy` folder:
337337
```console
338338
$ ls -l ~/Work/riscv-none-elf-gcc-*/deploy
339339
total 951048
340-
-rw-r--r-- 1 ilg staff 472518625 May 14 02:20 xpack-riscv-none-elf-gcc-12.1.0-1-darwin-x64.tar.gz
341-
-rw-r--r-- 1 ilg staff 118 May 14 02:20 xpack-riscv-none-elf-gcc-12.1.0-1-darwin-x64.tar.gz.sha
340+
-rw-r--r-- 1 ilg staff 472518625 May 14 02:20 xpack-riscv-none-elf-gcc-12.1.0-2-darwin-x64.tar.gz
341+
-rw-r--r-- 1 ilg staff 118 May 14 02:20 xpack-riscv-none-elf-gcc-12.1.0-2-darwin-x64.tar.gz.sha
342342
```
343343

344344
and:
345345

346346
```console
347347
$ ls -l ~/Work/riscv-none-elf-gcc-*/deploy
348348
total 951816
349-
-rw-r--r-- 1 ilg staff 471723612 May 13 17:37 xpack-riscv-none-elf-gcc-12.1.0-1-darwin-arm64.tar.gz
350-
-rw-r--r-- 1 ilg staff 120 May 13 17:37 xpack-riscv-none-elf-gcc-12.1.0-1-darwin-arm64.tar.gz.sha
349+
-rw-r--r-- 1 ilg staff 471723612 May 13 17:37 xpack-riscv-none-elf-gcc-12.1.0-2-darwin-arm64.tar.gz
350+
-rw-r--r-- 1 ilg staff 120 May 13 17:37 xpack-riscv-none-elf-gcc-12.1.0-2-darwin-arm64.tar.gz.sha
351351
```
352352

353353
## Subsequent runs
@@ -442,8 +442,8 @@ After install, the package should create a structure like this (only the
442442
first two depth levels are shown):
443443

444444
```console
445-
$ tree -L 2 /Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/12.1.0-1/.content/
446-
/Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/12.1.0-1/.content/
445+
$ tree -L 2 /Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/12.1.0-2/.content/
446+
/Users/ilg/Library/xPacks/\@xpack-dev-tools/riscv-none-elf-gcc/12.1.0-2/.content/
447447
├── README.md
448448
├── bin
449449
│   ├── riscv-none-elf-addr2line

README-RELEASE.md

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Before starting the build, perform some checks and tweaks.
1717
### Identify the main GCC version
1818

1919
Determine the GCC version (like `12.1.0`) and update the `scripts/VERSION`
20-
file; the format is `12.1.0-1`. The fourth digit is the number of the
20+
file; the format is `12.1.0-2`. The fourth digit is the number of the
2121
the xPack GNU RISC-V Embedded GCC release number of this version.
2222

2323
### Update versions in `README` files
@@ -32,35 +32,13 @@ the xPack GNU RISC-V Embedded GCC release number of this version.
3232
- add a new `if` with the new version before the existing code
3333
- update the versions, branch names and commit ids
3434

35-
### Update gcc
36-
37-
With a git client in
38-
[xpack-dev-tools/gcc](https://github.com/xpack-dev-tools/gcc)
39-
40-
- identify the tag with the latest release (like `gcc-12.1.0`)
41-
- create a new branch with the same name as the tag (like `gcc-12.1.0`)
42-
- create a new branch with name suffixed with `-riscv-none-elf-xpack`
43-
(like `gcc-12.1.0-riscv-none-elf-xpack`
44-
- identify the commit which adds the xPack specific changes
45-
- cherry pick it; do not commit immediately
46-
- check the differences from the non-xpack branch; there should be three files:
47-
- `elf-embed.h` with the `LIB_SPEC` definitions without libgloss
48-
- `config.gcc` with `tm_file` definition that uses `elf-embed.h`
49-
- `config.sub` which adds `*-embed)`
50-
- commit as **add support for riscv-none-embed-***
51-
- push both new branches to `origin`
52-
- checkout the `gcc-12.1.0` tag as HEAD
53-
- create patch from the commit
54-
- rename as `gcc-12.1.0.patch.diff`
55-
- copy to `patches`
56-
5735
### Fix possible open issues
5836

5937
Check GitHub issues and pull requests:
6038

6139
- <https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/issues/>
6240

63-
and fix them; assign them to a milestone (like `12.1.0-1`).
41+
and fix them; assign them to a milestone (like `12.1.0-2`).
6442

6543
### Check `README.md`
6644

@@ -72,8 +50,8 @@ but in the version specific release page.
7250

7351
- open the `CHANGELOG.md` file
7452
- check if all previous fixed issues are in
75-
- add a new entry like _- v12.1.0-1 prepared_
76-
- commit with a message like _prepare v12.1.0-1_
53+
- add a new entry like _- v12.1.0-2 prepared_
54+
- commit with a message like _prepare v12.1.0-2_
7755

7856
Note: if you missed to update the `CHANGELOG.md` before starting the build,
7957
edit the file and rerun the build, it should take only a few minutes to
@@ -322,7 +300,7 @@ git -C ${HOME}/Work/riscv-none-elf-gcc-xpack.git submodule update --init --recur
322300

323301
## Create a new GitHub pre-release draft
324302

325-
- in `CHANGELOG.md`, add the release date and a message like _- v12.1.0-1 released_
303+
- in `CHANGELOG.md`, add the release date and a message like _- v12.1.0-2 released_
326304
- commit and push the `xpack-develop` branch
327305
- run the xPack action `trigger-workflow-publish-release`
328306

@@ -331,8 +309,8 @@ The workflows results and logs are available from the
331309

332310
The result is a
333311
[draft pre-release](https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/)
334-
tagged like **v12.1.0-1** (mind the dash in the middle!) and
335-
named like **xPack GNU RISC-V Embedded GCC v12.1.0-1** (mind the dash),
312+
tagged like **v12.1.0-2** (mind the dash in the middle!) and
313+
named like **xPack GNU RISC-V Embedded GCC v12.1.0-2** (mind the dash),
336314
with all binaries attached.
337315

338316
- edit the draft and attach it to the `xpack-develop` branch (important!)
@@ -354,7 +332,7 @@ If any, refer to closed
354332
## Update the preview Web
355333

356334
- commit the `develop` branch of `xpack/web-jekyll` GitHub repo;
357-
use a message like **xPack GNU RISC-V Embedded GCC v12.1.0-1 released**
335+
use a message like **xPack GNU RISC-V Embedded GCC v12.1.0-2 released**
358336
- push to GitHub
359337
- wait for the GitHub Pages build to complete
360338
- the preview web is <https://xpack.github.io/web-preview/news/>
@@ -396,18 +374,18 @@ watching this project.
396374
- compare the SHA sums with those shown by `cat *.sha`
397375
- check the executable names
398376
- commit all changes, use a message like
399-
`package.json: update urls for 12.1.0-1 release` (without `v`)
377+
`package.json: update urls for 12.1.0-2 release` (without `v`)
400378

401379
## Publish on the npmjs.com server
402380

403381
- select the `xpack-develop` branch
404382
- check the latest commits `npm run git-log`
405-
- update `CHANGELOG.md`, add a line like _- v12.1.0-1.1 published on npmjs.com_
406-
- commit with a message like _CHANGELOG: publish npm v12.1.0-1.1_
383+
- update `CHANGELOG.md`, add a line like _- v12.1.0-2.1 published on npmjs.com_
384+
- commit with a message like _CHANGELOG: publish npm v12.1.0-2.1_
407385
- `npm pack` and check the content of the archive, which should list
408386
only the `package.json`, the `README.md`, `LICENSE` and `CHANGELOG.md`;
409387
possibly adjust `.npmignore`
410-
- `npm version 12.1.0-1.1`; the first 4 numbers are the same as the
388+
- `npm version 12.1.0-2.1`; the first 4 numbers are the same as the
411389
GitHub release; the fifth number is the npm specific version
412390
- the commits and the tag should have been pushed by the `postversion` script;
413391
if not, push them with `git push origin --tags`
@@ -436,12 +414,12 @@ The tests results are available from the
436414
When the release is considered stable, promote it as `latest`:
437415

438416
- `npm dist-tag ls @xpack-dev-tools/riscv-none-elf-gcc`
439-
- `npm dist-tag add @xpack-dev-tools/[email protected]1.1 latest`
417+
- `npm dist-tag add @xpack-dev-tools/[email protected]2.1 latest`
440418
- `npm dist-tag ls @xpack-dev-tools/riscv-none-elf-gcc`
441419

442420
In case the previous version is not functional and needs to be unpublished:
443421

444-
- `npm unpublish @xpack-dev-tools/[email protected]1.X`
422+
- `npm unpublish @xpack-dev-tools/[email protected]2.X`
445423

446424
## Update the Web
447425

@@ -463,7 +441,7 @@ In case the previous version is not functional and needs to be unpublished:
463441

464442
- in a separate browser windows, open [TweetDeck](https://tweetdeck.twitter.com/)
465443
- using the `@xpack_project` account
466-
- paste the release name like **xPack GNU RISC-V Embedded GCC v12.1.0-1 released**
444+
- paste the release name like **xPack GNU RISC-V Embedded GCC v12.1.0-2 released**
467445
- paste the link to the Web page
468446
[release](https://xpack.github.io/riscv-none-elf-gcc/releases/)
469447
- click the **Tweet** button
@@ -487,9 +465,9 @@ Add a new topic in the **Announcements** category of the
487465
[RISC-V forums]<https://groups.google.com/a/groups.riscv.org/g/sw-dev>).
488466

489467
```console
490-
Subject: xPack GNU RISC-V Embedded GCC v12.1.0-1 released
468+
Subject: xPack GNU RISC-V Embedded GCC v12.1.0-2 released
491469

492-
Version 12.1.0-1 is a new release of the xPack GNU RISC-V Embedded GCC; it follows the GNU GCC release.
470+
Version 12.1.0-2 is a new release of the xPack GNU RISC-V Embedded GCC; it follows the GNU GCC release.
493471

494472
https://xpack.github.io/blog/2022/05/14/riscv-none-elf-gcc-v11-3-0-1-released/
495473
```

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ The version strings used by the GCC project are three number strings
126126
like `12.1.0`; to this string the xPack distribution adds a four number,
127127
but since semver allows only three numbers, all additional ones can
128128
be added only as pre-release strings, separated by a dash,
129-
like `12.1.0-1`.
129+
like `12.1.0-2`.
130130
When published as a npm package, the version gets
131-
a fifth number, like `12.1.0-1.1`.
131+
a fifth number, like `12.1.0-2.1`.
132132

133133
Since adherence of third party packages to semver is not guaranteed,
134134
it is recommended to use semver expressions like `^12.1.0` and `~12.1.0`
135-
with caution, and prefer exact matches, like `12.1.0-1.1`.
135+
with caution, and prefer exact matches, like `12.1.0-2.1`.
136136

137137
## Maintainer info
138138

scripts/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.1.0-1
1+
12.1.0-2

scripts/common-versions-source.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function build_versions()
6464
fi
6565

6666
# In reverse chronological order.
67-
if [[ ${RELEASE_VERSION} =~ 12\.1\.0-.* ]]
67+
if [[ ${RELEASE_VERSION} =~ 12\.1\.0-[12] ]]
6868
then
6969

7070
# -------------------------------------------------------------------------
@@ -292,6 +292,11 @@ function build_versions()
292292
NEWLIB_ARCHIVE_NAME="newlib-${NEWLIB_VERSION}.tar.gz"
293293
NEWLIB_ARCHIVE_URL="ftp://sourceware.org/pub/newlib/${NEWLIB_ARCHIVE_NAME}"
294294

295+
if [ "${RELEASE_VERSION}" != "12.1.0-1" ]
296+
then
297+
ENABLE_NEWLIB_RISCV_NANO_CXX_PATCH="y"
298+
fi
299+
295300
# Task [III-2] /$HOST_NATIVE/newlib/
296301
build_cross_newlib ""
297302
# exit 1

0 commit comments

Comments
 (0)