Ticket #1535 (closed wish: fixed)

erstellt vor 8 Monate

zuletzt geändert vor 3 Monate

busybox-tools CleanUp

Erstellt von: dileks Verantwortlicher: cuma
Priorität: normal Meilenstein: freetz-1.3
Komponente: tools Version: devel
Kopie: markuschen Product Id:
Firmware Version:

Beschreibung

In this ticket I would like to collect all-about busybox-tools cleanup (starting with r7718).

A little bit of documentation would appreciated, not only in the SCM comments?
Personally, I would like to see like in Linux-kernel development a "Documentation" folder in freetz root-dir.
What about a "Documentation/busybox-cleanup.txt"? For example: As far as I can see, the decompressors are now handled via busybox (short: bb).

In r7720 I see a little mistake in fwmod:

4	TAR_TOOL="tar"
174	UNTAR="$TAR"

Should be UNTAR=""${TOOLS_DIR}/${TAR_TOOL}"?

File ".build-prerequisites" could be listed/sorted alphabetically for better human-readability?

Anhänge

0001-fwmod-Fix-comment-for-UNTAR.patch (748 Byte) - hinzugefügt von dileks vor 8 Monate.
[PATCH] fwmod: Fix comment for $UNTAR
0001-fwmod-Fix-comment-for-usage-of-UNTAR-see-1535.patch (808 Byte) - hinzugefügt von dileks vor 8 Monate.
[PATCH] fwmod: Fix comment for usage of $UNTAR (see #1535)
0001-make-Makefile.in-Fix-comment-for-usage-of-unzip.patch (876 Byte) - hinzugefügt von dileks vor 8 Monate.
[PATCH] make/Makefile.in: Fix comment for usage of unzip
0001-freetz_download-Temporarily-use-system-s-md5sum-see-.patch (1.3 KB) - hinzugefügt von dileks vor 8 Monate.
[PATCH] freetz_download: Temporarily use system's md5sum (see #1535)

Änderungshistorie

comment:1 Vor 8 Monate geändert durch ralf

Eine Datei als Dokumentation zu einem Vorgang, der (hoffentlich) bald abgeschlossen ist? Da finde ich das Ticket-System doch sinnvoller.

Dokumentation ist sinnvoller um Dinge zu beschreiben, die vermutlich auch länger so bleiben, ob es jetzt in einem Verzeichnis Documentation oder anderswo steht. Das Wiki ist z.B. auch ein geeigneter Ort für Dokumentation. Da steht sogar schon einiges.

Vor 8 Monate geändert durch dileks

[PATCH] fwmod: Fix comment for $UNTAR

comment:2 Vor 8 Monate geändert durch dileks

I rechecked fwmod file and was wrong…

154:TAR_TOOL="tar"
170:TAR="${TOOLS_DIR}/${TAR_TOOL}"
174:UNTAR="$TAR"

comment:3 Vor 8 Monate geändert durch dileks

We had several problems by using de-/compressors from bb or from local system, so such a change should surely be documented, but where? README? CHANGELOG? Wiki is a wiki and can not be shipped with a final release tarball. The whole project lacks of docs (not speaking of English docs), sorry if I am too honest.

comment:4 Vor 8 Monate geändert durch markuschen

See [7725]

Zuletzt geändert vor 8 Monate von markuschen (vorher) (Diff)

comment:5 Vor 8 Monate geändert durch ralf

Welche Probleme gab es denn mit Programmen von BB? Gab es einen Bug-Report an die BB-Liste darüber?

comment:6 Antwort: ↓ 12 Vor 8 Monate geändert durch oliver

er13:

  • busybox tar: kein pax (aka POSIX 1003.1-2001) tar format unterstützt, s. r7390 (transmission-tarball kann nicht entpackt werden)
  • busybox unzip: keine File-Permissions unterstützt, s. r7199 (cyassl-Scripte sind nach dem Entpacken nicht ausführbar)

Vor 8 Monate geändert durch dileks

[PATCH] fwmod: Fix comment for usage of $UNTAR (see #1535)

Vor 8 Monate geändert durch dileks

[PATCH] make/Makefile.in: Fix comment for usage of unzip

comment:7 Vor 8 Monate geändert durch dileks

With r7726:

Download succeeded - "https://github.com/lacombar/kconfig/tarball/kconfig-sa-2.6.39"  ->  saved to folder "dl"
tools/freetz_download: line 205: tools/md5sum: No such file or directory
MD5 mismatch for dl/kconfig-sa-2.6.39: 609c3981f2466620ee42fe0bfa33388b

Use host's md5sum in freetz_download?

Vor 8 Monate geändert durch dileks

[PATCH] freetz_download: Temporarily use system's md5sum (see #1535)

comment:8 Vor 8 Monate geändert durch markuschen

md5sum is a busybox applet, maybe "make busybox-tools-dirclean" should help

comment:9 Vor 8 Monate geändert durch dileks

This was with a fresh checkout trunk, at the point kconfig(-sa) is downloaded & checked, there is no bb built before, so its own md5sum binary can not be used :-)

Zuletzt geändert vor 8 Monate von dileks (vorher) (Diff)

comment:10 Vor 8 Monate geändert durch markuschen

In [7727]:

  • use systems md5sum if busybox is not yet build, refs #1535
  • thanks dileks_ for reporting this

comment:11 Vor 8 Monate geändert durch markuschen

In [7728]:

  • skip MD5 check if no md5sum is available (busybox aplet or system md5sum), refs #1535

comment:12 als Antwort auf: ↑ 6 Vor 8 Monate geändert durch ralf

Replying to oliver:

  • busybox unzip: keine File-Permissions unterstützt, s. r7199 (cyassl-Scripte sind nach dem Entpacken nicht ausführbar)

Zumindest die File-Permissions sind da, wenn man im menuconfig DESKTOP auswählt.

comment:13 Vor 7 Monate geändert durch cuma

  • Meilenstein von freetz-1.2 nach freetz-1.3 geändert

comment:14 Antwort: ↓ 15 Vor 7 Monate geändert durch cuma

comment:15 als Antwort auf: ↑ 14 Vor 7 Monate geändert durch ralf

Replying to cuma:
Wie wäre es denn mit

PATH=$(dirname $0):$PATH
md5sum ...

Dann sucht die Shell automatisch nach md5sum in der richtigen Reihenfolge.

Wobei möglicherweise hier der Fehler darin lag, dass $(dirname $0) als Ergebnis . gelifert hat und nicht tools.

comment:16 Vor 7 Monate geändert durch cuma

Ich hatte das einfach aus r7727 kopiert. Beim PATH erweitern weiss ich nicht was dadurch für Probleme auftauchen können. Soll eigentlich nur temporär sein, wie lange weiss ich auch nicht :)
Kannst du aber gerne fixen

