sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 14835] New: Duplicates in install log & false positive from gaze alien
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 14835] New: Duplicates in install log & false positive from gaze alien
- Date: 15 Oct 2008 17:09:12 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=14835
Summary: Duplicates in install log & false positive from gaze
alien
Product: Sorcery
Version: 1.14.x
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Sorcery
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: mikael.morin AT tele2.fr
Hi,
I discovered that gaze alien wrongly reported some valid sorcery-installed
files as alien.
I'll take the example of some emacs files.
$ sorcery -v
1.14.2-rc5
$ gaze alien
[...]
/usr/share/emacs/22.3/lisp/abbrev.el.gz
/usr/share/emacs/22.3/lisp/abbrevlist.el.gz
/usr/share/emacs/22.3/lisp/add-log.el.gz
[...]
$ gaze install emacs
[...]
/usr/share/emacs/22.3/lisp/./abbrev.el.gz
/usr/share/emacs/22.3/lisp/./abbrevlist.el.gz
/usr/share/emacs/22.3/lisp/./add-log.el.gz
[...]
It seems that the install script doesn't handle single dots in path names.
And there are duplicates in the install log:
$ gaze install emacs
[...]
/usr/share/emacs/22.3/lisp/./abbrev.elc
/usr/share/emacs/22.3/lisp/abbrev.elc
/usr/share/emacs/22.3/lisp/./abbrevlist.elc
/usr/share/emacs/22.3/lisp/abbrevlist.elc
/usr/share/emacs/22.3/lisp/./add-log.elc
/usr/share/emacs/22.3/lisp/add-log.elc
[...]
As duplicates are indeed a bad thing, I decided to fix the install script
instead of gaze alien:
*** /root/libtrack.old 2008-10-11 17:25:07.000000000 +0200
--- /var/lib/sorcery/modules/libtrack 2008-10-11 17:27:19.000000000 +0200
***************
*** 227,232 ****
--- 227,233 ----
filter_excluded > $OUTPUT
else
parse_iw $INPUT |
+ sed "s#/\(\./\)\+#/#g" |
sort |
uniq |
install_log_filter $INSTALL_ROOT "" |
With this change, gaze alien doesn't report any more file from emacs, once
emacs is recast.
One could add the same fix to gaze alien to handle not-recast spells, but I'm
not sure it's useful as the bug will disappear as spells are updated.
I dont'know if this happens as well with staged install.
Could this patch be integrated ?
Thanks
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-
[SM-Sorcery-Bugs] [Bug 14835] New: Duplicates in install log & false positive from gaze alien,
bugzilla-daemon, 10/15/2008
- [SM-Sorcery-Bugs] [Bug 14835] Duplicates in install log & false positive from gaze alien, bugzilla-daemon, 10/15/2008
Archive powered by MHonArc 2.6.24.