Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   BUG: dpkg confused with so many symlinks (http://www.linux-archive.org/debian-dpkg/698739-bug-dpkg-confused-so-many-symlinks.html)

Tamateas Kostas 08-29-2012 06:45 AM

BUG: dpkg confused with so many symlinks
 
Hello everyone in Debian.
I will file a bug I always had in my linux-from-scratch box :)

My system has the directory /bin
and /usr/bin --> ../bin (symlink)

A deb package has the following files:
/bin/as and
/usr/bin/@as --> ../../bin/as (symlink)

dpkg throws "unable to open /bin/as.dpkg-new No such file or directory"

I wish you can fix it :)

--
Tamateas Kostas
iNODE R&D
Dataways Hellas
email : k.tamateas@dataways.gr


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 503DBAA4.4040707@dataways.gr">http://lists.debian.org/503DBAA4.4040707@dataways.gr

Guillem Jover 08-29-2012 08:01 AM

BUG: dpkg confused with so many symlinks
 
Hi!

On Wed, 2012-08-29 at 09:45:56 +0300, Tamateas Kostas wrote:
> I will file a bug I always had in my linux-from-scratch box :)

Could you file a bug in the Bug Tracking System instead, so that it
does not get lost (and to not clutter the mailing list)?

More information on how to do that, can be found at:

<http://www.debian.org/Bugs/Reporting>

> My system has the directory /bin
> and /usr/bin --> ../bin (symlink)
>
> A deb package has the following files:
> /bin/as and
> /usr/bin/@as --> ../../bin/as (symlink)
>
> dpkg throws "unable to open /bin/as.dpkg-new No such file or directory"
>
> I wish you can fix it :)

When filing the bug, could you also attach the output of:

# dpkg -D77333 -i failing-package.deb

I'll look into it then.

thanks,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120829080136.GA17697@gaara.hadrons.org">http://lists.debian.org/20120829080136.GA17697@gaara.hadrons.org

Raphael Hertzog 08-29-2012 08:29 AM

BUG: dpkg confused with so many symlinks
 
Hi,

On Wed, 29 Aug 2012, Guillem Jover wrote:
> > /bin/as and
> > /usr/bin/@as --> ../../bin/as (symlink)
> >
> > dpkg throws "unable to open /bin/as.dpkg-new No such file or directory"
> >
> > I wish you can fix it :)
>
> When filing the bug, could you also attach the output of:
>
> # dpkg -D77333 -i failing-package.deb
>
> I'll look into it then.

I'm not sure what more information do you need. It's just that dpkg tries
to process the same file twice because the 2 paths are in reality in the
same location.

It's a relatively common (though obscure) error:
http://raphaelhertzog.com/2011/07/18/deciphering-one-of-dpkg-weirdest-errors-unable-to-open-pathtofoo-dpkg-new/

We would have to teach dpkg to recognize when 2 paths are actually the
same.

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120829082905.GB27201@rivendell.home.ouaza.com">h ttp://lists.debian.org/20120829082905.GB27201@rivendell.home.ouaza.com

Guillem Jover 09-01-2012 05:37 AM

BUG: dpkg confused with so many symlinks
 
Hi!

On Wed, 2012-08-29 at 10:01:36 +0200, Guillem Jover wrote:
> On Wed, 2012-08-29 at 09:45:56 +0300, Tamateas Kostas wrote:
> > My system has the directory /bin
> > and /usr/bin --> ../bin (symlink)
> >
> > A deb package has the following files:
> > /bin/as and
> > /usr/bin/@as --> ../../bin/as (symlink)
> >
> > dpkg throws "unable to open /bin/as.dpkg-new No such file or directory"

> When filing the bug, could you also attach the output of:
>
> # dpkg -D77333 -i failing-package.deb

Ok, after having confirmed off-list that this is not the Debian
binutils package but a custom one (given the paths involved, although
I guess I missed the linuxfromscratch reference, which should have
cleared any suspicion), and as such there's nothing extremely
wrong going on, the only “problem” here is that having symlinked
directories and trying to install different paths that end up resolving
to the same final path is not supported by dpkg (that's one of the
reasons Debian GNU/Hurd stopped symlinking /usr to /, for example).

So you have to either stop symlinking /usr/bin to /bin, or stop
shipping linked file paths in the custom binary package you are
building.

thanks,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120901053745.GA4323@gaara.hadrons.org">http://lists.debian.org/20120901053745.GA4323@gaara.hadrons.org


All times are GMT. The time now is 10:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.