Updating/replacing packages
Hello, I have a client that needs Mono 2.4 and other related components packaged for various reasons, and for various other reasons needs _that_ to be packaged with a 1 binary per 1 upstream source package mapping. I am trying to accomplish this task, but I am failing something awful. I am hoping that this is the right list to ask about dpkg/apt issues. From what I understand from the dpkg documentation, a package that wants to do such a thing must Replace and Conflict with the packages that it is superceding. So I have this new Mono package which builds just fine into a binary; it Provides all the virtuals the Debian Mono source package provides, and it Replaces and Conflicts with the 100+ package splits that come from the Mono source package. However, when I try to install something like "libboo2.0-cil", apt wants to remove my package and then install (older) packages from the repository. When I look at libboo2.0-cil's information, it says that it Depends on libmono-corlib2.0-cil (>= 1.2.2.1) (my package replaces that one, and the package version is 2.4), and on libmono-system2.0-cil (>= 2.0) (again, my package replaces that one, and the package version is 2.4). There are no Recommends or Suggests in libboo2.0-cil, so I don't know why it wants to remove my package and replace it with what dpkg should think is an older package; this package (at least I thought) filled those two dependencies. What must a package have in its control file in order to effectively supercede packages in this fashion? From what I gather from the documentation, it'd seem that what I am doing _should_ work, but clearly I don't get it. Thanks, Mike -- Emacs is a nice operating system, but I prefer UNIX. --- Tom Christiansen -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Updating/replacing packages
On 2009-04-16 09:19 +0200, Michael B. Trausch wrote: > I have a client that needs Mono 2.4 and other related components > packaged for various reasons, and for various other reasons needs > _that_ to be packaged with a 1 binary per 1 upstream source package > mapping. I am trying to accomplish this task, but I am failing > something awful. I am hoping that this is the right list to ask about > dpkg/apt issues. > > From what I understand from the dpkg documentation, a package that > wants to do such a thing must Replace and Conflict with the packages > that it is superceding. So I have this new Mono package which builds > just fine into a binary; it Provides all the virtuals the Debian Mono > source package provides, and it Replaces and Conflicts with the 100+ > package splits that come from the Mono source package. However, when I > try to install something like "libboo2.0-cil", apt wants to remove my > package and then install (older) packages from the repository. > > When I look at libboo2.0-cil's information, it says that it Depends on > libmono-corlib2.0-cil (>= 1.2.2.1) (my package replaces that one, and > the package version is 2.4), and on libmono-system2.0-cil (>= 2.0) > (again, my package replaces that one, and the package version is 2.4). That does not work because a versioned Provides is not implemented. See #24394¹ and siblings. > There are no Recommends or Suggests in libboo2.0-cil, so I don't know > why it wants to remove my package and replace it with what dpkg should > think is an older package; this package (at least I thought) filled > those two dependencies. > > What must a package have in its control file in order to effectively > supercede packages in this fashion? From what I gather from the > documentation, it'd seem that what I am doing _should_ work, but > clearly I don't get it. Currently you need a real package to fulfill versioned dependencies. Sven ¹ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=24934 -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Updating/replacing packages
On Thu, 16 Apr 2009 09:56:16 +0200 Sven Joachim wrote: > On 2009-04-16 09:19 +0200, Michael B. Trausch wrote: > > > When I look at libboo2.0-cil's information, it says that it Depends > > on libmono-corlib2.0-cil (>= 1.2.2.1) (my package replaces that > > one, and the package version is 2.4), and on libmono-system2.0-cil > > (>= 2.0) (again, my package replaces that one, and the package > > version is 2.4). > > That does not work because a versioned Provides is not implemented. > See #24394¹ and siblings. > > > What must a package have in its control file in order to effectively > > supercede packages in this fashion? From what I gather from the > > documentation, it'd seem that what I am doing _should_ work, but > > clearly I don't get it. > > Currently you need a real package to fulfill versioned dependencies. > > ¹ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=24934 Okay... one way around this would be to build a bunch of empty, versioned, "stub" packages, then. Is there a way to tell debuild to do that when it is processing the source? That way, when versioned Provides become possible, the stub packages can just be removed and it would then (at least in theory) work fine? The main point is not to manage 100+ splits from a single source package, because major releases from upstream will nearly always likely break those, though they won't break the overall package's functionality since the package knows how to locate its own files. Creating 100+ empty stub packages would be fine, since they would have no content to actually manage. Thank you, Mike -- Understand that [Blu-Ray] is the last physical format there will ever be. --- Bill Gates, 2005 signature.asc Description: PGP signature
Re: Transition from dpkg to GNU install-info
On Di, 14 Apr 2009, Norbert Preining wrote: > New version attached, thanks for reviewing Any comments on that? And, comments on upload to experimental or unstable? I want to upload that before tomorrow because tomorrow I am leaving for one week in Switzerland. That would be a good time to let it hang in the NEW queue. Thanks. Best wishes Norbert --- Dr. Norbert Preining Vienna University of Technology Debian Developer Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- SCONSER (n.) A person who looks around then when talking to you, to see if there's anyone more interesting about. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Transition from dpkg to GNU install-info
On Thu, 16 Apr 2009, Norbert Preining wrote: > On Di, 14 Apr 2009, Norbert Preining wrote: > > New version attached, thanks for reviewing > > Any comments on that? Looks fine for me. I would have avoided bashisms but since you explicitely use bash, it's ok. > And, comments on upload to experimental or unstable? Let's go to experimental first so that we can better control when it lands in unstable. > I want to upload that before tomorrow because tomorrow I am leaving for > one week in Switzerland. That would be a good time to let it hang in the > NEW queue. It's best to start this when you are around anyway, so experimental is better. Cheers, -- Raphaël Hertzog Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny : http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/ -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Transition from dpkg to GNU install-info
On Do, 16 Apr 2009, Raphael Hertzog wrote: > Looks fine for me. I would have avoided bashisms but since you explicitely > use bash, it's ok. Sorry, I always and ever programmed if in sh then for bash. I have no idea what are bashism and what not. If you send a dash-compliant version it would be fine for me to include that, but I am not able to do it myself. > Let's go to experimental first so that we can better control when it lands > in unstable. Fine, will do that tomorrow or today. > It's best to start this when you are around anyway, so experimental is > better. Yes, but NEW will take at least a week, so I will do it now. Best wishes Norbert --- Dr. Norbert Preining Vienna University of Technology Debian Developer Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- GREELEY (n.) Someone who continually annoys you by continually apologising for annoying you. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Transition from dpkg to GNU install-info
On Thu, 16 Apr 2009, Norbert Preining wrote: > On Do, 16 Apr 2009, Raphael Hertzog wrote: > > Looks fine for me. I would have avoided bashisms but since you explicitely > > use bash, it's ok. > > Sorry, I always and ever programmed if in sh then for bash. I have no > idea what are bashism and what not. If you send a dash-compliant version > it would be fine for me to include that, but I am not able to do it > myself. Try running it with #!/bin/dash and you can also use checkbashism (of devscripts) to verify your script. > > It's best to start this when you are around anyway, so experimental is > > better. > > Yes, but NEW will take at least a week, so I will do it now. Not if we prod an ftp assistant (one is even a dpkg co-maintainer :)). Cheers, -- Raphaël Hertzog Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny : http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/ -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Transition from dpkg to GNU install-info
On Do, 16 Apr 2009, Raphael Hertzog wrote: > Try running it with #!/bin/dash and you can also use checkbashism (of > devscripts) to verify your script. Ok, maybe for one of the next versions ... > > Yes, but NEW will take at least a week, so I will do it now. > > Not if we prod an ftp assistant (one is even a dpkg co-maintainer :)). Ahhh ;-) Well, I am not used to that. I have anyway uploaded now, so here we go ... Best wishes Norbert --- Dr. Norbert Preining Vienna University of Technology Debian Developer Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- HALIFAX (n.) The green synthetic astroturf on which greengrocers display their vegetables. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org