On Monday, May 12, 2014 22:57:37 you wrote:
> Thanks for the report.
> What's weird is that I have exactly the same version as you do but
> don't have the same things:
[...]
> There has been a lot of modification of symlinks in the last packages
> steps. Could you try and reinstall asciidoc (using purge):
> sudo apt-get purge asciidoc
> sudo apt-get install asciidoc
> 
> and tell me if the issue is still there please?

Alright, I actually I tried the purge trick first. After a purge and a 
reinstall, now everything works correctly and the symlinks are now what I 
could consider correct (e.g. /usr/share/doc/asciidoc/images/icons is a 
symlink to /usr/share/asciidoc/icons, which actually contains icons, etc). 

So that is good, but it is a workaround for the actual problem:

What is happening is that it is an upgrade issue that won't occur when 
installing this asciidoc from scratch, but happens when upgrading asciidoc 
from a previous verison.

In this case, I can reproduce it easily by installing 8.6.7-1 and then 
upgrading to 8.6.9-2. Below is an annotated typescript that shows the issue. 
You should be able to reproduce it yourself by following the same steps, but 
please let me know if you need more information.

Script started on Sat 24 May 2014 03:49:13 PM MDT

### First I'm purging asciidoc completely. (It's actually already gone
### because I ran this before I started the typescript).

tonberry:~# aptitude purge asciidoc
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
### Now I'm putting in asciidoc 8.6.7-1

