Re: Packaging an application

2015-12-28 Thread Ralf Mardorf
On Tue, 29 Dec 2015 11:11:53 +0530, Lloyd wrote:
>I understand that dpkg wont install the dependencies.

Assumed all dependencies should be available by the repositories

$ sudo -i
# cd path/to/package/
# apt-get update && dpkg -i --force-depends packagename.deb && apt-get install 
-f

might do the trick. But since force options should be avoided

$ sudo -i
# cd path/to/package/
# apt-get update && apt-get install list.deb of.deb dependencies.deb && dpkg -i 
packagename.deb

>What is the best way to make the installation hassle free for the user?

Only to depend on packages provided by the official repositories ;).

To compile without usage of shared dependencies and to install the
software together with it's dependencies to opt/?

To ensure that installing/updating shared dependencies won't break any Ubuntu
install and to provide the package and all dependencies by a PPA, resp.
by the mentioned CD?

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Packaging an application

2015-12-28 Thread Lloyd
Hi,

We have developed an application and it depends on many third party
libraries like boost. We have developed it using Ubuntu 14.4LTS and boost
1.58.  14.4 doesn't seem to have the boost 1.58 package (to my limited
knowledge).

I am new to Linux, I would like to know the right way to package and
distribute the application? Is it advisable to pack all the dependent
libraries in one package itself? or let the user install the dependencies
himself?

We will be distributing the package in CD. So far we have tested the
installation using dpkg. I understand that dpkg wont install the
dependencies.

What is the best way to make the installation hassle free for the user?

Thanks,
  Lloyd
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: How shall I report a bug in the .deb packaging itself?

2015-12-28 Thread Ralf Mardorf
On Mon, 28 Dec 2015 19:03:16 +0100, Alberto Salvia Novella wrote:
>Ralf Mardorf:
> > Seemingly you can't provide new arguments, so you should expect to
> > get the same replies and perhaps some subscribers consider it as
> > trolling or spamming, so that they don't read mails of this thread
> > anymore.  
>
>If I disagreed with you, how much would you care?

1. You described an issue.

2. IIRC everybody agrees that this issue does exist, but that for a
majority of users it's not important, it's not really an issue and that
there is no good way to solve this, without risking to cause serious
annoyances.

3. IIRC perhaps somebody will add an undo function to a GUI. You could
consider to use the history to manually purge unwanted dependencies, so
you even don't need to write a script.

[root@moonstudio ~]# ls -hAl /var/log/apt/
total 1.3M
-rw-r--r-- 1 root root 161K Dec 20 12:46 history.log
-rw-r--r-- 1 root root  13K Aug  5 02:21 history.log.1.gz
-rw-r- 1 root adm  1.1M Dec 20 12:46 term.log
-rw-r- 1 root adm   40K Aug  5 02:21 term.log.1.gz

In the future you could install packages without recommended
dependencies you don't want to install, it was several times explained
how to do this.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: How shall I report a bug in the .deb packaging itself?

2015-12-28 Thread Alberto Salvia Novella

Russ Allbery:
> I think it's correctly doing what it should in the situation
> described in this thread.

Okay, so what I said is what I saw. And deciding if it is true or not 
has always been your choice.



Ralf Mardorf:
> Seemingly you can't provide new arguments, so you should expect to
> get the same replies and perhaps some subscribers consider it as
> trolling or spamming, so that they don't read mails of this thread
> anymore.

If I disagreed with you, how much would you care?




smime.p7s
Description: S/MIME Cryptographic Signature
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: How shall I report a bug in the .deb packaging itself?

2015-12-28 Thread Russ Allbery
Alberto Salvia Novella  writes:

> The problem seems to be that the package manager does not make its basic
> functionality, which is to make clear for users which packages they wish
> to remove.

> For me it seems a minor problem that a console tool could be removed,
> compared with packages accumulating and no longer been able to tell which
> of those are really needed or not.

I completely disagree.  A package manager should default to retaining
packages in case they're useful, not default to removing them.  Removing
packages is far more destructive than keeping unused packages.

> Specially when the kind of user who uses the console is who could tell
> when this tool will be removed, and the package manager would list
> those.

There are multiple tools that do things like this.  I'm very happy with
how apt works now; I think it's correctly doing what it should in the
situation described in this thread.

-- 
Russ Allbery (r...@debian.org)   

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss