The ibus-cangjie suite consists of 3 source packages: libcangjie, pycangjie and ibus-cangjie, pycangjie depends on libcangjie and ibus-cangjie depends on the other two. When you use pbuilder or its wrappers (I mainly use pbuilder-dist) to build pycangjie or ibus-cangjie, you have to make sure the depended packages are in the pbuilder chroot somehow otherwise the build will fail.
I used to build the package in the lowest level first, in this case libcangjie, then login to the pbuilder chroot with the --save-after-login argument and manually copy the built packages to where the chroot is mounted, run dpkg to install the packages, then exit the chroot. Now libcangjie is installed the chroot and so the build dependencies of pycangjie can be satisfied. This is simple, but requires quite a lot of typing.
There is a simpler way. As pbuilder puts all its built packages in a single directory, we can make the chroot use it as an apt source.
Assume packages built by your pbuilder is located in /home/ubuntu/pbuilder/sid_result, and pbuilder hooks are stored in /var/cache/pbuilder/hook.d. Now, update your .pbuilderrc like this:
[code gutter=”false”]
# cat ~/.pbuilderrc
HOOKDIR="/var/cache/pbuilder/hook.d"
BINDMOUNTS="/home/ubuntu/pbuilder/sid_result"
[/code]
Then put a new hook script to generate a Packages file:
[code gutter=”false”]
# cat /var/cache/pbuilder/hook.d/D70results
cd /home/ubuntu/pbuilder/sid_result
/usr/bin/dpkg-scanpackages . /dev/null > /home/ubuntu/pbuilder/sid_result/Packages
/usr/bin/apt-get update
[/code]
To verify it is set up correctly, login to the pbuilder chroot with the --override-config and --othermirror arguments and check if /etc/apt/sources.list is updated, OTHERMIRROR parameter in .pbuilderrc does not work for me so I can only use --othermirror, not nice as you need to supply it every time you run pbuilder:
[code gutter=”false”]
# pbuilder-dist testing login –override-config –othermirror "deb [trusted=yes] file:///home/ubuntu/pbuilder/sid_result ./"
# grep -r home /etc/apt
/etc/apt/sources.list:deb [trusted=yes] file:///home/ubuntu/pbuilder/sid_result ./
[/code]
If everything goes well, build your package with the --override-config and --othermirror arguments like what you just did for the login operation:
[code gutter=”false”]
# pbuilder-dist testing build –override-config –othermirror "deb [trusted=yes] file:///home/ubuntu/pbuilder/sid_result ./" <.dsc-file>
[/code]
I am in fact thankful to the owner of this website who has shared this fantastic piece of writing at
at this time.
Greetings from Florida! I’m bored at work so I decided to browse your
blog on my iphone during lunch break. I love the knowledge you provide here
and can’t wait to take a look when I get home. I’m shocked
at how quick your blog loaded on my mobile ..
I’m not even using WIFI, just 3G .. Anyways, very good site!
Woah! I’m really loving the template/theme of this
blog. It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between user friendliness
and visual appeal. I must say that you’ve done a fantastic job with this.
Additionally, the blog loads extremely quick for me on Safari.
Exceptional Blog!
I was wondering if you ever thought of changing
the page layout of your blog? Its very well written; I love
what youve got to say. But maybe you could a little more in the
way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two pictures.
Maybe you could space it out better?
There is definately a great deal to know about this subject.
I love all the points you have made.
Complete Ragnarok Online skill database with 1,100+ skills including SP costs, cast
times, cooldowns, damage formulas, and job class
requirements. Search by name, job, or skill type. View which monsters and items use
each skill. Essential reference for ragnarok private server players and developers.