Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs

2020-12-15 Thread Graham Perrin

On 14/12/2020 13:20, David Wolfskill wrote:

I find that "pkg_libchk" (from ports-mgmt/bsdadminscripts2) is helpful
for such cases.

Peace,
david


Thanks for this, and for the answers from other users.

Ultimately I chose to:

pkg upgrade -f

pkg upgrade -f -r poudriere

The second command was probably to broad. In retrospect I could have 
forced just three from my poudriere repo:


drm-kmod
gpu-firmware-kmod
openzfs-kmod

As far as I can tell, just one casualty: SimpleScreenRecorder, which 
does record and save, but fails to cancel (before beginning a recording) 
or close (after saving a recording); it stops responding.


I'm now building multimedia/simplescreenrecorder with poudriere, if 
installation from this repo does not resolve the issue then I might 
repeat 'pkg upgrade -f' alone plus just the three kmods from poudriere.


(Afterthought, note to self: maybe SimpleScreenRecorder is a casualty of 
a routine upgrade that I performed a few hours earlier; there was much 
KDE stuff at the time.)


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs

2020-12-15 Thread Alexander Leidinger
Quoting Jens Schweikhardt  (from Mon, 14  
Dec 2020 14:15:05 +0100 (CET)):



Alexander,

it would seem that

find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -f '%p|%A\n' 2>/dev/null \
| grep '^not found' | cut -d '|' -f2 \
| xargs pkg which -q | sort -u

is prone to false positives, since ldd is sensitive to LD_LIBRARY_PATH, viz.:


Yes. Firefox, LibreOffice/OpenOffice come to my mind directly. There  
may be others. I expect those to be rare (compared to the size of the  
ports collection), but if you encounter some false positives, it's  
probably a big package. Either way, "locate $missing_lib" is a good  
idea here.


[...]

So make sure you look into what exact library is missing and if
it's actually somewhere "non-standard",
that directory should be in LD_LIBRARY_PATH.


Temporary for the run of this check, yes.

Bye,
Alexander.

--
http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.orgnetch...@freebsd.org  : PGP 0x8F31830F9F2772BF


pgp867e3Ceh6b.pgp
Description: Digitale PGP-Signatur


Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs

2020-12-14 Thread David Wolfskill
I find that "pkg_libchk" (from ports-mgmt/bsdadminscripts2) is helpful
for such cases.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
As if Trump's lies weren't obvious already, Palin has joined in to prove it.

See https://www.catwhisker.org/~david/publickey.gpg for my public key.


signature.asc
Description: PGP signature


Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs

2020-12-14 Thread Jens Schweikhardt
Alexander,

it would seem that

find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -f '%p|%A\n' 2>/dev/null \
| grep '^not found' | cut -d '|' -f2 \
| xargs pkg which -q | sort -u

is prone to false positives, since ldd is sensitive to LD_LIBRARY_PATH, viz.:

$ find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -f '%p|%A\n' 2>/dev/null \
| grep '^not found' | cut -d '|' -f2 \
| xargs pkg which -q | sort -u
firefox-84.0_2,2

$ export LD_LIBRARY_PATH=/usr/local/lib/firefox
$ find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -f '%p|%A\n' 2>/dev/null \
| grep '^not found' | cut -d '|' -f2 \
| xargs pkg which -q | sort -u
$

So make sure you look into what exact library is missing and if
it's actually somewhere "non-standard",
that directory should be in LD_LIBRARY_PATH.

Jens
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs

2020-12-14 Thread Alexander Leidinger
Quoting Graham Perrin  (from Mon, 14 Dec 2020  
07:41:45 +):


Re:  
 I made careless use  
of:


cd /usr/src && make -DBATCH_DELETE_OLD_FILES delete-old-libs

[...]
Please: how can I positively identify other applications that I  
might have broken through careless deletion of old libraries?


% cat remove_old_libs_with_unresolved_libs.sh
#!/bin/sh

find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -f '%p|%A\n' 2>/dev/null \
| grep '^not found' | grep compat/pkg | cut -d '|' -f2 \
| sort -u | xargs rm -v

% cat list_ports_using_nonexisting_lib.sh
#!/bin/sh

find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -f '%p|%A\n' 2>/dev/null \
| grep '^not found' | cut -d '|' -f2 \
| xargs pkg which -q | sort -u


Bye,
Alexander.

--
http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.orgnetch...@freebsd.org  : PGP 0x8F31830F9F2772BF


pgpSusmXjZQix.pgp
Description: Digitale PGP-Signatur


Identifying broken applications following careless use of make -DBATCH_DELETE_OLD_FILES delete-old-libs

2020-12-13 Thread Graham Perrin
Re: 
 
I made careless use of:


cd /usr/src && make -DBATCH_DELETE_OLD_FILES delete-old-libs

– then found applications such as LibreOffice no longer working as 
expected. Resolved (I believe):


pkg remove inkscape libreoffice && pkg autoremove && pkg install 
inkscape libreoffice


Please: how can I positively identify other applications that I might 
have broken through careless deletion of old libraries?

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"