General TC > Programming & Scripting - Unofficial

when building extension, workaround for when DESTDIR fails

<< < (2/2)

Rich:
Hi GNUser

--- Quote from: GNUser on March 27, 2023, 10:02:51 AM ---Interesting. So you are manually creating the package subdirectories rather than letting  tar  handle it for you. ...
--- End quote ---
Yeah, I felt it was safest to first test each entry pointed to an actual file to move, My concern was
if an entry pointing to a directory made it into the list. Wouldn't want to move /usr/local/lib.  :'(

Once I have an entry pointing to an actual file, I also have a path I need to create.

Even if I used tar, I still need to (carefully) get rid of the installed files either by rebooting (yuck) or
parsing a list of things to delete.

Paul_123:
I have inotify-tools built now for piCore14.  Updated my first script to use this.  Worked great.

Rich:
Hi Paul_123
I'm wondering if it might make sense to monitor  /usr  instead of  /usr/local  for
programs that insist on hard coding paths like  /usr/bin  or  /usr/lib.
Maybe also  /etc  for programs that want to place config files there, something like this:

--- Code: ---inotifywait --quiet --monitor --recursive -e create --format '%w%f' /usr /etc > list.txt &
--- End code ---

Paul_123:
Well since I just did bluez.  It installs a file in /lib/udev

So I just added a second location to watch.   

Navigation

[0] Message Index

[*] Previous page

Go to full version