libremesh / lime-packages

LibreMesh packages configuring OpenWrt for wireless mesh networking
https://libremesh.org/
GNU Affero General Public License v3.0
276 stars 95 forks source link

lime-docs: update PKG_SOURCE_URL #1053

Closed a-gave closed 6 months ago

a-gave commented 9 months ago

This update the PKG_SOURCE_URL and PKG_SOURCE_PROTO of lime-docs. It seems something is changed from github.com's side:

The bug is preventing v2023.1-rc2 to be build. I made sure that this is the only bug that cause a build failure as now the build for v2023.1-rc2 is going on.

Error Details
SHELL= flock /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/tmp/.lime-docs-2023-09-17-1694972618.tar.xz.flock -c '     echo "Checking out files from the svn repository..."; mkdir -p /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/tmp/dl && cd /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/tmp/dl && rm -rf lime-docs-2023-09-17-1694972618 && [ \! -d lime-docs-2023-09-17-1694972618 ] && ( svn help export | grep -q trust-server-cert && svn export --non-interactive --trust-server-cert -rHEAD https://github.com/libremesh/lime-web/trunk/docs lime-docs-2023-09-17-1694972618 || svn export --non-interactive -rHEAD https://github.com/libremesh/lime-web/trunk/docs lime-docs-2023-09-17-1694972618 ) && echo "Packing checkout..." && export TAR_TIMESTAMP="" && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c lime-docs-2023-09-17-1694972618 |  xz -zc -7e > /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/tmp/dl/lime-docs-2023-09-17-1694972618.tar.xz && mv /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/tmp/dl/lime-docs-2023-09-17-1694972618.tar.xz /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/dl/ && rm -rf lime-docs-2023-09-17-1694972618;     '
Checking out files from the svn repository...
/bin/sh: 1: svn: not found
/bin/sh: 1: svn: not found
make[3]: *** [Makefile:87: /home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/dl/lime-docs-2023-09-17-1694972618.tar.xz] Error 127
make[3]: Leaving directory '/home/antennine/openwrt_build/stable/libremesh_2023.1-rc2-ow22/openwrt_buildroot_22.03.5/feeds/libremesh/packages/lime-docs'
time: package/feeds/libremesh/lime-docs/compile#0.12#0.03#0.13
    ERROR: package/feeds/libremesh/lime-docs failed to build.

codecov-commenter commented 9 months ago

Codecov Report

Merging #1053 (badf612) into master (bfb7e2f) will not change coverage. The diff coverage is n/a.

:exclamation: Current head badf612 differs from pull request most recent head 02673f0. Consider uploading reports for the commit 02673f0 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff           @@
##           master    #1053   +/-   ##
=======================================
  Coverage   79.65%   79.65%           
=======================================
  Files          53       53           
  Lines        4542     4542           
=======================================
  Hits         3618     3618           
  Misses        924      924           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

ilario commented 9 months ago

Can it be that you don't have SVN installed? On my pc it still works: svn checkout https://github.com/libremesh/lime-web/trunk/docs

I decided to use svn as git did not allow me to download only one folder of the repository. But it is also ok to download the whole website with git and then copy to the router only the docs folder.

Did you try to compile with the proposed Makefile? It is possible that you also need to change these lines replacing docs with libremesh.github.io/docs, but I did not check:

    $(INSTALL_DATA) $(PKG_BUILD_DIR)/docs/en_*.txt $(1)/www/docs/
[...]
    $(INSTALL_DATA) $(PKG_BUILD_DIR)/docs/it_*.txt $(1)/www/docs/
a-gave commented 9 months ago

Can it be that you don't have SVN installed? On my pc it still works: svn checkout https://github.com/libremesh/lime-web/trunk/docs

I apologize svn wasn't installed. I'm closing it as you say svn downloads also less stuff.

ilario commented 6 months ago

@a-gave can you re-propose this change?

Now Github actually stopped offering the SVN access.

Thanks to @LaneaLucy for reporting this.