[Cerowrt-devel] Cerowrt build helper script

Dave Taht dave.taht at gmail.com
Sun Jul 20 12:44:08 EDT 2014


cerowrt-next repo was long ago superceded by cerowrt-3.10

On Sun, Jul 20, 2014 at 8:49 AM, Maciej Soltysiak <maciej at soltysiak.com> wrote:
> Hi Toke,
>
> I gave it a whirl and unfortunately I have a fail report. Maybe it's
> something I'm doing wrong, but this is the full output of running git
> clone, cd to cerowrt-next, ./scripts/cerobuild.sh and make. I
> emphasized errors with ===
>
> Any ideas?
>
> Best regards,
> Maciej
>
> solt at dev2:~$ git clone https://github.com/dtaht/cerowrt-next.git
> Cloning into 'cerowrt-next'...
> remote: Reusing existing pack: 262720, done.
> remote: Total 262720 (delta 0), reused 0 (delta 0)
> Receiving objects: 100% (262720/262720), 100.37 MiB | 6.22 MiB/s, done.
> Resolving deltas: 100% (176018/176018), done.
> solt at dev2:~$ cd cerowrt-next/
> solt at dev2:~/cerowrt-next$ ./scripts/cerobuild.sh
> --- Updating packages...
> remote: Reusing existing pack: 6392, done.
> remote: Total 6392 (delta 0), reused 0 (delta 0)
> Receiving objects: 100% (6392/6392), 1.28 MiB | 524 KiB/s, done.
> Resolving deltas: 100% (2582/2582), done.
> Note: checking out '33730ba2aaa07a2e40aa6420d1e722ca7eecbb9f'.
>
> 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 performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>
>   git checkout -b new_branch_name
>
> HEAD is now at 33730ba... sqm-scripts: bump version
> remote: Counting objects: 75319, done.
> remote: Compressing objects: 100% (27818/27818), done.
> remote: Total 75319 (delta 40876), reused 75042 (delta 40635)
> Receiving objects: 100% (75319/75319), 16.88 MiB | 8.55 MiB/s, done.
> Resolving deltas: 100% (40876/40876), done.
> Note: checking out '68da3fd839d3a6adb5208e3bf411f48c5ff8d39a'.
>
> 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 performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>
>   git checkout -b new_branch_name
>
> HEAD is now at 68da3fd... [packages] debootstrap: update to 1.0.55
> remote: Counting objects: 72833, done.
> remote: Compressing objects: 100% (21419/21419), done.
> remote: Total 72833 (delta 46524), reused 68880 (delta 43175)
> Receiving objects: 100% (72833/72833), 15.28 MiB | 4.01 MiB/s, done.
> Resolving deltas: 100% (46524/46524), done.
> Note: checking out 'a450fbde0326eb6bf74d47d8ef307fcd9a826d26'.
>
> 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 performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>
>   git checkout -b new_branch_name
>
> HEAD is now at a450fbd... freifunk altmark new config
> remote: Reusing existing pack: 2941, done.
> remote: Counting objects: 4, done.
> remote: Compressing objects: 100% (4/4), done.
> remote: Total 2945 (delta 0), reused 0 (delta 0)
> Receiving objects: 100% (2945/2945), 878.60 KiB | 587 KiB/s, done.
> Resolving deltas: 100% (965/965), done.
> Note: checking out '0e4201a983df967e88e6ce5451f5f5f99bab2370'.
>
> 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 performing another checkout.
>
> If you want to create a new branch to retain commits you create, you may
> do so (now or later) by using -b with the checkout command again. Example:
>
>   git checkout -b new_branch_name
>
> HEAD is now at 0e4201a... Merge pull request #12 from
> openwrt-routing/nds-optional-imq
> Updating feed 'packages' from 'git://git.openwrt.org/packages.git' ...
> Cloning into './feeds/packages'...
> remote: Counting objects: 3869, done.
> remote: Compressing objects: 100% (3279/3279), done.
> remote: Total 3869 (delta 128), reused 2521 (delta 64)
> Receiving objects: 100% (3869/3869), 3.17 MiB, done.
> Resolving deltas: 100% (128/128), done.
> Create index file './feeds/packages.index'
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === make: *** No rule to make target `prepare-mk'.  Stop. ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> ERROR: please fix feeds/packages/lang/perl-html-parser/Makefile - see
> logs/feeds/packages/lang/perl-html-parser/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-html-tree/Makefile - see
> logs/feeds/packages/lang/perl-html-tree/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-dbi/Makefile - see
> logs/feeds/packages/lang/perl-dbi/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-www/Makefile - see
> logs/feeds/packages/lang/perl-www/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-test-harness/Makefile - see
> logs/feeds/packages/lang/perl-test-harness/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-lockfile-simple/Makefile -
> see logs/feeds/packages/lang/perl-lockfile-simple/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-compress-bzip2/Makefile -
> see logs/feeds/packages/lang/perl-compress-bzip2/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-www-curl/Makefile - see
> logs/feeds/packages/lang/perl-www-curl/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-html-tagset/Makefile - see
> logs/feeds/packages/lang/perl-html-tagset/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-net-telnet/Makefile - see
> logs/feeds/packages/lang/perl-net-telnet/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-uri/Makefile - see
> logs/feeds/packages/lang/perl-uri/dump.txt for details
> ERROR: please fix feeds/packages/lang/perl-www-mechanize/Makefile -
> see logs/feeds/packages/lang/perl-www-mechanize/dump.txt for details
> Collecting package info: done
> Updating feed 'luci' from 'git://nbd.name/luci.git' ...
> Cloning into './feeds/luci'...
> remote: Counting objects: 3219, done.
> remote: Compressing objects: 100% (2376/2376), done.
> remote: Total 3219 (delta 1034), reused 1932 (delta 307)
> Receiving objects: 100% (3219/3219), 3.55 MiB | 2.66 MiB/s, done.
> Resolving deltas: 100% (1034/1034), done.
> Create index file './feeds/luci.index'
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === make: *** No rule to make target `prepare-mk'.  Stop. ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> Collecting package info: done
> Updating feed 'routing' from 'git://github.com/openwrt-routing/packages.git' ...
> Cloning into './feeds/routing'...
> remote: Counting objects: 230, done.
> remote: Compressing objects: 100% (196/196), done.
> remote: Total 230 (delta 11), reused 168 (delta 6)
> Receiving objects: 100% (230/230), 185.97 KiB, done.
> Resolving deltas: 100% (11/11), done.
> Create index file './feeds/routing.index'
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === make: *** No rule to make target `prepare-mk'.  Stop. ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> Collecting package info: done
> Updating feed 'telephony' from
> 'http://feeds.openwrt.nanl.de/openwrt/telephony.git' ...
> Cloning into './feeds/telephony'...
> remote: Counting objects: 172, done.
> remote: Compressing objects: 100% (154/154), done.
> remote: Total 172 (delta 19), reused 43 (delta 1)
> Receiving objects: 100% (172/172), 109.11 KiB, done.
> Resolving deltas: 100% (19/19), done.
> Create index file './feeds/telephony.index'
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> === make: *** No rule to make target `prepare-mk'.  Stop. ===
> === grep: /home/solt/cerowrt-next/.config: No such file or directory ===
> Collecting package info: done
> --- Updating env from cerofiles...
> Initialized empty Git repository in /home/solt/cerowrt-next/env/.git/
> Switched to a new branch 'cerobuild'
> warning: no common commits
> remote: Reusing existing pack: 1122, done.
> remote: Total 1122 (delta 0), reused 0 (delta 0)
> Receiving objects: 100% (1122/1122), 234.85 KiB | 271 KiB/s, done.
> Resolving deltas: 100% (596/596), done.
> From https://github.com/dtaht/cerofiles-next
>  * [new branch]      cerowrt-next -> cerofiles/cerowrt-next
>  * [new branch]      master     -> cerofiles/master
>  * [new tag]         cerowrt-3.10.28-4 -> cerowrt-3.10.28-4
> From https://github.com/dtaht/cerofiles-next
>  * [new tag]         cerowrt-3.10.10-1 -> cerowrt-3.10.10-1
>  * [new tag]         cerowrt-3.10.17-3 -> cerowrt-3.10.17-3
>  * [new tag]         cerowrt-3.10.17-6 -> cerowrt-3.10.17-6
>  * [new tag]         cerowrt-3.10.24-8 -> cerowrt-3.10.24-8
>  * [new tag]         cerowrt-3.10.26-7 -> cerowrt-3.10.26-7
>  * [new tag]         cerowrt-3.7.2-1 -> cerowrt-3.7.2-1
>  * [new tag]         cerowrt-3.7.5-2 -> cerowrt-3.7.5-2
>  * [new tag]         cerowrt-3.8.13-7 -> cerowrt-3.8.13-7
>  * [new tag]         cerowrt-3.8.6-3 -> cerowrt-3.8.6-3
>  * [new tag]         cerowrt-3.8.6-4 -> cerowrt-3.8.6-4
>  * [new tag]         cerowrt-3.8.8-4 -> cerowrt-3.8.8-4
> === fatal: 2fdb9612e9b0f611ac5870b1461a0ff400b18acc - not something we
> can merge ===
> ===  --- Unable to merge cerofiles ===
> --- Installing packages...
> ===  cat: env/override.list: No such file or directory ===
> ===  WARNING: no package to uninstall ===
> ===  cat: env/override.list: No such file or directory ===
> ===  make: *** No rule to make target `prepare-tmpinfo'.  Stop. ===
> === Cannot open './tmp/.packageinfo': No such file or directory ===
> ===  Ignoring feed 'cero' - index missing ===
> === cat: env/packages.list: No such file or directory ===
> === make: *** No rule to make target `prepare-tmpinfo'.  Stop. ===
> === Cannot open './tmp/.packageinfo': No such file or directory ===
> === Ignoring feed 'cero' - index missing ===
> --- Not overwriting existing .config
> --- Build updated. Run make to build.
> solt at dev2:~/cerowrt-next$ make
> === Makefile:8: /rules.mk: No such file or directory ===
> === Makefile:26: /package.mk: No such file or directory ===
> === /bin/sh: 1: md5s: not found ===
> === grep: /.config: No such file or directory ===
> === make: *** No rule to make target `/package.mk'.  Stop. ===
>
> On Sun, Jun 30, 2013 at 11:33 PM, Toke Høiland-Jørgensen <toke at toke.dk> wrote:
>> Hey everyone
>>
>> I think it's past time I introduce my build helper script for cerowrt to
>> the list. It's meant to be an easy way to set up a build environment
>> that matches the releases cero builds to do your own experimentation
>> and/or customisations on.
>>
>> The script resides in the cerowrt-next repository on Github, so the
>> first step is to clone that from
>> https://github.com/dtaht/cerowrt-next.git
>>
>> Once a clone of the repository is obtained, the build script lives in
>> the scripts/ dir and is called cerobuild.sh. To just set up a build
>> environment, simply run it from the root of the checkout; that will
>> clone the auxiliary repositories containing the packages and filesystem,
>> and check out the right revisions, link things into the right places and
>> copy over the config. Basically making the whole thing ready to run
>> 'make'.
>>
>> By default, the package repositories are stored in the dl/ subfolder of
>> the cerowrt checkout, and the filesystem is stored in the env/ subfolder
>> (which is also the upstream openwrt defaults). There's a bit of help
>> From the script if it's run with a -h parameter.
>>
>> After the first run, the script creates a hidden config file, which will
>> make it do its best on subsequent runs to update to the current version
>> without disturbing any customisations made to the repository.
>>
>> Updates come from the main cerowrt repository, and have to be pulled
>> manually. The script uses some helper files stored in the repository to
>> keep the checkouts of the auxiliary repositories in sync. Things have a
>> tendency to break if the upstream package repositories get too out of
>> sync with the main repository content, which these files are meant to
>> remedy. The caveat is that they have to be updated (semi-)manually which
>> is not always done (bugging Dave and me to remember might help on this
>> account). Passing the -H parameter to the script will update all
>> auxiliary repositories to their current HEADs, which might work better
>> in that case. Feel free to experiment.
>>
>> Another caveat is that the updated version of the script (which is a bit
>> more benign in its default invocation) is only in the current git HEAD.
>> I.e. while the script itself has existed for some months, older checkout
>> versions (such as the tagged revisions) will have the old version, so
>> bear this in mind if building older versions. My hope is that as the
>> script matures, and the updating of the revision files becomes better
>> integrated into the release process, that it will be possible to
>> check out any tagged version and use the script to get a build that is
>> for all intents and purposes identical to the binary version released by
>> Dave. However, I don't thing we're quite there yet.
>>
>> I hope the above explanation (and the script itself) is somewhat
>> comprehensible and maybe even useful. Of course some familiarity with
>> the openwrt build process helps (see the wiki at openwrt.org), but
>> hopefully this script will make it easier to get started. As always,
>> comments, questions, bug reports and patches are very welcome. :)
>>
>> Cheers,
>>
>> -Toke
>>
>> _______________________________________________
>> Cerowrt-devel mailing list
>> Cerowrt-devel at lists.bufferbloat.net
>> https://lists.bufferbloat.net/listinfo/cerowrt-devel
>>
> _______________________________________________
> Cerowrt-devel mailing list
> Cerowrt-devel at lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cerowrt-devel



-- 
Dave Täht

NSFW: https://w2.eff.org/Censorship/Internet_censorship_bills/russell_0296_indecent.article



More information about the Cerowrt-devel mailing list