Bug 25033 - needs /var/www/cgi-bin/ , but it's not req'd by the pkg
Summary: needs /var/www/cgi-bin/ , but it's not req'd by the pkg
Status: CLOSED DUPLICATE of bug 25032
Alias: None
Product: Branch 5.1
Classification: Distributions
Component: apache2-cgi-bin-printenv (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 normal
Assignee: solo
QA Contact: QA 5.1
URL:
Keywords:
Depends on: 25032
Blocks:
  Show dependency tree
 
Reported: 2011-02-04 23:35 MSK by Ivan Zakharyaschev
Modified: 2011-02-07 05:29 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2011-02-04 23:35:31 MSK
The same problem with apache2-cgi-bin-printenv-2.2.17-alt0.M51.1 .

+++ This bug was initially created as a clone of Bug #25032 +++

apache2-cgi-bin-test-cgi-2.2.17-alt0.M51.1

An upgrade of some packages from branch 5.1 (openssl, actually) caused the upgrade of some apache packages. The postinstall script of apache2-cgi-bin-test-cgi-2.2.17-alt0.M51.1 makes use of a directory that however hasn't been installed by APT.

Manual repetition of the postinstall script:

# control cgi-bin_test-cgi symlink_root_noexec
ln: creating symbolic link `/var/www/cgi-bin/test-cgi': No such file or directory
chown: cannot access `/var/www/cgi-bin/test-cgi': No such file or directory
# l /var/www/ 
total 16
drwxr-xr-x  6 root root        76 Feb  4 20:10 apache2/
drwxr-xr-x  3 root root        33 Feb  4 20:10 html/
drwxr-xr-x  3 root root      8192 Feb  4 20:10 icons/
drwxr-xr-x  9 root root       103 Feb  4 20:10 ./
drwxr-xr-x  2 root root         6 Mar 17  2010 apache/
drwxr-xr-x 22 root root      4096 Dec 20  2009 ../
drwxrws--x  2 root webmaster    6 May 16  2009 webapps/
drwxr-xr-x  2 root root         6 Jun 18  2007 common-addons/
drwxr-xr-x  2 root root         6 Jun 18  2007 vhosts/
[root@localhost apt]# rpm -qf /var/www /var/www/*
warning: file /var/www is not owned by any package
apache-common-1.3.42rusPL30.24-alt0.M51.1
apache2-base-2.2.17-alt0.M51.1
vhosts-filesystem-0.2-alt1.1
warning: file /var/www/html is not owned by any package
warning: file /var/www/icons is not owned by any package
vhosts-filesystem-0.2-alt1.1
webserver-common-1.3-alt0.M41.2
# 

Perhaps, the package should require the directory it wants, i.e., a newer package that contains that directory. Otherwise the upgrade from branch 4.1 isn't smooth.

More info:

Complete output of the upgrade (this system was initially a branch 4.1 system):

apt> commit 
The following packages will be upgraded
  MySQL-client apache2 apache2-common apache2-httpd-prefork
  apache2-httpd-worker dillo elinks ipv6calc krb5-kinit lftp
  libMySQL libaprutil1 libkrb5 libnet-snmp libopenslp
  libpq5.2 libruby libssl7 linuxdcpp openntpd openssl openvpn
  osec osec-mailreport ppp ppp-pppoe python-module-OpenSSL
  qca-tls ruby tcpdump wget
The following packages will be REMOVED:
  amarok amarok-engine-xine amarok-mediadevice-generic
  amarok-mediadevice-ipod libssl6 ruby-gettext
  ruby-gettext-utils ruby-module-English ruby-module-cgi
  ruby-module-date-time ruby-module-dbm ruby-module-digest
  ruby-module-e2mmap ruby-module-erb ruby-module-fcntl
  ruby-module-fileutils ruby-module-iconv ruby-module-math
  ruby-module-misc ruby-module-net ruby-module-nkf
  ruby-module-openssl ruby-module-optparse
  ruby-module-patterns ruby-module-racc-runtime
  ruby-module-readline ruby-module-rexml ruby-module-shell
  ruby-module-socket ruby-module-stringio ruby-module-thread
  ruby-module-tracer ruby-module-uri ruby-module-yaml
  ruby-tool-irb ruby-tool-rdoc
The following NEW packages will be installed:
  apache2-base apache2-cgi-bin apache2-cgi-bin-printenv
  apache2-cgi-bin-test-cgi apache2-datadirs apache2-html
  apache2-icons libcrypto7 osec-cronjob
  webserver-cgi-bin-control
31 upgraded, 10 newly installed, 36 removed and 1090 not upgraded.
Need to get 0B/12.4MB of archives.
After unpacking 27.2MB disk space will be freed.
Do you want to continue? [Y/n] 
Committing changes...
Preparing...                 ########################## [100%]
 1: libcrypto7               ########################## [  2%]
 2: libaprutil1              ########################## [  4%]
Warning: User apache2 was not included in the group _webserver!
Adding user apache2 to group _webserver
     Added user apache2 to group _webserver.
 3: apache2-common           ########################## [  7%]
 4: libkrb5                  ########################## [  9%]
 5: libssl7                  ########################## [ 12%]
 6: apache2-datadirs         ########################## [ 14%]
 7: webserver-cgi-bin-control########################## [ 17%]
 8: osec                     ########################## [ 19%]
 9: apache2-cgi-bin-test-cgi ########################## [ 21%]
ln: creating symbolic link `/var/www/cgi-bin/test-cgi': No such file or directory
chown: cannot access `/var/www/cgi-bin/test-cgi': No such file or directory
10: apache2-cgi-bin-printenv ########################## [ 24%]
ln: creating symbolic link `/var/www/cgi-bin/printenv': No such file or directory
chown: cannot access `/var/www/cgi-bin/printenv': No such file or directory
11: ppp                      ########################## [ 26%]
12: libMySQL                 ########################## [ 29%]
13: apache2-httpd-prefork    ########################## [ 31%]
14: apache2-base             ########################## [ 34%]
15: libruby                  ########################## [ 36%]
16: apache2-icons            ########################## [ 39%]
17: apache2-html             ########################## [ 41%]
Stopping httpd2 service: [ DONE ]
Checking configuration sanity for httpd2:  Syntax OK
[ DONE ]
Starting httpd2 service: [ DONE ]
Stopping httpd2 service: [ DONE ]
Checking configuration sanity for httpd2:  Syntax OK
[ DONE ]
Starting httpd2 service: [ DONE ]
warning: /etc/httpd2/conf/extra-available/Directory_html_default.conf saved as /etc/httpd2/conf/extra-available/Directory_html_default.conf.rpmsave
18: ruby                     ########################## [ 43%]
19: MySQL-client             ########################## [ 46%]
uninstall_info: WARNING: Invocation from MySQL-client %postun script ignored.
20: ppp-pppoe                ########################## [ 48%]
21: openssl                  ########################## [ 51%]
22: libpq5.2                 ########################## [ 53%]
23: python-module-OpenSSL    ########################## [ 56%]
24: dillo                    ########################## [ 58%]
25: qca-tls                  ########################## [ 60%]
26: openvpn                  ########################## [ 63%]
27: elinks                   ########################## [ 65%]
28: lftp                     ########################## [ 68%]
29: linuxdcpp                ########################## [ 70%]
30: wget                     ########################## [ 73%]
uninstall_info: WARNING: Invocation from wget %postun script ignored.
31: krb5-kinit               ########################## [ 75%]
uninstall_info: WARNING: Invocation from krb5-kinit %postun script ignored.
32: apache2-httpd-worker     ########################## [ 78%]
33: libopenslp               ########################## [ 80%]
34: libnet-snmp              ########################## [ 82%]
35: ipv6calc                 ########################## [ 85%]
36: openntpd                 ########################## [ 87%]
37: tcpdump                  ########################## [ 90%]
38: osec-cronjob             ########################## [ 92%]
39: osec-mailreport          ########################## [ 95%]
Running /usr/lib/rpm/posttrans-filetriggers
Done.
Comment 1 solo 2011-02-07 05:29:10 MSK
См. https://bugzilla.altlinux.org/show_bug.cgi?id=25032#c1

*** This bug has been marked as a duplicate of bug 25032 ***