Re: what to do with binary conffiles ?
On Wed, Jul 31, 2002 at 08:52:01AM +0200, Eric Van Buggenhaut wrote: > On Tue, Jul 30, 2002 at 12:24 -0500, Mark Brown wrote: > > This is an error. *Nothing* outside of /etc should be a conffile. See > > policy 11.7.2. > We're talking about conffiles here. Please see Policy 11.7.1: Definitions That looks buggy. I'm having a hard time thinking of any cases where you'd want to make something a conffile without it also being a configuration file. In any case, the files in question are certainly configuration files. > Please CC'me on reply If you want to be CCed on replies don't set Mail-Follwup-To: to point to the list only. -- "You grabbed my hand and we fell into it, like a daydream - or a fever."
Re: what to do with binary conffiles ?
On Wed, Jul 31, 2002 at 08:52:01AM +0200, Eric Van Buggenhaut wrote: > On Tue, Jul 30, 2002 at 12:24 -0500, Mark Brown wrote: > > This is an error. *Nothing* outside of /etc should be a conffile. See > > policy 11.7.2. > We're talking about conffiles here. Please see Policy 11.7.1: Definitions That looks buggy. I'm having a hard time thinking of any cases where you'd want to make something a conffile without it also being a configuration file. In any case, the files in question are certainly configuration files. > Please CC'me on reply If you want to be CCed on replies don't set Mail-Follwup-To: to point to the list only. -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
Quoting Mark Brown <[EMAIL PROTECTED]> (2002-07-30 05:59:10 BST): > On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > > > I don't agree with you here. When you have games that use high scores > > files, these are placed in /var as per FHS 5.4 > > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > > obvioulsy tagged as conffiles (you don't want to lose your > > high scores files when upgrading the game). > > This is an error. *Nothing* outside of /etc should be a conffile. See > policy 11.7.2. In most cases I'm aware of the game knows how to create > the scorefile at runtime but YMMV. I agree with your solution but not with the statement that nothing outside /etc may be a conffile. Policy 11.7.1 says, "*Almost* all conffiles are configuration files..." (my emphasis). Nothing outside /etc may be a config file, sure. But the distinction must be made between a config file and a conffile. See Policy 11.7.1 for elucidation. -- Andrew Stribblehill <[EMAIL PROTECTED]> Systems programmer, IT Service, University of Durham, England
Re: what to do with binary conffiles ?
Goswin> An even better way would be the following: Goswin> 1. keep the original book. Goswin> 2. put newly learned stuff into a different file, a book-diff one Goswin>could say. This could be in ~/.crafty/ or next to the original book Goswin>depending on a debconf question and overridable by the users Goswin>config. No need for your grandmaster chessplayer user to ruin Goswin>crafty for everyone else. I am afraid crafty beats non-grandmasters with or without a book :-) Anyway, from what I remember crafty can only use 1 book during a game, so your suggestion can't be implemented without modifying the binary. Goswin> PS: any chance of using the same format as chess for books? Once 30MB Goswin> should be enough for both. Unfortunately not - each of the 3 engines I know of in debian (gnuchess, crafty, phalanx) uses a different format. -- Ian Zimmerman, Oakland, California, U.S.A. GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087 EngSoc adopts market economy: cheap is wasteful, efficient is expensive.
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 12:24 -0500, Mark Brown wrote: > On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > > I don't agree with you here. When you have games that use high scores > > files, these are placed in /var as per FHS 5.4 > > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > > obvioulsy tagged as conffiles (you don't want to lose your > > high scores files when upgrading the game). > This is an error. *Nothing* outside of /etc should be a conffile. See > policy 11.7.2. We're talking about conffiles here. Please see Policy 11.7.1: Definitions Please CC'me on reply -- Eric VAN BUGGENHAUT [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
Eric Van Buggenhaut <[EMAIL PROTECTED]> writes: > Hi everyone, > > I'm the maintainer of crafty, a chess engine > (http://packages.debian.org/crafty). > > When you install crafty for the first time, it installed compiled > opening books in /var/lib/crafty. Then, as it plays against you, it > 'learns' from the games and add the new moves to the opening books > that live in /var/lib/crafty. Put the book into doc/crafty/examples/default-book or something. People might want to start fresh. In postinst copy the file if not present. An even better way would be the following: 1. keep the original book. 2. put newly learned stuff into a different file, a book-diff one could say. This could be in ~/.crafty/ or next to the original book depending on a debconf question and overridable by the users config. No need for your grandmaster chessplayer user to ruin crafty for everyone else. Some notes: Put the opening books into a extra deb (binary-all) if not yet. MfG Goswin PS: any chance of using the same format as chess for books? Once 30MB should be enough for both.
Re: what to do with binary conffiles ?
Quoting Mark Brown <[EMAIL PROTECTED]> (2002-07-30 05:59:10 BST): > On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > > > I don't agree with you here. When you have games that use high scores > > files, these are placed in /var as per FHS 5.4 > > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > > obvioulsy tagged as conffiles (you don't want to lose your > > high scores files when upgrading the game). > > This is an error. *Nothing* outside of /etc should be a conffile. See > policy 11.7.2. In most cases I'm aware of the game knows how to create > the scorefile at runtime but YMMV. I agree with your solution but not with the statement that nothing outside /etc may be a conffile. Policy 11.7.1 says, "*Almost* all conffiles are configuration files..." (my emphasis). Nothing outside /etc may be a config file, sure. But the distinction must be made between a config file and a conffile. See Policy 11.7.1 for elucidation. -- Andrew Stribblehill <[EMAIL PROTECTED]> Systems programmer, IT Service, University of Durham, England -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
Goswin> An even better way would be the following: Goswin> 1. keep the original book. Goswin> 2. put newly learned stuff into a different file, a book-diff one Goswin>could say. This could be in ~/.crafty/ or next to the original book Goswin>depending on a debconf question and overridable by the users Goswin>config. No need for your grandmaster chessplayer user to ruin Goswin>crafty for everyone else. I am afraid crafty beats non-grandmasters with or without a book :-) Anyway, from what I remember crafty can only use 1 book during a game, so your suggestion can't be implemented without modifying the binary. Goswin> PS: any chance of using the same format as chess for books? Once 30MB Goswin> should be enough for both. Unfortunately not - each of the 3 engines I know of in debian (gnuchess, crafty, phalanx) uses a different format. -- Ian Zimmerman, Oakland, California, U.S.A. GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087 EngSoc adopts market economy: cheap is wasteful, efficient is expensive. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 12:24 -0500, Mark Brown wrote: > On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > > I don't agree with you here. When you have games that use high scores > > files, these are placed in /var as per FHS 5.4 > > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > > obvioulsy tagged as conffiles (you don't want to lose your > > high scores files when upgrading the game). > This is an error. *Nothing* outside of /etc should be a conffile. See > policy 11.7.2. We're talking about conffiles here. Please see Policy 11.7.1: Definitions Please CC'me on reply -- Eric VAN BUGGENHAUT [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
Eric Van Buggenhaut <[EMAIL PROTECTED]> writes: > Hi everyone, > > I'm the maintainer of crafty, a chess engine (http://packages.debian.org/crafty). > > When you install crafty for the first time, it installed compiled > opening books in /var/lib/crafty. Then, as it plays against you, it > 'learns' from the games and add the new moves to the opening books > that live in /var/lib/crafty. Put the book into doc/crafty/examples/default-book or something. People might want to start fresh. In postinst copy the file if not present. An even better way would be the following: 1. keep the original book. 2. put newly learned stuff into a different file, a book-diff one could say. This could be in ~/.crafty/ or next to the original book depending on a debconf question and overridable by the users config. No need for your grandmaster chessplayer user to ruin crafty for everyone else. Some notes: Put the opening books into a extra deb (binary-all) if not yet. MfG Goswin PS: any chance of using the same format as chess for books? Once 30MB should be enough for both. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tuesday, July 30, 2002, at 09:34 PM, Ian Zimmerman wrote: The implication might be that the best way is not to ship the dynamic book files at all, and just assume they are in the user's home directory or subdirectory thereof and document where to get them. That's all well and good if you've got a nice network connection but is going to suck if you have to download 30MB over a modem having gone to the trouble of obtaining CDs or don't have net access at all at the right time. There are still 9600 baud modems in production and places where it's hard to obtain net access at all. -- "You grabbed my hand and we fell into it, like a daydream - or a fever"
Re: what to do with binary conffiles ?
Eric> One drawback I see is that crafty-books-medium install a 30MB Eric> opening book file, if we go copying it from /usr/lib to Eric> /var/lib, we're wasting 30MB user's disk space, he might not Eric> like it. Sven> What about a symlink ? How would that help? The whole point is to have 2 distinct data files. Since I actually use chess engines (I have used crafty but I switched to the free phalanx), here's another issue with them that bothered me: since debian is a multiuser system, multiple users can possibly run chess program at the same time. What happens to the learning/book file in that case? Are the programs smart enough to correctly handle concurrent access? I strongly doubt it. The implication might be that the best way is not to ship the dynamic book files at all, and just assume they are in the user's home directory or subdirectory thereof and document where to get them. -- Ian Zimmerman, Oakland, California, U.S.A. GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087 EngSoc adopts market economy: cheap is wasteful, efficient is expensive.
Re: what to do with binary conffiles ?
On Tuesday, July 30, 2002, at 09:34 PM, Ian Zimmerman wrote: > The implication might be that the best way is not to ship the dynamic > book files at all, and just assume they are in the user's home > directory or subdirectory thereof and document where to get them. That's all well and good if you've got a nice network connection but is going to suck if you have to download 30MB over a modem having gone to the trouble of obtaining CDs or don't have net access at all at the right time. There are still 9600 baud modems in production and places where it's hard to obtain net access at all. -- "You grabbed my hand and we fell into it, like a daydream - or a fever" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
Eric> One drawback I see is that crafty-books-medium install a 30MB Eric> opening book file, if we go copying it from /usr/lib to Eric> /var/lib, we're wasting 30MB user's disk space, he might not Eric> like it. Sven> What about a symlink ? How would that help? The whole point is to have 2 distinct data files. Since I actually use chess engines (I have used crafty but I switched to the free phalanx), here's another issue with them that bothered me: since debian is a multiuser system, multiple users can possibly run chess program at the same time. What happens to the learning/book file in that case? Are the programs smart enough to correctly handle concurrent access? I strongly doubt it. The implication might be that the best way is not to ship the dynamic book files at all, and just assume they are in the user's home directory or subdirectory thereof and document where to get them. -- Ian Zimmerman, Oakland, California, U.S.A. GPG: 433BA087 9C0F 194F 203A 63F7 B1B8 6E5A 8CA3 27DB 433B A087 EngSoc adopts market economy: cheap is wasteful, efficient is expensive. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tuesday, July 30, 2002, at 11:14 AM, Eric Van Buggenhaut wrote: On Tue, Jul 30, 2002 at 03:33 +0100, Mark Brown wrote: I don't agree with you here. When you have games that use high scores files, these are placed in /var as per FHS 5.4 (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and obvioulsy tagged as conffiles (you don't want to lose your high scores files when upgrading the game). IANADD, but I didn't think packages shoulde be extracting anything straight in to /var other than setting up directories perhaps. And if your debian package doesn't blindly extract anything into /var then you don't need to worry about them being overwritten when your package is unpacked and you no longer need to mark them as conffiles. > Why not just ship the files in /usr/lib or something and then in the > postinst copy them to the place the package access them from if they > aren't already there? One drawback I see is that crafty-books-medium install a 30MB opening book file, if we go copying it from /usr/lib to /var/lib, we're wasting 30MB user's disk space, he might not like it. I think copying the files /usr/lib into /var/lib is the way to go. Why don't you put a note in README.Debian that tells the user he can safely remove crafty-book-medium after it is installed the first time. -- Paul Baker "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759 GPG Key: http://homepage.mac.com/pauljbaker/public.asc
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > On Tue, Jul 30, 2002 at 03:33 +0100, Mark Brown wrote: > > On Tue, Jul 30, 2002 at 04:15:11PM +0200, Eric Van Buggenhaut wrote: > > > > > When you install crafty for the first time, it installed compiled > > > opening books in /var/lib/crafty. Then, as it plays against you, it > > > 'learns' from the games and add the new moves to the opening books > > > that live in /var/lib/crafty. > > > > > Because You don't want your 'updated' opening books to be replaced by > > > crafty's default ones when you install a new version of the package, > > > these opening books are marked as conffiles. > > > > The bugs aren't just about the binary bit, they're also about the fact > > that you shouldn't have conffiles in /var. > > > > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). > > > > So, is it a problem to have conffiles being binary ? Do you have any > > > idea about how I could fix this (if it actually has to be fixed)? > > > > You definately need to remove the conffiles from /var. > > > > Why not just ship the files in /usr/lib or something and then in the > > postinst copy them to the place the package access them from if they > > aren't already there? > > > > I like this idea. Thanks for the tip. > > One drawback I see is that crafty-books-medium install a 30MB opening > book file, if we go copying it from /usr/lib to /var/lib, we're > wasting 30MB user's disk space, he might not like it. What about a symlink ? Friendly, Sven Luther
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). This is an error. *Nothing* outside of /etc should be a conffile. See policy 11.7.2. In most cases I'm aware of the game knows how to create the scorefile at runtime but YMMV. > One drawback I see is that crafty-books-medium install a 30MB opening > book file, if we go copying it from /usr/lib to /var/lib, we're > wasting 30MB user's disk space, he might not like it. OTOH, the prompts that may be generated by modified conffiles are going to be just as confusing for something like this that the user will not be aware they've modified (and can't review the diffs for effectively). -- "You grabbed my hand and we fell into it, like a daydream - or a fever."
Re: what to do with binary conffiles ?
Eric Van Buggenhaut wrote: > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). Untrue. None of the files in /var/games are conffiles, they are all conditionally copied in in the postinst. -- see shy jo
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 03:33 +0100, Mark Brown wrote: > On Tue, Jul 30, 2002 at 04:15:11PM +0200, Eric Van Buggenhaut wrote: > > > When you install crafty for the first time, it installed compiled > > opening books in /var/lib/crafty. Then, as it plays against you, it > > 'learns' from the games and add the new moves to the opening books > > that live in /var/lib/crafty. > > > Because You don't want your 'updated' opening books to be replaced by > > crafty's default ones when you install a new version of the package, > > these opening books are marked as conffiles. > > The bugs aren't just about the binary bit, they're also about the fact > that you shouldn't have conffiles in /var. > I don't agree with you here. When you have games that use high scores files, these are placed in /var as per FHS 5.4 (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and obvioulsy tagged as conffiles (you don't want to lose your high scores files when upgrading the game). > > So, is it a problem to have conffiles being binary ? Do you have any > > idea about how I could fix this (if it actually has to be fixed)? > > You definately need to remove the conffiles from /var. > > Why not just ship the files in /usr/lib or something and then in the > postinst copy them to the place the package access them from if they > aren't already there? > I like this idea. Thanks for the tip. One drawback I see is that crafty-books-medium install a 30MB opening book file, if we go copying it from /usr/lib to /var/lib, we're wasting 30MB user's disk space, he might not like it. -- Eric VAN BUGGENHAUT [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tuesday, July 30, 2002, at 11:14 AM, Eric Van Buggenhaut wrote: > On Tue, Jul 30, 2002 at 03:33 +0100, Mark Brown wrote: > > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). IANADD, but I didn't think packages shoulde be extracting anything straight in to /var other than setting up directories perhaps. And if your debian package doesn't blindly extract anything into /var then you don't need to worry about them being overwritten when your package is unpacked and you no longer need to mark them as conffiles. > > > Why not just ship the files in /usr/lib or something and then in the > > postinst copy them to the place the package access them from if they > > aren't already there? > One drawback I see is that crafty-books-medium install a 30MB opening > book file, if we go copying it from /usr/lib to /var/lib, we're > wasting 30MB user's disk space, he might not like it. I think copying the files /usr/lib into /var/lib is the way to go. Why don't you put a note in README.Debian that tells the user he can safely remove crafty-book-medium after it is installed the first time. -- Paul Baker "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759 GPG Key: http://homepage.mac.com/pauljbaker/public.asc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > On Tue, Jul 30, 2002 at 03:33 +0100, Mark Brown wrote: > > On Tue, Jul 30, 2002 at 04:15:11PM +0200, Eric Van Buggenhaut wrote: > > > > > When you install crafty for the first time, it installed compiled > > > opening books in /var/lib/crafty. Then, as it plays against you, it > > > 'learns' from the games and add the new moves to the opening books > > > that live in /var/lib/crafty. > > > > > Because You don't want your 'updated' opening books to be replaced by > > > crafty's default ones when you install a new version of the package, > > > these opening books are marked as conffiles. > > > > The bugs aren't just about the binary bit, they're also about the fact > > that you shouldn't have conffiles in /var. > > > > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). > > > > So, is it a problem to have conffiles being binary ? Do you have any > > > idea about how I could fix this (if it actually has to be fixed)? > > > > You definately need to remove the conffiles from /var. > > > > Why not just ship the files in /usr/lib or something and then in the > > postinst copy them to the place the package access them from if they > > aren't already there? > > > > I like this idea. Thanks for the tip. > > One drawback I see is that crafty-books-medium install a 30MB opening > book file, if we go copying it from /usr/lib to /var/lib, we're > wasting 30MB user's disk space, he might not like it. What about a symlink ? Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 06:14:55PM +0200, Eric Van Buggenhaut wrote: > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). This is an error. *Nothing* outside of /etc should be a conffile. See policy 11.7.2. In most cases I'm aware of the game knows how to create the scorefile at runtime but YMMV. > One drawback I see is that crafty-books-medium install a 30MB opening > book file, if we go copying it from /usr/lib to /var/lib, we're > wasting 30MB user's disk space, he might not like it. OTOH, the prompts that may be generated by modified conffiles are going to be just as confusing for something like this that the user will not be aware they've modified (and can't review the diffs for effectively). -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
Eric Van Buggenhaut wrote: > I don't agree with you here. When you have games that use high scores > files, these are placed in /var as per FHS 5.4 > (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and > obvioulsy tagged as conffiles (you don't want to lose your > high scores files when upgrading the game). Untrue. None of the files in /var/games are conffiles, they are all conditionally copied in in the postinst. -- see shy jo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 04:15:11PM +0200, Eric Van Buggenhaut wrote: > When you install crafty for the first time, it installed compiled > opening books in /var/lib/crafty. Then, as it plays against you, it > 'learns' from the games and add the new moves to the opening books > that live in /var/lib/crafty. > Because You don't want your 'updated' opening books to be replaced by > crafty's default ones when you install a new version of the package, > these opening books are marked as conffiles. The bugs aren't just about the binary bit, they're also about the fact that you shouldn't have conffiles in /var. > So, is it a problem to have conffiles being binary ? Do you have any > idea about how I could fix this (if it actually has to be fixed)? You definately need to remove the conffiles from /var. Why not just ship the files in /usr/lib or something and then in the postinst copy them to the place the package access them from if they aren't already there? -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
what to do with binary conffiles ?
Hi everyone, I'm the maintainer of crafty, a chess engine (http://packages.debian.org/crafty). When you install crafty for the first time, it installed compiled opening books in /var/lib/crafty. Then, as it plays against you, it 'learns' from the games and add the new moves to the opening books that live in /var/lib/crafty. Because You don't want your 'updated' opening books to be replaced by crafty's default ones when you install a new version of the package, these opening books are marked as conffiles. Now, recently, bugs have been filed against the package, complaining about conffiles being binaries: http://bugs.debian.org/154798 http://bugs.debian.org/154502 So, is it a problem to have conffiles being binary ? Do you have any idea about how I could fix this (if it actually has to be fixed)? Please CC me on reply. Thanks. -- Eric VAN BUGGENHAUT [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 03:33 +0100, Mark Brown wrote: > On Tue, Jul 30, 2002 at 04:15:11PM +0200, Eric Van Buggenhaut wrote: > > > When you install crafty for the first time, it installed compiled > > opening books in /var/lib/crafty. Then, as it plays against you, it > > 'learns' from the games and add the new moves to the opening books > > that live in /var/lib/crafty. > > > Because You don't want your 'updated' opening books to be replaced by > > crafty's default ones when you install a new version of the package, > > these opening books are marked as conffiles. > > The bugs aren't just about the binary bit, they're also about the fact > that you shouldn't have conffiles in /var. > I don't agree with you here. When you have games that use high scores files, these are placed in /var as per FHS 5.4 (http://www.debian.org/doc/packaging-manuals/fhs/fhs-5.4.html) and obvioulsy tagged as conffiles (you don't want to lose your high scores files when upgrading the game). > > So, is it a problem to have conffiles being binary ? Do you have any > > idea about how I could fix this (if it actually has to be fixed)? > > You definately need to remove the conffiles from /var. > > Why not just ship the files in /usr/lib or something and then in the > postinst copy them to the place the package access them from if they > aren't already there? > I like this idea. Thanks for the tip. One drawback I see is that crafty-books-medium install a 30MB opening book file, if we go copying it from /usr/lib to /var/lib, we're wasting 30MB user's disk space, he might not like it. -- Eric VAN BUGGENHAUT [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: what to do with binary conffiles ?
On Tue, Jul 30, 2002 at 04:15:11PM +0200, Eric Van Buggenhaut wrote: > When you install crafty for the first time, it installed compiled > opening books in /var/lib/crafty. Then, as it plays against you, it > 'learns' from the games and add the new moves to the opening books > that live in /var/lib/crafty. > Because You don't want your 'updated' opening books to be replaced by > crafty's default ones when you install a new version of the package, > these opening books are marked as conffiles. The bugs aren't just about the binary bit, they're also about the fact that you shouldn't have conffiles in /var. > So, is it a problem to have conffiles being binary ? Do you have any > idea about how I could fix this (if it actually has to be fixed)? You definately need to remove the conffiles from /var. Why not just ship the files in /usr/lib or something and then in the postinst copy them to the place the package access them from if they aren't already there? -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
what to do with binary conffiles ?
Hi everyone, I'm the maintainer of crafty, a chess engine (http://packages.debian.org/crafty). When you install crafty for the first time, it installed compiled opening books in /var/lib/crafty. Then, as it plays against you, it 'learns' from the games and add the new moves to the opening books that live in /var/lib/crafty. Because You don't want your 'updated' opening books to be replaced by crafty's default ones when you install a new version of the package, these opening books are marked as conffiles. Now, recently, bugs have been filed against the package, complaining about conffiles being binaries: http://bugs.debian.org/154798 http://bugs.debian.org/154502 So, is it a problem to have conffiles being binary ? Do you have any idea about how I could fix this (if it actually has to be fixed)? Please CC me on reply. Thanks. -- Eric VAN BUGGENHAUT [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]