tonberry:~# aptitude install asciidoc=8.6.7-1
The following NEW packages will be installed:
  asciidoc docbook-utils{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,491 kB of archives. After unpacking 3,466 kB will be used.
Do you want to continue? [Y/n/?] 
Selecting previously unselected package asciidoc.
(Reading database ... 347672 files and directories currently installed.)
Unpacking asciidoc (from .../asciidoc_8.6.7-1_all.deb) ...
Selecting previously unselected package docbook-utils.
Unpacking docbook-utils (from .../docbook-utils_0.6.14-3_all.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file...
Registering documents with dhelp...
Registering documents with scrollkeeper...
Setting up asciidoc (8.6.7-1) ...
Setting up docbook-utils (0.6.14-3) ...
                                         
### Notice that all the icons are installed correctly where asciidoc can
### find them:

tonberry:~# ls -l /etc/asciidoc/images/
total 144
-rw-r--r-- 1 root root 128142 Jan 25  2011 highlighter.png
drwxr-xr-x 3 root root   4096 May 24 15:49 icons
-rw-r--r-- 1 root root    292 Apr 24  2009 smallnew.png
-rw-r--r-- 1 root root   6515 Apr 25  2009 tiger.png
tonberry:~# ls -l /etc/asciidoc/images/icons/
total 48
drwxr-xr-x 2 root root 4096 May 24 15:49 callouts
-rw-r--r-- 1 root root 2734 Mar  7  2009 caution.png
-rw-r--r-- 1 root root 2599 Mar  7  2009 example.png
-rw-r--r-- 1 root root 1340 Oct 28  2007 home.png
-rw-r--r-- 1 root root 2980 Mar  7  2009 important.png
-rw-r--r-- 1 root root 1302 Oct 28  2007 next.png
-rw-r--r-- 1 root root 2494 Mar  7  2009 note.png
-rw-r--r-- 1 root root 1348 Oct 28  2007 prev.png
-rw-r--r-- 1 root root  226 Oct 28  2007 README
-rw-r--r-- 1 root root 2718 Mar  7  2009 tip.png
-rw-r--r-- 1 root root 1320 Oct 28  2007 up.png
-rw-r--r-- 1 root root 3214 Mar  7  2009 warning.png

### Now I'm upgrading to 8.6.9-2, which is where I see the problem:

tonberry:~# aptitude install asciidoc=8.6.9-2
The following packages will be upgraded: 
  asciidoc 
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/814 kB of archives. After unpacking 824 kB will be freed.
Do you want to continue? [Y/n/?] 
Reading changelogs... Done               
(Reading database ... 348044 files and directories currently installed.)
Preparing to replace asciidoc 8.6.7-1 (using .../asciidoc_8.6.9-2_all.deb) 
...
Moving obsolete conffile /etc/asciidoc/wordpress.conf out of the way...
Unpacking replacement asciidoc ...
Processing triggers for man-db ...
Setting up asciidoc (8.6.9-2) ...
Installing new version of config file /etc/asciidoc/html5.conf ...
Installing new version of config file /etc/asciidoc/html4.conf ...
Installing new version of config file /etc/asciidoc/help.conf ...
Installing new version of config file /etc/asciidoc/stylesheets/asciidoc.css 
...
Installing new version of config file /etc/asciidoc/stylesheets/pygments.css 
...
Installing new version of config file /etc/asciidoc/docbook45.conf ...
Installing new version of config file /etc/asciidoc/docbook-xsl/htmlhelp.xsl 
...
Installing new version of config file /etc/asciidoc/testasciidoc.conf ...
Installing new version of config file /etc/asciidoc/filters/source/source-
highlight-filter.conf ...
Installing new version of config file 
/etc/asciidoc/filters/music/music2png.py ...
Installing new version of config file /etc/asciidoc/filters/music/music-
filter.conf ...
Installing new version of config file /etc/asciidoc/filters/latex/latex-
filter.conf ...
Installing new version of config file /etc/asciidoc/filters/code/code-
filter.py ...
Installing new version of config file 
/etc/asciidoc/filters/graphviz/graphviz-filter.conf ...
Installing new version of config file /etc/asciidoc/slidy.conf ...
Installing new version of config file /etc/asciidoc/xhtml11.conf ...
Installing new version of config file /etc/asciidoc/asciidoc.conf ...
Removing obsolete conffile /etc/asciidoc/wordpress.conf ...
                                         
Current status: 0 updates [-1].

### Notice that now the icons can't be found. They actually are installed,
### but due to symlink issues during the upgrade, asciidoc can't find them.

tonberry:~# ls -l /etc/asciidoc/images/
total 144
-rw-r--r-- 1 root root 128142 Jan 25  2011 highlighter.png
drwxr-xr-x 2 root root   4096 May 24 15:51 icons
-rw-r--r-- 1 root root    292 Apr 24  2009 smallnew.png
-rw-r--r-- 1 root root   6515 Apr 25  2009 tiger.png
tonberry:~# ls -l /etc/asciidoc/images/icons/
total 0

### Okay, now I'm purging asciidoc again:

tonberry:~# aptitude purge asciidoc
The following packages will be REMOVED:  
  asciidoc{p} docbook-utils{u} 
0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 2,642 kB will be freed.
Do you want to continue? [Y/n/?] 
(Reading database ... 347952 files and directories currently installed.)
Removing asciidoc ...
Purging configuration files for asciidoc ...
Processing triggers for man-db ...
(Reading database ... 347742 files and directories currently installed.)
Removing docbook-utils ...
Processing triggers for doc-base ...
Processing 1 removed doc-base file...
Registering documents with dhelp...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
                                         
### Now put back in the same version we just had, which was showing the
### problem, 8.6.9-2:

tonberry:~# aptitude install asciidoc=8.6.9-2
The following NEW packages will be installed:
  asciidoc docbook-utils{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/883 kB of archives. After unpacking 2,642 kB will be used.
Do you want to continue? [Y/n/?] 
Selecting previously unselected package asciidoc.
(Reading database ... 347672 files and directories currently installed.)
Unpacking asciidoc (from .../asciidoc_8.6.9-2_all.deb) ...
Selecting previously unselected package docbook-utils.
Unpacking docbook-utils (from .../docbook-utils_0.6.14-3_all.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file...
Registering documents with dhelp...
Registering documents with scrollkeeper...
Setting up asciidoc (8.6.9-2) ...
Setting up docbook-utils (0.6.14-3) ...

### This time, everything is exactly where it should be! So there is no
### problem with 8.6.9-2 when installed from scratch, but when installing
### it as an upgrade from 8.6.7-1 it messes the icons up:
                                         
tonberry:~# ls -l /etc/asciidoc/images/
total 140
-rw-r--r-- 1 root root 128142 Jan 25  2011 highlighter.png
lrwxrwxrwx 1 root root      8 Mar 11 15:46 icons -> ../icons
-rw-r--r-- 1 root root    292 Apr 24  2009 smallnew.png
-rw-r--r-- 1 root root   6515 Apr 25  2009 tiger.png
tonberry:~# ls -l /etc/asciidoc/images/icons
lrwxrwxrwx 1 root root 8 Mar 11 15:46 /etc/asciidoc/images/icons -> ../icons
tonberry:~# 
tonberry:~# ls -l /etc/asciidoc/images/icons/
total 48
drwxr-xr-x 2 root root 4096 May 24 15:53 callouts
-rw-r--r-- 1 root root 2734 Mar  7  2009 caution.png
-rw-r--r-- 1 root root 2599 Mar  7  2009 example.png
-rw-r--r-- 1 root root 1340 Oct 28  2007 home.png
-rw-r--r-- 1 root root 2980 Mar  7  2009 important.png
-rw-r--r-- 1 root root 1302 Oct 28  2007 next.png
-rw-r--r-- 1 root root 2494 Mar  7  2009 note.png
-rw-r--r-- 1 root root 1348 Oct 28  2007 prev.png
-rw-r--r-- 1 root root  226 Oct 28  2007 README
-rw-r--r-- 1 root root 2718 Mar  7  2009 tip.png
-rw-r--r-- 1 root root 1320 Oct 28  2007 up.png
-rw-r--r-- 1 root root 3214 Mar  7  2009 warning.png
tonberry:~# exit
exit

Script done on Sat 24 May 2014 03:54:11 PM MDT

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to