comment:17 Vor 4 Monate geändert durch oliver

Was ist hier noch zu tun? Den Vorschlag von Ralf einarbeiten?

comment:18 Vor 4 Monate geändert durch markuschen

Funktioniert jetzt wie es soll, deswegen von mir aus lassen wie es ist.

comment:19 Vor 4 Monate geändert durch cuma

Den temporären Fix könnte man wieder rausnehmen

comment:20 Vor 4 Monate geändert durch oliver

Was meinst du mit rausnehmen? Der wird doch nach wie vor benötigt, wenn wir nicht eine andere Lösung einbauen?

comment:21 Vor 4 Monate geändert durch cuma

In [7826]: use systems md5sum if busybox is not yet build, refs #1535

Mittlerweile müsste doch jeder die BusyBox inklusive md5sum Applet neu gebaut haben

—> http://freetz.org/browser/trunk/tools/make/Config.busybox#L237

Zuletzt geändert vor 4 Monate von cuma (vorher) (Diff)

comment:22 Vor 4 Monate geändert durch oliver

Für den busybox-tools-Download wird es doch immer so sein, dass kein busybox md5-Applet da ist?

comment:23 Vor 4 Monate geändert durch cuma

Da ist was dran. Dann stimmt der kommentar im Quellcode aber nicht. Ich (und Post im IPPF) meinte das mehr im Sinne von kein change_check → alte HostBusyBox? ohne md5sum

comment:24 Vor 3 Monate geändert durch cuma

  • Status von new nach closed geändert
  • Verantwortlicher auf cuma gesetzt
  • Lösung auf fixed gesetzt

In [8661]:

fix comment for md5sum (closes #1535)

Hinweis: Hilfe zur Verwendung von Tickets finden Sie in TracTickets.