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

Douglas Guptill dguptill at accesswave.ca
Fri Mar 6 05:45:03 UTC 2026


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.

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