Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#25808 - [ltris] can't be upgraded due to /var/games/ltris.hscr and is built twice
Attached to Project:
Community Packages
Opened by Heiko Baums (cyberpatrol) - Monday, 29 August 2011, 10:19 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 18 December 2011, 17:13 GMT
Opened by Heiko Baums (cyberpatrol) - Monday, 29 August 2011, 10:19 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 18 December 2011, 17:13 GMT
|
DetailsDescription:
ltris can't be upgraded, because /var/games/ltris.hscr is already existing in the filesystem. If my tests ran correctly this can be avoided by removing touch /var/games/ltris.hscr from post_install() in ltris.install. Without it /var/games/ltris.hscr is automatically created if it doesn't exist. Otherwise it's kept untouched. To be on the safe side a backup=('var/games/ltris.hscr') could be added to the PKGBUILD, but I think it's not necessary. And I'm not sure if it's necessary to run ./configure --prefix=/usr --localstatedir=/var/games make for a second time after make install in package(). I guess it's forgotten to be removed. |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Sunday, 18 December 2011, 17:13 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in ltris 1.0.18-1
Sunday, 18 December 2011, 17:13 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in ltris 1.0.18-1
Believe me, I've tested it.
So the touch command can and should be removed from post_install().
Since I made my tests with pacman -U resp. makepkg -ci I don't know the behaviour of pacman -Syu. So I would suggest adding backup to the PKGBUILD.
Any other command (chown and chmod) in ltris.install should also be moved to the PKGBUILD.
The file ltris.install can then be removed.
Maybe this could be added to pre_upgrade():
if [ -f /var/games/ltris.hscr ]; then
mv /var/games/ltris.hscr /var/games/ltris.hscr.save
echo "/var/games/ltris.hscr.save was created"
fi
Or something like that. Of course, ltris.install needs to be kept then.
And, of course, the lines
./configure --prefix=/usr --localstatedir=/var/games
make
should be removed from package().