Symlinks are screwed up in i686

Magnus, your recent update of the i686 tree screwed up the symlinks for 'repo.db' again, which in turn broke my build. Furthermore, you've again deleted older versions of the updated packages even though I repeatedly asked you not to. This is the third or fourth time that this is happening -- despite the fact that you should know better. It's beginning to look like your breaking the i686 repository for use with my build scripts on purpose. Peter

On Fri, Feb 11, 2011 at 11:38, Peter Simons
Magnus,
your recent update of the i686 tree screwed up the symlinks for 'repo.db' again, which in turn broke my build. Furthermore, you've again deleted older versions of the updated packages even though I repeatedly asked you not to.
This is the third or fourth time that this is happening -- despite the fact that you should know better. It's beginning to look like your breaking the i686 repository for use with my build scripts on purpose.
Would you please put a script in the ~haskell/bin that sets up the links properly? Also, I've now found the '-V' argument for 'sort' so I won't need to remove old packages to fix broken repo DBs. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

On 02/11/2011 12:38 PM, Peter Simons wrote:
your recent update of the i686 tree screwed up the symlinks for 'repo.db' again, which in turn broke my build. Furthermore, you've again deleted older versions of the updated packages even though I repeatedly asked you not to.
Is there a local access and is the naming policy strict enough so that the removal of the old packages can be handled by a simple script over the text listing of the repository directory? If so then lets just write a script which keeps the last two versions of everything. I already proposed this but there was no response and it looks like it is still an issue. Peter.

On Sat, Feb 12, 2011 at 02:25:56PM +0100, Peter Hercek wrote:
On 02/11/2011 12:38 PM, Peter Simons wrote:
your recent update of the i686 tree screwed up the symlinks for 'repo.db' again, which in turn broke my build. Furthermore, you've again deleted older versions of the updated packages even though I repeatedly asked you not to.
Is there a local access and is the naming policy strict enough so that the removal of the old packages can be handled by a simple script over the text listing of the repository directory?
Yes, there is local access, and yes it's easy to extract version info from the filenames alone. I've attached a script I use to list *all* old versions of all packages in a directory; my typical usage is "rm `repo-tidy`".
If so then lets just write a script which keeps the last two versions of everything.
Feel free to modify the script.
I already proposed this but there was no response and it looks like it is still an issue.
Well, to be rather blunt, it's an issue I don't care about at all, so I was waiting for someone who cares to hack it up :-) /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

Hi Peter,
I already proposed [writing a script which keeps the last two versions of everything] but there was no response and it looks like it is still an issue.
yes, this is still an issue. If you have the chance to write a script that can automatically expire old files from the binary repository, then I'd very much like to have it! We can use Cron to run it on the server, or we could integrate it into the "makeworld" script so that it's being run every time we update the repository. I guess the only tricky part is figuring out which packages are "obsolete", i.e. no longer referenced by the "haskell.db.tar.gz" file. Take care, Peter

On Mon, Feb 14, 2011 at 02:36:57PM +0100, Peter Simons wrote:
Hi Peter,
I already proposed [writing a script which keeps the last two versions of everything] but there was no response and it looks like it is still an issue.
yes, this is still an issue. If you have the chance to write a script that can automatically expire old files from the binary repository, then I'd very much like to have it! We can use Cron to run it on the server, or we could integrate it into the "makeworld" script so that it's being run every time we update the repository. I guess the only tricky part is figuring out which packages are "obsolete", i.e. no longer referenced by the "haskell.db.tar.gz" file.
The repo db should always only refer to the latest version of a package, all other packages are obsolete. Calling repo-add on a package will *replace* any previous entry, and there can be at most one previous entry. So finding out which package is obsolete is actually fairly simple. Please take a look at the script I attached to my previous email in this thread, I think it'll only need minor modifications to do this. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term. -- Alan Kay
participants (3)
-
Magnus Therning
-
Peter Hercek
-
Peter Simons