Article 4VHQK makepkg link handling weakness/bug

makepkg link handling weakness/bug

by
GazL
from LinuxQuestions.org on (#4VHQK)
I was just trying to package my libressl build and I've stumbled onto a problem with pkgtools link handling. When I did an installpkg it threw out a handful of bash errors about 'type' file not found.

I tracked it down to these man-page symlinks:
Code:# ls -l | grep '<type>'
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_delete.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_doall.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_doall_arg.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_error.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_free.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_insert.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_new.3 -> lh_new.3
lrwxrwxrwx 1 build build 8 Nov 22 21:00 lh_<type>_retrieve.3 -> lh_new.3
#The problem is that makepkg converts them into entries of the following format in doinst.sh
Code:( cd opt/libressl-3.0.2/man/man3 ; rm -rf lh_<type>_delete.3.gz )which without any sort of quoting/escaping results in an obvious error.

Anyway, I worked around it by using makepkg '-l n', but I thought I'd mention it, especially as the first you know about it is when you install the package.latest?d=yIl2AUoC8zA latest?i=Q2ZPlgw7blk:LsSd9POjvRg:F7zBnMy latest?i=Q2ZPlgw7blk:LsSd9POjvRg:V_sGLiP latest?d=qj6IDK7rITs latest?i=Q2ZPlgw7blk:LsSd9POjvRg:gIN9vFwQ2ZPlgw7blk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments