Cygwin の GCC 840 をパッケージ化する » 履歴 » バージョン 3
開発 次郎, 2026/05/17 00:09
| 1 | 1 | 開発 次郎 | h1. Cygwin の GCC 840 をパッケージ化する |
|---|---|---|---|
| 2 | 2 | 開発 次郎 | |
| 3 | 3 | 開発 次郎 | * /usr/local/gcc-8.4 を tar.xz 1 個に固める |
| 4 | * Cygwin のパッケージ構造に沿って ディレクトリに置く |
||
| 5 | * 別 PC で setup-x86_64.exe --local-install を使ってインストール |
||
| 6 | 2 | 開発 次郎 | |
| 7 | 3 | 開発 次郎 | h2. パッケージ用ディレクトリを作る |
| 8 | 1 | 開発 次郎 | |
| 9 | 3 | 開発 次郎 | <pre><code class="text"> |
| 10 | repo/ |
||
| 11 | └─ x86_64/ |
||
| 12 | └─ release/ |
||
| 13 | └─ gcc8/ |
||
| 14 | 2 | 開発 次郎 | </code></pre> |
| 15 | |||
| 16 | <pre><code class="bash"> |
||
| 17 | 3 | 開発 次郎 | mkdir -p ~/repo/x86_64/release/gcc8 |
| 18 | 2 | 開発 次郎 | </code></pre> |
| 19 | |||
| 20 | 3 | 開発 次郎 | h2. GCC8 を tar.xz に固める(1 ファイル) |
| 21 | 2 | 開発 次郎 | |
| 22 | <pre><code class="bash"> |
||
| 23 | 3 | 開発 次郎 | tar -C / -cJf ~/repo/x86_64/release/gcc8/gcc8-8.4.0-1.tar.xz usr/local/gcc-8.4 |
| 24 | 2 | 開発 次郎 | </code></pre> |
| 25 | |||
| 26 | 3 | 開発 次郎 | h2. setup.hint を作る(任意だが推奨) |
| 27 | 2 | 開発 次郎 | |
| 28 | <pre><code class="bash"> |
||
| 29 | 3 | 開発 次郎 | cat > ~/repo/x86_64/release/gcc8/setup.hint << 'EOF' |
| 30 | sdesc: "Custom GCC 8.4.0 (long double=80bit)" |
||
| 31 | ldesc: "Custom-built GCC 8.4.0 installed under /usr/local/gcc-8.4." |
||
| 32 | category: Devel |
||
| 33 | requires: |
||
| 34 | EOF |
||
| 35 | 2 | 開発 次郎 | </code></pre> |
| 36 | |||
| 37 | 3 | 開発 次郎 | h2. 別 PC に repo/ をコピー |
| 38 | 2 | 開発 次郎 | |
| 39 | |||
| 40 | 3 | 開発 次郎 | h2. 別 PC でインストール |
| 41 | |||
| 42 | 2 | 開発 次郎 | <pre><code class="bash"> |
| 43 | 3 | 開発 次郎 | /setup-x86_64.exe --local-install --local-package-dir X:\path\to\repo |
| 44 | 2 | 開発 次郎 | </code></pre> |
| 45 | 3 | 開発 次郎 | |
| 46 | * GUI で: |
||
| 47 | 2 | 開発 次郎 | ** setup-x86_64.exe を起動 |
| 48 | ** 「Install from Local Directory」を選択 |
||
| 49 | ** cygwin-local を指定 |
||
| 50 | ** パッケージ一覧に gcc8 が現れる |
||
| 51 | ** インストール |
||
| 52 | ** → 公式パッケージと同じ UI で GCC 8.4.0 がインストールされる |