1 (edytowany przez kofec 2024-11-01 20:25:52)

Temat: kompilacja z repozytorium git dla 24.10 - ebusd, oscam

np: Makefile dla ebusd dla 24.10:

[openwrt_2410]$ cat feeds/packages/utils/ebusd/Makefile

include $(TOPDIR)/rules.mk

PKG_NAME:=ebusd
PKG_RELEASE:=1

PKG_SOURCE_URL:=https://github.com/john30/ebusd.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2022-11-14
PKG_SOURCE_VERSION:=bc3e6110c7f6e12d9912e09d061c9dd5f335de39
PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk

define Package/ebusd
  SECTION:=net
  CATEGORY:=Network
  TITLE:=eBUS daemon
  URL:=https://github.com/john30/ebusd
  DEPENDS:=+libpthread +librt +libstdcpp +libmosquittopp +libopenssl
endef

define Package/ebusd/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ebusd/ebusd $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tools/ebusctl $(1)/usr/bin
endef

$(eval $(call BuildPackage,ebusd))

daje wynik:

mkdir -p /home/openwrt/openwrt_2410/dl
SHELL= flock /home/openwrt/openwrt_2410/tmp/.ebusd-2022.11.14~bc3e6110.tar.zst.flock -c '       /home/openwrt/openwrt_2410/scripts/dl_github_archive.py --dl-dir="/home/openwrt/openwrt_2410/dl" --url="https://github.com/john30/ebusd.git" --version="bc3e6110c7f6e12d9912e09d061c9dd5f335de39" --subdir="ebusd-2022.11.14~bc3e6110" --source="ebusd-2022.11.14~bc3e6110.tar.zst" --hash="x" --submodules  || (        echo "Checking out files from the git repository..."; mkdir -p /home/openwrt/openwrt_2410/tmp/dl && cd /home/openwrt/openwrt_2410/tmp/dl && rm -rf ebusd-2022.11.14~bc3e6110 && [ \! -d ebusd-2022.11.14~bc3e6110 ] && git clone  https://github.com/john30/ebusd.git ebusd-2022.11.14~bc3e6110 && (cd ebusd-2022.11.14~bc3e6110 && git checkout bc3e6110c7f6e12d9912e09d061c9dd5f335de39) && export TAR_TIMESTAMP=`cd ebusd-2022.11.14~bc3e6110 && git log -1 --format='\''@%ct'\''` && echo "Generating formal git archive (apply .gitattributes rules)" && (cd ebusd-2022.11.14~bc3e6110 && git config core.abbrev 8 && git archive --format=tar HEAD --output=../ebusd-2022.11.14~bc3e6110.tar.git) && tar --ignore-failed-read -C ebusd-2022.11.14~bc3e6110 -f ebusd-2022.11.14~bc3e6110.tar.git -r .git .gitmodules 2>/dev/null && rm -rf ebusd-2022.11.14~bc3e6110 && mkdir ebusd-2022.11.14~bc3e6110 && tar -C ebusd-2022.11.14~bc3e6110 -xf ebusd-2022.11.14~bc3e6110.tar.git && (cd ebusd-2022.11.14~bc3e6110 && git submodule update --init --recursive --  && rm -rf .git .gitmodules) && echo "Packing checkout..." &&       tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c ebusd-2022.11.14~bc3e6110 |    zstd -T0 --ultra -20 -c > /home/openwrt/openwrt_2410/tmp/dl/ebusd-2022.11.14~bc3e6110.tar.zst && mv /home/openwrt/openwrt_2410/tmp/dl/ebusd-2022.11.14~bc3e6110.tar.zst /home/openwrt/openwrt_2410/dl/ && rm -rf ebusd-2022.11.14~bc3e6110; );     '
ebusd-2022.11.14~bc3e6110.tar.zst: Download from https://github.com/john30/ebusd.git failed
ebusd-2022.11.14~bc3e6110.tar.zst: Requires sha256sum for verification
Checking out files from the git repository...
Cloning into 'ebusd-2022.11.14~bc3e6110'...
remote: Enumerating objects: 18807, done.
remote: Counting objects: 100% (1492/1492), done.
remote: Compressing objects: 100% (356/356), done.
remote: Total 18807 (delta 1224), reused 1349 (delta 1135), pack-reused 17315 (from 1)
Receiving objects: 100% (18807/18807), 10.02 MiB | 6.05 MiB/s, done.
Resolving deltas: 100% (11858/11858), done.
Note: switching to 'bc3e6110c7f6e12d9912e09d061c9dd5f335de39'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at bc3e6110 use real min/max value for exp and do not check input against it
Generating formal git archive (apply .gitattributes rules)
make[2]: *** [Makefile:30: /home/openwrt/openwrt_2410/dl/ebusd-2022.11.14~bc3e6110.tar.zst] Error 2
make[2]: Leaving directory '/home/openwrt/openwrt_2410/feeds/packages/utils/ebusd'
time: package/feeds/packages/ebusd/compile#1.23#0.47#2.90
    ERROR: package/feeds/packages/ebusd failed to build.
make[1]: *** [package/Makefile:179: package/feeds/packages/ebusd/compile] Error 1
make[1]: Leaving directory '/home/openwrt/openwrt_2410'
make: *** [/home/openwrt/openwrt_2410/include/toplevel.mk:248: package/ebusd/compile] Error 2

Podobnie miałem dla oscam

2

Odp: kompilacja z repozytorium git dla 24.10 - ebusd, oscam

Bo PKG_MIRROR_HASH nie podałeś. Patrz https://github.com/obsy/packages/blob/m … m/Makefile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: kompilacja z repozytorium git dla 24.10 - ebusd, oscam

Dziala wam github ? Mnie strasznie wolno pobiera, transfery rzędu 10-20kBps i nie ściąga całych plików tylko blad wyskakuje.

Dom : router https://i.imgur.com/IuB6Zwy.png | TP-LINK T1700G-28TQ |Zyxel XGS-1210-12 | 6x Ruckus r310 unleashed  + Ruckus icx7150-c12p | Truenas scale 124TB 25Gb| Xpenology 12TB | apc smart ups 750 lcd smile 100Mb/s - 25Gb/s
Podróżne : GL.Inet MT3000  +1TB hdd
Działka : rb260gs 1j wdm 1Gb+ ruckus r310 + nb m5 + kilka kamer ip  + panel 285Wp + lifepo4 12v 60Ah .

4

Odp: kompilacja z repozytorium git dla 24.10 - ebusd, oscam

W sumie nie odczuwam na razie problemów.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.