nanourl "unnaturally" depends on Apache

Bug #268773 reported by Paul Bryan
8
Affects Status Importance Assigned to Milestone
nanourl (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: nanourl

nanourl's dependencies are:

  Package: nanourl
  ...
  Depends: apache | apache2 | apache-ssl, php5 | php4, php5-mysql | php4-mysql, mysql-client

This appears because nano.postinst wants to add Apache rewrite rules to the Apache configuration to support it.

Given nanourl is at its essence a couple of PHP scripts (which in its source distribution has nothing to do with Apache), explicitly depending on Apache seems wrong given the number of alternative/lightweight HTTP servers that are currently available.

If not for the assumption of Apache as a dependency, this package could be utilized by a number of web servers, and simply be satisfied by a PHP and php-mysql dependency.

I acknowledge that because it's just a couple of PHP files, I can just download them and install manually myself; that's indeed what I'll do. The purpose of opening this bug is to quarrel with the built-in assumption that Apache is the only web server that it should run on.

Related branches

Changed in nanourl:
assignee: nobody → quadrispro
status: New → In Progress
assignee: quadrispro → nobody
status: In Progress → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Upgrading from 0.1-7.1, dpkg complains with the following message:
Preparing to replace nanourl 0.1-7.1 (using nanourl_0.1-7.1ubuntu1_amd64.deb) ...
Unpacking replacement nanourl ...
postrm called with unknown argument 'upgrade'
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
postrm called with unknown argument 'failed-upgrade'
dpkg: error processing nanourl_0.1-7.1ubuntu1_amd64.deb (--install):
 subprocess new post-removal script returned error exit status 1
postrm called with unknown argument 'abort-upgrade'
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 nanourl_0.1-7.1ubuntu1_amd64.deb

Also, it seems to me package could be Architecture: all

Changed in nanourl:
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Alessio Treglia (quadrispro) wrote :
Revision history for this message
Paul Bryan (pbryan) wrote :

Wow, thanks for working on this so quickly.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I still notice issues raised above, problems are those:
* postrm lacks upgrade argument, probably implementing a no-op upgrade argument (together with the failed-upgrade one) should fix this, at least during upgrade from 0.1-7.1.
* postinst tries to create a symlink with ln -s, this will fail if symlink is already present, a possible solution could be overwrite it with -f option.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nanourl - 0.1-7.1ubuntu1

---------------
nanourl (0.1-7.1ubuntu1) intrepid; urgency=low

  [ Alessio Treglia ]
  * Removed unnecessary depend on apache (LP: #268773).
  * Set Architecture field to all.

  [ Luca Falavigna ]
  * Implemented no-op upgrade and failed-upgrade targets to fix weird
    errors while upgrading from 0.1-7.1.
  * Use ln -fs when creating symlinks to avoid errors during configure
    phase if they are already present.

 -- Luca Falavigna <email address hidden> Mon, 06 Oct 2008 09:25:52 +0000

Changed in nanourl:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.