Re: rpm4 on carme*

2020-11-03 Thread Jakub Bogusz via pld-devel-en
More differences/issues:

* patch run with different args: --no-backup-if-mismatch '--fuzz=0'
  - there is no .orig file when patching fails, so updating patches needs
more effort
  - fuzz=0 will require updating many patches in repo


* rpmbuild with non-UTF-8 locale in environment fails on some packages
  with gettext catalogs, e.g.:

Pakiet libreoffice-i18n-cs: nieprawidłowe kodowanie utf-8 w| Classdict: GNU 
message catalog (little endian), revision 0.0, 674 messages, 
Project-Id-Version: PACKAGE VERSION 'Barva textu aktivnĂ­ho vĂ˝bÄ\233ru' -- 
Błędny lub niepełny znak wielobajtowy

It's side effect of libmagic trying to extract too many information in rules 
for "gnu" files;
I'm going to patch Magdir/gnu rules and disable printing of text next to 
Project-Id-Version.
I don't know what it was meant for, but it doesn't show anything useful
now (just some semi-random translation).


* absolute symlinks are reported as warning (even if they cross /)

  (my personal preference is to use relative symlinks unless they cross /,
   in which case I prefer absolute ones)


* symlinks are always packaged with 777 mode and using %attr() for
  symlink is reported as warning


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: glibc-ldconfig => glibc-ld reconsiderations

2020-11-03 Thread Jakub Bogusz
On Tue, Nov 03, 2020 at 05:18:11AM +0100, Tomasz Pala wrote:
> Hello,
> 
> today I've come into the issue related to the commit:
> 
> http://git.pld-linux.org/gitweb.cgi?p=packages/glibc.git;a=commitdiff;h=4139e8458f99923b5290c8ce523d5d801c135ced
> 
> During the upgrade of some older machine I've been put (sure, with some
> --nodeps --force -N magic due to the state of the system) into such
> condition:
> 
> 
> Upgrading...
> glibc-libcrypt
> ##
> glibc ##
> sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> /bin/sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> error: %trigger(glibc-2.32-6.x86_64) scriptlet failed, exit status 127
> sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> /bin/sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf
> version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference error: %trigger(glibc-2.32-6.x86_64) scriptlet failed, exit status 
> 127
> sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> /bin/sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> error: %trigger(glibc-2.32-6.x86_64) scriptlet failed, exit status 127
> localedb-src  ##
> sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> /bin/sh: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf version 
> GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> error: %post(localedb-src-2.32-6.x86_64) scriptlet failed, exit status 127
> iconv ##
> glibc-misc##
> glibc-devel   ##
> /bin/run-parts: relocation error: /lib64/libc.so.6: symbol _dl_fatal_printf 
> version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time 
> reference
> 
> 
> Putting aside the reasons and a way I did this and fixed afterwards,
> I think this shows that ldconfig is NOT coupled with dynamic
> linker MORE than the linker to the library.
> 
> Since apparently glibc and /%{_lib}/ld-linux.so.2 are not separatable, I
> hereby ask for reverting this commit.

Original reasons were in this thread:
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2018-October/025628.html
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2018-October/025650.html

But the solution is wrong because of the above link time references.

For me it seems that better way would be to:
- revert this commit
- disable AutoReqProv for ldcondig
- add "Confilicts: glibc < (version before introducing rtld(GNU_HASH))" instead


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en