[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#659440: bumblebee packaging



On Wed, Jan 23, 2013 at 2:24 AM, Vincent Cheng <vincentc1208@gmail.com> wrote:
[...]
> Anyways, right now I'm hitting a strange bug with the packages I
> built; dpkg just seems to hang while installing bumblebee and
> bumblebee-nvidia, i.e.:
> $ sudo dpkg -i bumblebee_3.0.1-1_amd64.deb bumblebee-nvidia_3.0.1-1_amd64.deb
> (Reading database ... 398188 files and directories currently installed.)
> Preparing to replace bumblebee 3.0.1-1 (using bumblebee_3.0.1-1_amd64.deb) ...
> [ ok ] Stopping Bumblebee daemon: bumblebeed.
> Unpacking replacement bumblebee ...
> Preparing to replace bumblebee-nvidia 3.0.1-1 (using
> bumblebee-nvidia_3.0.1-1_amd64.deb) ...
> Unpacking replacement bumblebee-nvidia ...
> Setting up bumblebee (3.0.1-1) ...
> Installing new version of config file /etc/init.d/bumblebeed ...
> update-initramfs: deferring update (trigger activated)
> <...seems to get stuck here>

It turns out that the problem isn't caused by the postinst script. I
tried stripping out portions of it piece by piece (starting with the
conffile handling/dpkg-maintscript-helper snippets), but nothing
helped. Then I took a look at what should've appeared right afterwards
if dpkg didn't get "stuck" somehow:

<snip>
Setting up bumblebee (3.0.1-1) ...
Adding members from group(s) 'adm sudo admin' to 'bumblebee':
update-initramfs: deferring update (trigger activated)
[ ok ] Starting Bumblebee daemon: bumblebeed.

Ah, bumblebee's init script...

A 3-way comparison later between the distro-agnostic init script
provided upstream, the one provided by suwako.nomanga.net, and the one
currently in the pkg-nvidia git repo (presumably taken from a dh-make
template?), and it turns out that this is what was missing:

-DAEMON_ARGS="--use-syslog"
+DAEMON_ARGS="--daemon --use-syslog"

And the package installs fine now. :)

Aron, have you contacted upstream and asked to merge our work with
their PPA packaging? I want to try to push as much of our work
upstream to avoid duplicate work and potential oversights on our
part...also, I suppose maybe some of their Ubuntu PPA packagers might
be able to help with upstart. I'll go about preparing a merge request
on Github if you aren't planning on doing so yourself.

Now that bumblebee is taken care of, I've (finally) uploaded my primus
packaging, to collab-maint for now (but am open to moving it into
pkg-nvidia) [1].

Regards,
Vincent

[1] http://anonscm.debian.org/gitweb/?p=collab-maint/primus.git


Reply to: