Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Find a better way to detect the build environment architecture

オープン
#55 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
bash, linux
領域
build-system

調査の方向性

まず、PR #49で導入されたアーキテクチャチェックを調査し、Ubuntu 22.04とAlpineでその出力を再現します。検出されたアーキテクチャをloaderパスのマッチングおよびunameの動作と比較します。build環境のアーキテクチャが、移植性のないloaderパスやサポートされていないbusyboxの出力に依存せず、一貫して検出されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The architecture check introduced in https://github.com/AppImage/type2-runtime/pull/49 breaks the detection on OSes other than Alpine because of them using busybox. On Ubuntu 22.04, file returns the following:

> file -L /bin/bash 
/bin/bash: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=7a6408ba82a2d86dd98f1f75ac8edcb695f6fd60, for GNU/Linux 3.2.0, stripped

The output does not match x86_64, the string probed by the bash script. Edit: to clarify: the issue here is that it probes against the loader path, not the architecture reported by file.

Please note that this is not an imminent problem since I need to use the Alpine containerized build environment anyway due to the very simplistic build scripts. However, the chosen solution is not portable in any way.

By the way, x86-64 would be working on both systems. However, I'd rather use a dedicated tool like uname. Unfortunately, busybox's implementation doesn't support -p properly in containers, it returns unknown there.

主要言語
C
スター
74
フォーク
38
平均マージ
3時間 31分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AppImage/type2-runtime のほかの issue

AppImage/type2-runtime の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。