List Info

Thread: dpkg blues




dpkg blues
user name
2006-01-11 03:58:06
Hi,

I am trying to build arm debian package of libsigc++
installable
on nokia 770. dpkg-buildpackage builds it just fine:

% dpkg-buildpackage -rfakeroot  -uc -us -sa -D  
% ls

libsigc++-2.0-0c2a_2.0.16-2_arm.deb

However, in order for me to use AppInstaller, I have to make
it
dependable on pseudo-package maemo:

"... instead, it uses a database of its own that only
contains the
installed application packages and a fake maemo package that
represents
the rest of the system. 

This means that your package can not usefully depend on
libgtk2.0-0,
say. You should only depend on other application packages
that are
installed with the Application Installer. You should also
depend on the
fake maemo package to ensure that your package is only
installable by
the Application Installer."

So, I made it dependable on maemo:

debian/control:
-------------------------------------------------
Source: libsigc++-2.0
Section: devel
Priority: optional
Maintainer: Daniel Burrows <dburrowsdebian.org>
Standards-Version: 3.6.2.0
Build-Depends: debhelper (>=4.0.0), m4, g++ (>=
3:3.2.0)
                                                            
                   
Package: libsigc++-2.0-0c2a
Section: libs
Depends: maemo
Architecture: any
Description: type-safe Signal Framework for C++ - runtime
 This library implements a full callback system for use in
widget
 libraries, abstract interfaces, and general programming. It
provides
 the ability to connect an abstract callback to a class
method,
 function, or function object, and contains adaptor classes
for
 connection of dissimilar callbacks.
 .
 These are the runtime files for libsigc++, needed only if
you wish to
 run software which depends on
it.                                                         
                      
-------------------------------------------------

However, installing it both on 770 and in scratchbox SDK_ARM
fails
bitterly:

% fakeroot
# app-installer-tool install
libsigc++-2.0-0c2a_2.0.16-2_arm.deb 

Selecting previously deselected package libsigc++-2.0-0c2a.
(Reading database ... 27 files and directories currently
installed.)
Preparing to replace libsigc++-2.0-0c2a 2.0.16-2 (using
libsigc++-2.0-0c2a_2.0.16-2_arm.deb) ...
Unpacking replacement libsigc++-2.0-0c2a ...
dpkg (subprocess): failed to chroot to `/var/lib/install':
Operation not
permitted
dpkg: warning - old post-removal script returned error exit
status 2
dpkg - trying script from the new package instead ...
dpkg (subprocess): failed to chroot to `/var/lib/install':
Operation not
permitted
dpkg: error processing libsigc++-2.0-0c2a_2.0.16-2_arm.deb
(--install):
 subprocess new post-removal script returned error exit
status 2
dpkg (subprocess): failed to chroot to `/var/lib/install':
Operation not
permitted
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 libsigc++-2.0-0c2a_2.0.16-2_arm.deb
failed
Installation of libsigc++-2.0-0c2a_2.0.16-2_arm.deb failed,
removing
package libsigc++-2.0-0c2a.
dpkg: error processing libsigc++-2.0-0c2a (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 libsigc++-2.0-0c2a
Removing failed!
------------------------------------------------------------
-------

Can someone explain to me why I get this error?

	failed to chroot to `/var/lib/install'

thanks in advance,
-Vlad
-- 
____________________________________________________________
_
Vladislav Grinchenko       http://home.comcas
t.net/~3rdshift/
                                 e-mail: 3rdshiftcomcast.net
                                                   
      Focus on quality, and productivity will follow.
____________________________________________________________
_

_______________________________________________
maemo-developers mailing list
maemo-developersmaemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
dpkg blues
user name
2006-01-11 13:18:38
Vladislav Grinchenko wrote:

>Can someone explain to me why I get this error?
>
>	failed to chroot to `/var/lib/install'
>  
>
Application installer packages are installed under
alternative root 
/var/lib/install .
On the device, try calling app-installer-tool with sudo.
Does it install with the application installer on the
device?
Did you get the same error message on the latest rootstrap?


Janne

-- 
Janne Kataja, Movial Corporation
Porkkalankatu 13 J, FI-00180 Helsinki
Mobile +358 40 550 9801, Tel +358 9 8567 6400
Fax +358 9 8567 6401
www.movial.fi

_______________________________________________
maemo-developers mailing list
maemo-developersmaemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
dpkg blues
user name
2006-01-23 10:02:52
On Tue, 2006-01-10 at 22:58 -0500, Vladislav Grinchenko
wrote:
> Hi,
> 
> I am trying to build arm debian package of libsigc++
installable
> on nokia 770. dpkg-buildpackage builds it just fine:
...
> However, in order for me to use AppInstaller, I have to
make it
> dependable on pseudo-package maemo:
---
> However, installing it both on 770 and in scratchbox
SDK_ARM fails
> bitterly:
...
> Can someone explain to me why I get this error?
> 
> 	failed to chroot to `/var/lib/install'
> 

It's been two weeks, but in case you're still wondering
about this:

You probably have maintainer scripts (eg. prerm, postinst)
in your
package. Those are not allowed with app-installer-tool, and
may prevent
the package from being correctly installed and uninstalled. 

There is a separate how-to about packaging:
http://maemo.org/platform/docs/how
tos/howto_making_an_application_package.html

HTH,

-- 
Jussi Kukkonen


_______________________________________________
maemo-developers mailing list
maemo-developersmaemo.org
h
ttps://maemo.org/mailman/listinfo/maemo-developers
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )