Report forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#37227; Package dpkg.   debian-bugs-dist@lists.debian.orgIan Jackson and others  Subject: Bug#37227: dpkg: Problem with instalation Reply-To: Zdenek Kabelac , 37227@bugs.debian.org Resent-From: Zdenek Kabelac Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Ian Jackson and others Resent-Date: Thu, 06 May 1999 10:18:00 GMT Resent-Message-ID: Resent-Sender: iwj@debian.org X-Debian-PR-Message: report 37227 X-Debian-PR-Package: dpkg X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by bugs@bugs.debian.org id=B.925985165866 (code B ref -1); Thu, 06 May 1999 10:18:00 GMT From: Zdenek Kabelac To: submit@bugs.debian.org X-Mailer: bug 3.1.7 Message-Id: Date: Thu, 6 May 1999 12:05:48 +0200 Package: dpkg Version: 1.4.1.1 Hi I was having some problem with installation of x11amp packages. The problem was this: I've installed latest x11amp packages to /usr/local/ hierarchy. After upgrade from X11ampg7 to x11amp9 I have had this problem. X11amp was not playing - after the quick look at the /usr/lib directory I've found out this problem. There was incorrent link x11amp showing to /usr/local/lib/x11amp. The reason why the link was incorrect is clear - after the instalation of x11amp I have removed x11amp from /usr/local/stow by running stow -D. So this is clear. However there are several other problems - which program has created this link - as I've only used stow & ldconfig. (And I definitely didn't created this one by myself). Second problem: dpkg has overwritten those files located in /usr/local/lib/x11amp directory without a single warning as they followed still valid link in the time of installation - This is why I'm filling this bugreport - dpkg should always check if there is not a user file and if there are some files which are not part of Debian distribution I should be at least warned about this and asked to confirm overwritting them. --- this is the whole log of x11amp's instalation: dpkg: considering removing x11ampg in favour of x11amp ... dpkg: yes, will remove x11ampg in favour of x11amp. (Reading database ... 83467 files and directories currently installed.) Unpacking x11amp (from .../sound/x11amp_0.9b1.1-1.deb) ... Purging configuration files for x11ampg ... Setting up x11amp (0.9b1.1-1) ... --- So definitely there was no program which could have create /usr/lib/x11amp directory so even this should cause the warning message. Also I'm still curious which program has created this hostile link from /usr/lib/x11amp -> /usr/local/lib/x11amp. -- after removing the bad link and reinstalation x11amp everythink works fine again. -- System Information Debian Release: potato Kernel Version: Linux decibel 2.2.5 #2 Po Bøe 29 18:31:28 CEST 1999 i586 unknown Versions of the packages dpkg depends on: ii libc6 2.1.1-2 GNU C Library: Shared libraries and timezone ii libncurses4 4.2-3.2 Shared libraries for terminal handling ii libstdc++2.9 2.91.61-1 The GNU stdc++ library (egcs version)   Acknowledgement sent to Zdenek Kabelac <kabi@informatics.muni.cz>:
New bug report received and forwarded. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Zdenek Kabelac Subject: Bug#37227: Acknowledgement (dpkg: Problem with instalation) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack 37227 Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers' mailing list for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Ian Jackson and others If you wish to submit further information on your problem, please send it to 37227@bugs.debian.org (and *not* to bugs@bugs.debian.org). Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (administrator, Debian bugs database)   Received: (at submit) by bugs.debian.org; 6 May 1999 10:06:05 +0000 Received: (qmail 863 invoked from network); 6 May 1999 10:06:03 -0000 Received: from aragorn.ics.muni.cz (147.251.4.33) by master.debian.org with SMTP; 6 May 1999 10:06:03 -0000 Received: from anxur.fi.muni.cz (0@anxur.fi.muni.cz [147.251.48.3]) by aragorn.ics.muni.cz (8.8.5/8.8.5) with ESMTP id MAA08096 for ; Thu, 6 May 1999 12:05:50 +0200 (MET DST) Received: from decibel.fi.muni.cz (decibel.fi.muni.cz [147.251.51.14]) by anxur.fi.muni.cz (8.8.5/8.8.5) with ESMTP id MAA12121; Thu, 6 May 1999 12:05:49 +0200 (MET DST) Received: from kabi by decibel.fi.muni.cz with local (Exim 2.11 #1 (Debian)) id 10fL2K-0005qu-00; Thu, 6 May 1999 12:05:48 +0200 From: Zdenek Kabelac Subject: dpkg: Problem with instalation To: submit@bugs.debian.org X-Mailer: bug 3.1.7 Message-Id: Date: Thu, 6 May 1999 12:05:48 +0200 Package: dpkg Version: 1.4.1.1 Hi I was having some problem with installation of x11amp packages. The problem was this: I've installed latest x11amp packages to /usr/local/ hierarchy. After upgrade from X11ampg7 to x11amp9 I have had this problem. X11amp was not playing - after the quick look at the /usr/lib directory I've found out this problem. There was incorrent link x11amp showing to /usr/local/lib/x11amp. The reason why the link was incorrect is clear - after the instalation of x11amp I have removed x11amp from /usr/local/stow by running stow -D. So this is clear. However there are several other problems - which program has created this link - as I've only used stow & ldconfig. (And I definitely didn't created this one by myself). Second problem: dpkg has overwritten those files located in /usr/local/lib/x11amp directory without a single warning as they followed still valid link in the time of installation - This is why I'm filling this bugreport - dpkg should always check if there is not a user file and if there are some files which are not part of Debian distribution I should be at least warned about this and asked to confirm overwritting them. --- this is the whole log of x11amp's instalation: dpkg: considering removing x11ampg in favour of x11amp ... dpkg: yes, will remove x11ampg in favour of x11amp. (Reading database ... 83467 files and directories currently installed.) Unpacking x11amp (from .../sound/x11amp_0.9b1.1-1.deb) ... Purging configuration files for x11ampg ... Setting up x11amp (0.9b1.1-1) ... --- So definitely there was no program which could have create /usr/lib/x11amp directory so even this should cause the warning message. Also I'm still curious which program has created this hostile link from /usr/lib/x11amp -> /usr/local/lib/x11amp. -- after removing the bad link and reinstalation x11amp everythink works fine again. -- System Information Debian Release: potato Kernel Version: Linux decibel 2.2.5 #2 Po Bøe 29 18:31:28 CEST 1999 i586 unknown Versions of the packages dpkg depends on: ii libc6 2.1.1-2 GNU C Library: Shared libraries and timezone ii libncurses4 4.2-3.2 Shared libraries for terminal handling ii libstdc++2.9 2.91.61-1 The GNU stdc++ library (egcs version)   Changed Bug title. Request was from Josip Rodin <joy@cibalia.gkvk.hr> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 17 Mar 2001 14:52:01 +0000 From joy@cibalia.gkvk.hr Sat Mar 17 08:52:01 2001 Return-path: Received: from cibalia.gkvk.hr [161.53.211.3] (mail) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14eI3l-0002Pz-00; Sat, 17 Mar 2001 08:52:01 -0600 Received: from joy by cibalia.gkvk.hr with local (Exim 3.12 #1 (Debian)) id 14eI3o-0002W5-00 for ; Sat, 17 Mar 2001 15:52:04 +0100 Date: Sat, 17 Mar 2001 15:52:04 +0100 To: control@bugs.debian.org Subject: dpkg stuff Message-ID: <20010317155204.D9131@cibalia.gkvk.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i From: Josip Rodin Delivered-To: control@bugs.debian.org merge 76687 79807 # maybe merge 27926 33796 71717 78921 80360 81928 # severity 27926 important severity 81355 wishlist retitle 81355 mention debsums in manpages severity 81256 minor retitle 81171 status file is not correctly updated (msyql-server) retitle 75121 dselect fails to identify the correct CD retitle 67174 install-info should eventually switch to /usr/share/info/dir severity 67174 wishlist retitle 64669 main/filesdb.c:684: findnamenode_high: Assertion (*pointerp)->name[0] == '/'' failed. merge 64669 80798 severity 64356 wishlist severity 64471 minor severity 61640 wishlist retitle 60730 dpkg-scanpackages/dpkg-deb dies with broken debs (?) reassign 60730 dpkg-dev severity 58789 minor retitle 57531 main/processarc.c:814: process_archive: Assertion herpkg->clientdata->istobe == itb_normal || otherpkg->clientdata->istobe == itb_deconfigure' failed. merge 54891 57531 52087 tag 56798 patch reassign 54564 dpkg-dev retitle 47267 /etc/pam.d/su, conffile from conflicting packages, somehow got removed severity 45121 wishlist severity 44950 wishlist retitle 44566 `download location' for md5sum is unknown severity 44566 minor tag 41054 patch retitle 37227 check for random user-made files before installing those from .debs severity 37227 wishlist retitle 35654 handling of Pre-Depends in the dselect access methods [FIX] retitle 34727 support for gzip alternatives like bzip2/bzip tag 34727 patch merge 33994 79273 tag 28965 patch severity 28965 wishlist severity 15865 wishlist merge 15865 24950 -- Digital Electronic Being Intended for Assassination and Nullification   Severity set to `wishlist'. Request was from Josip Rodin <joy@cibalia.gkvk.hr> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 17 Mar 2001 14:52:01 +0000 From joy@cibalia.gkvk.hr Sat Mar 17 08:52:01 2001 Return-path: Received: from cibalia.gkvk.hr [161.53.211.3] (mail) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14eI3l-0002Pz-00; Sat, 17 Mar 2001 08:52:01 -0600 Received: from joy by cibalia.gkvk.hr with local (Exim 3.12 #1 (Debian)) id 14eI3o-0002W5-00 for ; Sat, 17 Mar 2001 15:52:04 +0100 Date: Sat, 17 Mar 2001 15:52:04 +0100 To: control@bugs.debian.org Subject: dpkg stuff Message-ID: <20010317155204.D9131@cibalia.gkvk.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i From: Josip Rodin Delivered-To: control@bugs.debian.org merge 76687 79807 # maybe merge 27926 33796 71717 78921 80360 81928 # severity 27926 important severity 81355 wishlist retitle 81355 mention debsums in manpages severity 81256 minor retitle 81171 status file is not correctly updated (msyql-server) retitle 75121 dselect fails to identify the correct CD retitle 67174 install-info should eventually switch to /usr/share/info/dir severity 67174 wishlist retitle 64669 main/filesdb.c:684: findnamenode_high: Assertion (*pointerp)->name[0] == '/'' failed. merge 64669 80798 severity 64356 wishlist severity 64471 minor severity 61640 wishlist retitle 60730 dpkg-scanpackages/dpkg-deb dies with broken debs (?) reassign 60730 dpkg-dev severity 58789 minor retitle 57531 main/processarc.c:814: process_archive: Assertion herpkg->clientdata->istobe == itb_normal || otherpkg->clientdata->istobe == itb_deconfigure' failed. merge 54891 57531 52087 tag 56798 patch reassign 54564 dpkg-dev retitle 47267 /etc/pam.d/su, conffile from conflicting packages, somehow got removed severity 45121 wishlist severity 44950 wishlist retitle 44566 `download location' for md5sum is unknown severity 44566 minor tag 41054 patch retitle 37227 check for random user-made files before installing those from .debs severity 37227 wishlist retitle 35654 handling of Pre-Depends in the dselect access methods [FIX] retitle 34727 support for gzip alternatives like bzip2/bzip tag 34727 patch merge 33994 79273 tag 28965 patch severity 28965 wishlist severity 15865 wishlist merge 15865 24950 -- Digital Electronic Being Intended for Assassination and Nullification   Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#37227; Package dpkg.   debian-bugs-dist@lists.debian.orgDpkg Developers  X-Loop: owner@bugs.debian.org Subject: Bug#37227: dpkg: Problem with instalation Reply-To: Guillem Jover , 37227@bugs.debian.org Resent-From: Guillem Jover Original-Sender: Guillem Jover Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Dpkg Developers Resent-Date: Mon, 05 Jan 2009 12:42:04 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: followup 37227 X-Debian-PR-Package: dpkg X-Debian-PR-Keywords: X-Debian-PR-Source: dpkg Received: via spool by 37227-submit@bugs.debian.org id=B37227.123115921624844 (code B ref 37227); Mon, 05 Jan 2009 12:42:04 +0000 Received: (at 37227) by bugs.debian.org; 5 Jan 2009 12:40:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rietz.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 41; hammy, 148; neutral, 84; spammy, 3. spammytokens:1.000-+--HTo:U*37227, 0.987-1--37227, 0.938-4--dangers hammytokens:0.000-+--HCc:D*packages.debian.org, 0.000-+--UD:deb, 0.000-+--reassign, 0.000-+--H*UA:1.5.18, 0.000-+--H*u:1.5.18 X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,FROMDEVELOPER, HAS_BUG_NUMBER,IMPRONONCABLE_2,SPF_SOFTFAIL,VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: from smtp6.welho.com ([213.243.153.40]) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1LJoki-0006Oy-Cg; Mon, 05 Jan 2009 12:40:16 +0000 Received: from localhost (cs181237204.pp.htv.fi [82.181.237.204]) by smtp6.welho.com (Postfix) with ESMTP id 255495BC03B; Mon, 5 Jan 2009 14:40:12 +0200 (EET) Received: from guillem by localhost with local (Exim 4.69) (envelope-from ) id 1LJoke-0001WK-2Q; Mon, 05 Jan 2009 14:40:12 +0200 Date: Mon, 5 Jan 2009 14:40:12 +0200 From: Guillem Jover To: Zdenek Kabelac , 37227@bugs.debian.org Cc: stow@packages.debian.org Message-ID: <20090105124012.GA5824@zulo.hadrons.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Guillem Jover reassign 37227 stow thanks [ Including the whole message for stow's maintainer convenience. ] Hi! On Thu, 1999-05-06 at 12:05:48 +0200, Zdenek Kabelac wrote: > Package: dpkg > Version: 1.4.1.1 > I was having some problem with installation of x11amp packages. > > The problem was this: > > I've installed latest x11amp packages to /usr/local/ hierarchy. > After upgrade from X11ampg7 to x11amp9 I have had this problem. > > X11amp was not playing - after the quick look at the /usr/lib > directory I've found out this problem. > There was incorrent link x11amp showing to /usr/local/lib/x11amp. > The reason why the link was incorrect is clear - after the instalation > of x11amp I have removed x11amp from /usr/local/stow by running stow -D. > So this is clear. > > However there are several other problems - which program has created this > link - as I've only used stow & ldconfig. (And I definitely didn't > created this one by myself). stow created that link, that's one of its features. > Second problem: dpkg has overwritten those files located in > /usr/local/lib/x11amp directory without a single warning as they > followed still valid link in the time of installation > > - This is why I'm filling this bugreport - dpkg should always check if there is > not a user file and if there are some files which are not part of Debian > distribution I should be at least warned about this and asked to > confirm overwritting them. The problem here is that dpkg does not know if a file is a "user file", and it will honour symlinks as modifications done on purpose by the sysadmin. So I guess an answer to that could be "don't do that", but users are entitled to use stow anyway. So the only fix I can see here is for stow to document the dangers of its usage, and that this kind of problem might happen. Thus the reassign. > --- this is the whole log of x11amp's instalation: > dpkg: considering removing x11ampg in favour of x11amp ... > dpkg: yes, will remove x11ampg in favour of x11amp. > (Reading database ... 83467 files and directories currently installed.) > Unpacking x11amp (from .../sound/x11amp_0.9b1.1-1.deb) ... > Purging configuration files for x11ampg ... > Setting up x11amp (0.9b1.1-1) ... > --- > > So definitely there was no program which could have create /usr/lib/x11amp > directory so even this should cause the warning message. > > Also I'm still curious which program has created this hostile link > from /usr/lib/x11amp -> /usr/local/lib/x11amp. > > -- > > after removing the bad link and reinstalation x11amp everythink works fine > again. regards, guillem   Acknowledgement sent to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.   -t  Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) Content-Type: text/plain; charset=utf-8 X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Guillem Jover Subject: Bug#37227: Info received (Bug#37227: dpkg: Problem with instalation) Message-ID: References: <20090105124012.GA5824@zulo.hadrons.org> X-Debian-PR-Message: ack-info 37227 X-Debian-PR-Package: dpkg X-Debian-PR-Source: dpkg Reply-To: 37227@bugs.debian.org Date: Mon, 05 Jan 2009 12:42:05 +0000 Thank you for the additional information you have supplied regarding this Bug report. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Dpkg Developers If you wish to submit further information on this problem, please send it to 37227@bugs.debian.org, as before. Please do not send mail to owner@bugs.debian.org unless you wish to report a problem with the Bug-tracking system. --=20 37227: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D37227 Debian Bug Tracking System Contact owner@bugs.debian.org with problems   Received: (at 37227) by bugs.debian.org; 5 Jan 2009 12:40:16 +0000 From guillem@hadrons.org Mon Jan 05 12:40:16 2009 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rietz.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 41; hammy, 148; neutral, 84; spammy, 3. spammytokens:1.000-+--HTo:U*37227, 0.987-1--37227, 0.938-4--dangers hammytokens:0.000-+--HCc:D*packages.debian.org, 0.000-+--UD:deb, 0.000-+--reassign, 0.000-+--H*UA:1.5.18, 0.000-+--H*u:1.5.18 X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,FROMDEVELOPER, HAS_BUG_NUMBER,IMPRONONCABLE_2,SPF_SOFTFAIL,VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Return-path: Received: from smtp6.welho.com ([213.243.153.40]) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1LJoki-0006Oy-Cg; Mon, 05 Jan 2009 12:40:16 +0000 Received: from localhost (cs181237204.pp.htv.fi [82.181.237.204]) by smtp6.welho.com (Postfix) with ESMTP id 255495BC03B; Mon, 5 Jan 2009 14:40:12 +0200 (EET) Received: from guillem by localhost with local (Exim 4.69) (envelope-from ) id 1LJoke-0001WK-2Q; Mon, 05 Jan 2009 14:40:12 +0200 Date: Mon, 5 Jan 2009 14:40:12 +0200 From: Guillem Jover To: Zdenek Kabelac , 37227@bugs.debian.org Cc: stow@packages.debian.org Subject: Re: Bug#37227: dpkg: Problem with instalation Message-ID: <20090105124012.GA5824@zulo.hadrons.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Guillem Jover reassign 37227 stow thanks [ Including the whole message for stow's maintainer convenience. ] Hi! On Thu, 1999-05-06 at 12:05:48 +0200, Zdenek Kabelac wrote: > Package: dpkg > Version: 1.4.1.1 > I was having some problem with installation of x11amp packages. > > The problem was this: > > I've installed latest x11amp packages to /usr/local/ hierarchy. > After upgrade from X11ampg7 to x11amp9 I have had this problem. > > X11amp was not playing - after the quick look at the /usr/lib > directory I've found out this problem. > There was incorrent link x11amp showing to /usr/local/lib/x11amp. > The reason why the link was incorrect is clear - after the instalation > of x11amp I have removed x11amp from /usr/local/stow by running stow -D. > So this is clear. > > However there are several other problems - which program has created this > link - as I've only used stow & ldconfig. (And I definitely didn't > created this one by myself). stow created that link, that's one of its features. > Second problem: dpkg has overwritten those files located in > /usr/local/lib/x11amp directory without a single warning as they > followed still valid link in the time of installation > > - This is why I'm filling this bugreport - dpkg should always check if there is > not a user file and if there are some files which are not part of Debian > distribution I should be at least warned about this and asked to > confirm overwritting them. The problem here is that dpkg does not know if a file is a "user file", and it will honour symlinks as modifications done on purpose by the sysadmin. So I guess an answer to that could be "don't do that", but users are entitled to use stow anyway. So the only fix I can see here is for stow to document the dangers of its usage, and that this kind of problem might happen. Thus the reassign. > --- this is the whole log of x11amp's instalation: > dpkg: considering removing x11ampg in favour of x11amp ... > dpkg: yes, will remove x11ampg in favour of x11amp. > (Reading database ... 83467 files and directories currently installed.) > Unpacking x11amp (from .../sound/x11amp_0.9b1.1-1.deb) ... > Purging configuration files for x11ampg ... > Setting up x11amp (0.9b1.1-1) ... > --- > > So definitely there was no program which could have create /usr/lib/x11amp > directory so even this should cause the warning message. > > Also I'm still curious which program has created this hostile link > from /usr/lib/x11amp -> /usr/local/lib/x11amp. > > -- > > after removing the bad link and reinstalation x11amp everythink works fine > again. regards, guillem   Bug reassigned from package `dpkg' to `stow'. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 5 Jan 2009 12:40:16 +0000 From guillem@hadrons.org Mon Jan 05 12:40:16 2009 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rietz.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 41; hammy, 148; neutral, 84; spammy, 3. spammytokens:1.000-+--HTo:U*37227, 0.987-1--37227, 0.938-4--dangers hammytokens:0.000-+--HCc:D*packages.debian.org, 0.000-+--UD:deb, 0.000-+--reassign, 0.000-+--H*UA:1.5.18, 0.000-+--H*u:1.5.18 X-Spam-Status: No, score=-8.6 required=4.0 tests=AWL,BAYES_00,FROMDEVELOPER, HAS_BUG_NUMBER,IMPRONONCABLE_2,SPF_SOFTFAIL,VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Return-path: Received: from smtp6.welho.com ([213.243.153.40]) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from ) id 1LJoki-0006Oy-Cg; Mon, 05 Jan 2009 12:40:16 +0000 Received: from localhost (cs181237204.pp.htv.fi [82.181.237.204]) by smtp6.welho.com (Postfix) with ESMTP id 255495BC03B; Mon, 5 Jan 2009 14:40:12 +0200 (EET) Received: from guillem by localhost with local (Exim 4.69) (envelope-from ) id 1LJoke-0001WK-2Q; Mon, 05 Jan 2009 14:40:12 +0200 Date: Mon, 5 Jan 2009 14:40:12 +0200 From: Guillem Jover To: Zdenek Kabelac , 37227@bugs.debian.org Cc: stow@packages.debian.org Subject: Re: Bug#37227: dpkg: Problem with instalation Message-ID: <20090105124012.GA5824@zulo.hadrons.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Guillem Jover Delivered-To: control@bugs.debian.org reassign 37227 stow thanks [ Including the whole message for stow's maintainer convenience. ] Hi! On Thu, 1999-05-06 at 12:05:48 +0200, Zdenek Kabelac wrote: > Package: dpkg > Version: 1.4.1.1 > I was having some problem with installation of x11amp packages. > > The problem was this: > > I've installed latest x11amp packages to /usr/local/ hierarchy. > After upgrade from X11ampg7 to x11amp9 I have had this problem. > > X11amp was not playing - after the quick look at the /usr/lib > directory I've found out this problem. > There was incorrent link x11amp showing to /usr/local/lib/x11amp. > The reason why the link was incorrect is clear - after the instalation > of x11amp I have removed x11amp from /usr/local/stow by running stow -D. > So this is clear. > > However there are several other problems - which program has created this > link - as I've only used stow & ldconfig. (And I definitely didn't > created this one by myself). stow created that link, that's one of its features. > Second problem: dpkg has overwritten those files located in > /usr/local/lib/x11amp directory without a single warning as they > followed still valid link in the time of installation > > - This is why I'm filling this bugreport - dpkg should always check if there is > not a user file and if there are some files which are not part of Debian > distribution I should be at least warned about this and asked to > confirm overwritting them. The problem here is that dpkg does not know if a file is a "user file", and it will honour symlinks as modifications done on purpose by the sysadmin. So I guess an answer to that could be "don't do that", but users are entitled to use stow anyway. So the only fix I can see here is for stow to document the dangers of its usage, and that this kind of problem might happen. Thus the reassign. > --- this is the whole log of x11amp's instalation: > dpkg: considering removing x11ampg in favour of x11amp ... > dpkg: yes, will remove x11ampg in favour of x11amp. > (Reading database ... 83467 files and directories currently installed.) > Unpacking x11amp (from .../sound/x11amp_0.9b1.1-1.deb) ... > Purging configuration files for x11ampg ... > Setting up x11amp (0.9b1.1-1) ... > --- > > So definitely there was no program which could have create /usr/lib/x11amp > directory so even this should cause the warning message. > > Also I'm still curious which program has created this hostile link > from /usr/lib/x11amp -> /usr/local/lib/x11amp. > > -- > > after removing the bad link and reinstalation x11amp everythink works fine > again. regards, guillem