This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
developer_documentation [2019/02/14 06:44] ispyisail [Make Custom] |
developer_documentation [2020/12/21 09:09] lantis [Building Older Versions of Gargoyle] |
||
---|---|---|---|
Line 597: | Line 597: | ||
===== Building Older Versions of Gargoyle ===== | ===== Building Older Versions of Gargoyle ===== | ||
- | Due to changes in upstream infrastructure, | + | Due to changes in upstream infrastructure, |
- | The following is a patch to restore | + | The latest commits on each branch back to 1.6 have all been fixed to build as of November 2020 |
- | <code diff> | + | |
- | --- a/ | + | |
- | +++ b/ | + | |
- | @@ -21,15 +21,17 @@ set_version_variables() | + | |
- | + | ||
- | | + | |
- | | + | |
- | - branch_id=" | + | |
- | + branch_id=" | + | |
- | | + | |
- | - branch_packages_path=" | + | |
- | + branch_packages_path=" | + | |
- | + | ||
- | + | ||
- | - # set svn revision number to use | + | |
- | - # you can set this to an alternate revision | + | |
- | + # set precise commit in repo to use | + | |
- | + # you can set this to an alternate commit | + | |
- | # or empty to checkout latest | + | |
- | - rnum=46817 | + | |
- | + openwrt_commit=" | + | |
- | + openwrt_abbrev_commit=$( echo " | + | |
- | + | + | |
- | + | ||
- | #set date here, so it's guaranteed the same for all images | + | |
- | | + | |
- | @@ -82,7 +84,7 @@ create_gargoyle_banner() | + | |
- | | + | |
- | | + | |
- | | + | |
- | - local openwrt_revision=" | + | |
- | + local openwrt_cmt=" | + | |
- | | + | |
- | | + | |
- | + | ||
- | @@ -92,7 +94,7 @@ create_gargoyle_banner() | + | |
- | fi | + | |
- | + | ||
- | | + | |
- | - local middle_line=$(printf "| %-26s| %-35s|" | + | |
- | + local middle_line=$(printf "| %-26s| %-35s|" | + | |
- | | + | |
- | + | ||
- | cat << ' | + | |
- | @@ -198,7 +200,6 @@ distrib_init () | + | |
- | fi | + | |
- | #git log --since=5/ | + | |
- | git log $(git describe --abbrev=0 --tags)..$(git log -1 --pretty=format: | + | |
- | - svn log -r " | + | |
- | cp -fR " | + | |
- | } | + | |
- | + | ||
- | @@ -334,9 +335,9 @@ fi | + | |
- | + | ||
- | | + | |
- | | + | |
- | -if [ -n " | + | |
- | - openwrt_src_dir=" | + | |
- | - openwrt_package_dir=" | + | |
- | +if [ -n " | + | |
- | + openwrt_src_dir=" | + | |
- | + openwrt_package_dir=" | + | |
- | | + | |
- | rm -rf " | + | |
- | rm -rf " | + | |
- | @@ -345,23 +346,22 @@ fi | + | |
- | + | ||
- | # | + | |
- | if [ ! -d " | + | |
- | - revision="" | + | |
- | - if [ -n " | + | |
- | - revision=" | + | |
- | - fi | + | |
- | echo " | + | |
- | rm -rf " | + | |
- | if [ " | + | |
- | - svn checkout $revision svn:// | + | |
- | + git clone git:// | + | |
- | | + | |
- | - svn checkout $revision svn:// | + | |
- | + git clone git:// | + | |
- | fi | + | |
- | - if [ ! -d " | + | |
- | + if [ ! -d " | + | |
- | | + | |
- | | + | |
- | fi | + | |
- | - cd " | + | |
- | - find . -name " | + | |
- | + if [ -n " | + | |
- | + cd " | + | |
- | + git checkout " | + | |
- | + fi | + | |
- | + | + | |
- | cd " | + | |
- | mv " | + | |
- | fi | + | |
- | @@ -475,14 +475,10 @@ for target in $targets ; do | + | |
- | if [ " | + | |
- | if [ ! -d " | + | |
- | + | ||
- | - if [ " | + | |
- | - svn checkout $revision svn:// | + | |
- | - else | + | |
- | - svn checkout $revision " | + | |
- | - fi | + | |
- | + git clone git:// | + | |
- | + | ||
- | cd " | + | |
- | - find . -name " | + | |
- | + | + | |
- | | + | |
- | | + | |
- | | + | |
- | @@ -507,10 +503,9 @@ for target in $targets ; do | + | |
- | + | ||
- | + | ||
- | + | ||
- | - #enter build directory and make sure we get rid of all those pesky .svn files, | + | |
- | - #and any crap left over from editing | + | |
- | + # | + | |
- | + #any crap left over from editing | + | |
- | cd " | + | |
- | - find . -name " | + | |
- | find . -name " | + | |
- | find . -name " | + | |
- | + | ||
- | @@ -534,7 +529,7 @@ for target in $targets ; do | + | |
- | + | ||
- | + | ||
- | | + | |
- | - create_gargoyle_banner " | + | |
- | + create_gargoyle_banner " | + | |
- | + | ||
- | | + | |
- | + | ||
- | @@ -551,7 +546,7 @@ for target in $targets ; do | + | |
- | + | ||
- | + | ||
- | | + | |
- | - create_gargoyle_banner " | + | |
- | + create_gargoyle_banner " | + | |
- | + | ||
- | | + | |
- | + | ||
- | @@ -565,8 +560,9 @@ for target in $targets ; do | + | |
- | + | ||
- | | + | |
- | | + | |
- | - package_files=$(find bin -name " | + | |
- | - index_files=$(find bin -name " | + | |
- | + package_base_dir=$(find bin -name " | + | |
- | + package_files=$(find " | + | |
- | + index_files=$(find " | + | |
- | if [ -n " | + | |
- | + | ||
- | for pf in $package_files ; do | + | |
- | @@ -643,7 +639,7 @@ for target in $targets ; do | + | |
- | + | ||
- | + | ||
- | | + | |
- | - create_gargoyle_banner " | + | |
- | + create_gargoyle_banner " | + | |
- | + | ||
- | + | ||
- | | + | |
- | @@ -674,8 +670,9 @@ for target in $targets ; do | + | |
- | | + | |
- | | + | |
- | | + | |
- | - package_files=$(find bin -name " | + | |
- | - index_files=$(find bin -name " | + | |
- | + package_base_dir=$(find bin -name " | + | |
- | + package_files=$(find " | + | |
- | + index_files=$(find " | + | |
- | if [ -n " | + | |
- | | + | |
- | | + | |
- | @@ -684,7 +681,10 @@ for target in $targets ; do | + | |
- | | + | |
- | | + | |
- | | + | |
- | - | + | |
- | + | + | |
- | + | + | |
- | + | + | |
- | + | + | |
- | if [ " | + | |
- | | + | |
- | | + | |
- | @@ -719,3 +719,4 @@ for target in $targets ; do | + | |
- | cd " | + | |
- | | + | |
- | + | ||
- | + | + | |
- | --- /dev/null | + | |
- | +++ b/ | + | |
- | @@ -0,0 +1,13 @@ | + | |
- | +--- a/ | + | |
- | ++++ b/ | + | |
- | +@@ -165,8 +165,8 @@ foreach my $mirror (@ARGV) { | + | |
- | + push @extra, " | + | |
- | + } | + | |
- | + foreach my $dir (@extra) { | + | |
- | +- push @mirrors, " | + | |
- | +- push @mirrors, " | + | |
- | ++ push @mirrors, " | + | |
- | ++ push @mirrors, " | + | |
- | + } | + | |
- | + } elsif ($mirror =~ / | + | |
- | + push @mirrors, " | + | |
- | </ | + | |
- | The same patch should work for earlier versions including 1.6.2 with some modifications | + |