Package Details: freetz-ng-tools-git r23089.ea5ac032a-1

Git Clone URL: https://aur.archlinux.org/freetz-ng-tools-git.git (read-only, click to copy)
Package Base: freetz-ng-tools-git
Description: Development tools of the Freetz-NG project
Upstream URL: https://freetz-ng.github.io/freetz-ng/
Keywords: avm extraction firmware freetz fritz openwrt
Licenses: GPL2
Conflicts: freetz-ng-tools, freetz-tools, freetz-tools-git
Provides: freetz-ng-tools, freetz-tools
Replaces: freetz-tools-git
Submitter: eomanis
Maintainer: eomanis
Last Packager: eomanis
Votes: 1
Popularity: 0.000000
First Submitted: 2021-05-19 23:02 (UTC)
Last Updated: 2024-04-20 22:35 (UTC)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2025-05-03 12:32 (UTC)

You should update the license identifier to be SPDX compliant:

freetz-ng-tools-git E: GPL2 is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.

Also, libz.so=1-64 seems to be needed to be added to the depends array:

freetz-ng-tools-git E: Dependency zlib-ng-compat detected and not included (libraries ['usr/lib/libz.so.1'] needed in files ['usr/bin/unsquashfs4-avm-le', 'usr/bin/unsquashfs4-avm-be', 'usr/bin/lzma2eva', 'usr/bin/mksquashfs3-multi', 'usr/bin/mksquashfs4-avm-be', 'usr/bin/unsquashfs3-multi', 'usr/bin/mksquashfs4-avm-le'])

Regards and thanks for this package!

dreieck commented on 2025-05-03 12:03 (UTC)

This PKGBUILD downloads stuff in build(). This should not happen -- after preparing the sources, build() and package() should be able to run in an offline environment.

Can you move the downloads, that you cannot incorporate into the source array, into prepare()?

Regards and thanks for this package!

==> Starting build()...
Freetz-NG 25925-031b31adf9 master 2025-05-03
.....................................................................................................
[...]
---> tools/kconfig-host ...
downloading ... 
--2025-05-03 13:59:40--  https://freetz-ng.root.sx/kconfig-v6.14.tar.xz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving freetz-ng.root.sx (freetz-ng.root.sx)... 129.159.24.184, 2603:c020:801c:2669:c1ea:e8c6:e49d:a354
Connecting to freetz-ng.root.sx (freetz-ng.root.sx)|129.159.24.184|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 134396 (131K) [application/octet-stream]
Saving to: 'dl/kconfig-v6.14.tar.xz'

dl/kconfig-v6.14.tar.xz                           100%[==========================================================================================================>] 131.25K  --.-KB/s    in 0.1s    

2025-05-03 13:59:42 (1.16 MB/s) - 'dl/kconfig-v6.14.tar.xz' saved [134396/134396]

Download succeeded - "https://freetz-ng.root.sx/kconfig-v6.14.tar.xz"  ->  saved to folder "dl"
Checksum verified for dl/kconfig-v6.14.tar.xz: SHA256:=1bbcbefd6f4551101437fe7ca93e46962a0e1633c6f2e62f35ff1a46edd695f3
[...]
---> tools/tar-host ... 
downloading ... 
[...]
---> tools/busybox-host ... 
downloading ... 
[...]
---> tools/pkgconf-host ... 
downloading ... 
[...]
[ ... and more of that ...]

eomanis commented on 2024-09-09 23:07 (UTC)

I am out of my depth here regarding the libelf-0.7.0 error but suspect an upstream problem.

At the very least it has been mentioned in an upstream discussion [1] albeit no solution has been posted. The person having the problem solved it by building on a different Linux distribution, in that particular case Debian.

[1] https://github.com/Freetz-NG/freetz-ng/discussions/1020#discussioncomment-10217283

dreieck commented on 2024-09-09 09:35 (UTC)

I get this error, too:

[...]
checking for selinux/selinux.h... yes
checking for gcc option to enable large file support... none needed
configure: error: libelf does not properly convert Elf64_Sxword quantities.
If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch.

ERROR: 
make[1]: *** [make/host-tools/prelink-host/prelink-host.mk:22: /var/cache/makepkg/build/freetz-ng-tools-git/src/freetz-ng-tools/source/host-tools/prelink-20130503/.configured] Terminated
make: *** [Makefile:46: envira] Terminated
==> ERROR: A failure occurred in build().

Regards!

PaulchenPlump commented on 2024-08-04 09:09 (UTC) (edited on 2024-08-04 09:12 (UTC) by PaulchenPlump)

actual build fails with message:

configure: error: libelf does not properly convert Elf64_Sxword quantities.
If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch.

ERROR: 
make[1]: *** [make/host-tools/prelink-host/prelink-host.mk:22: /home/username/.cache/yay/freetz-ng-tools-git/src/freetz-ng-tools/source/host-tools/prelink-20130503/.configured] Terminated
make: *** [Makefile:46: envira] Beendet
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
 -> Fehler beim Erstellen: freetz-ng-tools-git-exit status 4
 -> Die folgenden Pakete konnten nicht installiert werden. Ein manueller Eingriff ist erforderlich:
freetz-ng-tools-git - exit status 4

dreieck commented on 2024-04-18 21:50 (UTC)

To the PKGBUILD needs to be added
options+=('!lto'),
otherwise build fails while linking on environments that have LTO enabled by default:

/usr/bin/ld: /tmp/ccHbnRsl.ltrans0.ltrans.o: in function `dir_scan':
<artificial>:(.text+0x84e8): undefined reference to `free_dir_entry'
/usr/bin/ld: <artificial>:(.text+0x85ab): undefined reference to `free_dir_entry'
/usr/bin/ld: <artificial>:(.text+0x8633): undefined reference to `create_dir_entry'
/usr/bin/ld: <artificial>:(.text+0x8dc3): undefined reference to `free_dir_entry'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:244: mksquashfs] Error 1

Regards!