[Slackbuilds-users] pdfstudioviewer 2024.0.1 : typo in slackbuild script?

Douglas Guptill dguptill at accesswave.ca
Fri Mar 6 12:15:17 UTC 2026


Hello again, another thought about the SlackBuild for pdfstudioviewer:

On Fri, Mar 06, 2026 at 01:45:03AM -0400, Douglas Guptill wrote:
> Hello:
> 
> On Fri, Mar 06, 2026 at 12:17:54PM +0700, Willy Sudiarto Raharjo wrote:
> > >The build output included
> > >
> > >  ...<snip>..
> > >  opt/pdfstudioviewer2024/updater
> > >  chmod: cannot operate on dangling symlink './usr/bin/pdfstudioviewer'
> > >
> > >  [Note: this part of the build was not running as user root.
> > >   My SlackBuilds are split into 2 parts; everything up to makepkg,
> > >   which runs as a normal user, and the makepkg, which runs as root.
> > >  ]
> > >
> > >which I concluded came from line 67 in the SlackBuild script
> > >
> > >  ln -s /opt/$PRGNAM$YEAR/$PRGNAM$YEAR $PKG/usr/bin/$PRGNAM
> > >
> > >So I inserted a "$PKG" in that line
> > >
> > >  ln -s $PKG/opt/$PRGNAM$YEAR/$PRGNAM$YEAR $PKG/usr/bin/$PRGNAM
> > >
> > >and all went well.  I now have a working pdfstudioviewer.
> > >
> > >Is there anything further I can do to help?
> > 
> > 
> > The code is correct in the first place
> > if you put $PKG in the first part of ln, it will have a link to
> > temporary build directory instead of coming from root directory when
> > you install the package.
> > 
> > You can try to remove the /tmp/SBo directory and see if you have a
> > broken link on /usr/bin/
> 
> You are correct.
> 
>   bash-5.1$ ls -l /usr/bin/pdfstudioviewer 
>   lrwxrwxrwx 1 root root 85 Mar  5 00:25 /usr/bin/pdfstudioviewer -> /tmp/SBo/package-pdfstudioviewer-2024.0.1/opt/pdfstudioviewer2024/pdfstudioviewer2024
> 
> Thank you for the correction.
> 
> Sorry for the noise, and for my incorrect suggestion of a mistake in
> the SlackBuild script.

If the philosophy behind slackbuilds is to install into $PKG, then
hand $PKG to makepkg (which makes the package), and then hand the
package to installpkg (which does the actual install), then an
alternate approach to the current slackbuild might be:

  1) remove line 67
  2) put a similar line in doinst.sh
    ln -sf /opt/pdfstudioviewer2024/pdfstudioviewer2024 /usr/bin/pdfstudioviewer2024

My understanding is that the current SlackBuild installs a file in
/opt during the package build phase.  Even if the package is never
installed.

Unless I _really_ don't understand what is going on...

Regards,
Douglas.
-- 
Bold character derived from stubborn patience and adversity.
==
Douglas Guptill, B.Sc., CCP, M.Comp.Sci., THB


More information about the SlackBuilds-users mailing list