Ticket #1535 (closed wish: fixed)
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
Änderungshistorie
Vor 8 Monate geändert durch dileks
- Anhang 0001-fwmod-Fix-comment-for-UNTAR.patch hinzugefügt
[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: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?
Vor 8 Monate geändert durch dileks
- Anhang 0001-fwmod-Fix-comment-for-usage-of-UNTAR-see-1535.patch hinzugefügt
[PATCH] fwmod: Fix comment for usage of $UNTAR (see #1535)
Vor 8 Monate geändert durch dileks
- Anhang 0001-make-Makefile.in-Fix-comment-for-usage-of-unzip.patch hinzugefügt
[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
- Anhang 0001-freetz_download-Temporarily-use-system-s-md5sum-see-.patch hinzugefügt
[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
comment:10 Vor 8 Monate geändert durch markuschen
In [7727]:
comment:11 Vor 8 Monate geändert durch markuschen
In [7728]:
comment:12 als Antwort auf: ↑ 6 Vor 8 Monate geändert durch ralf
comment:14 Antwort: ↓ 15 Vor 7 Monate geändert durch cuma
In [7826]:
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
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]:

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.