[Rpm-maint] [rpm-software-management/rpm] brp-strip-static-archive: Do not use xargs -d (#955)

2019-11-28 Thread Florian Festi
as it is not POSIX compliant and not supported on BSD and others Dropping the use of grep here and using -regex of find instead to get rid of the need for looking at lines terminated by newline. Using only basic regular expressions for portability. Resolves: #948 You can view, comment on, or mer

Re: [Rpm-maint] [rpm-software-management/rpm] Problem with FreeBSD and xargs (#948)

2019-11-28 Thread Florian Festi
A quick search turns up find-debuginfo.sh which also has xargs -d in it. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/948#issuecomment-559395380

Re: [Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

2019-11-28 Thread Panu Matilainen
Yes I know there's a school of packaging that uses the double-underscore macros for everything they can. That doesn't mean it's how those macros ever were meant to be used, the double underscore is a pretty strong hint that these are *rpm private*. Fedora folks came up with a pretty good summar

[Rpm-maint] [rpm-software-management/rpm] find-debuginfo.sh: Dont use xargs -d for portability (#956)

2019-11-28 Thread Florian Festi
Use -0 instead which is more widly available. Related: #948 You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/956 -- Commit Summary -- * find-debuginfo.sh: Dont use xargs -d for portability -- File Changes -- M scripts/

Re: [Rpm-maint] [rpm-software-management/rpm] Support sed 'in-place' replacement on BSD. (#953)

2019-11-28 Thread Andreas Scherer
Well, I surely am biased towards rpm's macro "language," because of my work on the interpreter in debbuild, where I not only use the macros in my specfiles, but also "internally" for preparing the stage scripts. 😄 -- You are receiving this because you are subscribed to this thread. Reply to th

[Rpm-maint] [rpm-software-management/rpm] RFE: Add a reproducable source package identifier to binary packages (#957)

2019-11-28 Thread Panu Matilainen
Originally reported as a bug on SOURCEPKGID https://bugzilla.redhat.com/show_bug.cgi?id=1741715, but SOURCEPKGID (liberal quoting): Rpm only stores the sourcepkgid if the source rpm was built in the same run as the binary (that is, built with -ba), this is by design AFAICT. It would seem usefu

[Rpm-maint] [rpm-software-management/rpm] RFE: Offer MDBX as an alternative engine to LMDB for rpmdb (#958)

2019-11-28 Thread erthink
MDBX (i.e. [libmdbx](https://github.com/leo-yuriev/libmdbx)) is superior to LMDB with set of additional features ([the list](https://github.com/leo-yuriev/libmdbx#improvements-over-lmdb)). For rpmdb most useful are: 1. Automatic on-the-fly database size control by preset parameters, both reduct

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Offer MDBX as an alternative engine to LMDB for rpmdb (#958)

2019-11-28 Thread Panu Matilainen
Seeing that this is a fork of LMDB, how's the key size limit? If it's the same as LMDB then this is not any better for us. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Offer MDBX as an alternative engine to LMDB for rpmdb (#958)

2019-11-28 Thread erthink
@pmatilai, briefly **MDBX support 2 times longer keys than LMDB**. In details: - the key size limit depends from the database page size. - for default (4K) pages MDBX now accepts keys up 1980 bytes (ie slightly less than half the page size). - but this value will soon be revised down to be sli

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Offer MDBX as an alternative engine to LMDB for rpmdb (#958)

2019-11-28 Thread Panu Matilainen
Ack, useful to know. That said, what we don't need right now is more experimental backends based on new engines. In time though, who knows. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-man

[Rpm-maint] [rpm-software-management/rpm] Incorrect length of unknown filedigest algos (#959)

2019-11-28 Thread mikhailnov
We have implemented Stribog 256bit filedigest algorithm in RPM 5. Let's dump hashes of files inside it using RPM which has Stribog-256 implemented: ``` [root@rosa-2019 tmp]# rpm -qp --dump grep-3.3-3-rosa2019.0.x86_64.rpm /bin/egrep 28 1574950713 aa4ae578ca2323caf35beab739f88ea577ab0119063b1aa47

Re: [Rpm-maint] [rpm-software-management/rpm] Not all console_scripts entry points need pkg_resources from setuptools (#954)

2019-11-28 Thread Miro Hrončok
It seems that dist-info => no pkg_resources, egg-info => pkg_resources is correct. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/954#issuecomment-559614763_

Re: [Rpm-maint] [rpm-software-management/rpm] Fix compatible-release, versions with dot-star, semantically versioned deps, and python version (#951)

2019-11-28 Thread Panu Matilainen
Merged #951 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/951#event-2840462873___ Rpm-maint mailing list Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Fix compatible-release, versions with dot-star, semantically versioned deps, and python version (#951)

2019-11-28 Thread Panu Matilainen
> can we get this merged? If you say so. That said, the language specific dependency generators and brp-scripts would be the next targets for moving out of rpm to a better home, whatever that might be. I don't have anything like an actual plan for achieving that, just a vague idea. -- You ar

Re: [Rpm-maint] [rpm-software-management/rpm] Problem with FreeBSD and xargs (#948)

2019-11-28 Thread Panu Matilainen
Closed #948 via #955. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/948#event-2840478464___ Rpm-maint mailing list Rpm-maint@

Re: [Rpm-maint] [rpm-software-management/rpm] brp-strip-static-archive: Do not use xargs -d (#955)

2019-11-28 Thread Panu Matilainen
Seems obvious enough for me... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/955#issuecomment-559678678___ Rpm-maint mailing li

Re: [Rpm-maint] [rpm-software-management/rpm] brp-strip-static-archive: Do not use xargs -d (#955)

2019-11-28 Thread Panu Matilainen
Merged #955 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/955#event-2840478459___ Rpm-maint mailing list Rpm-maint

Re: [Rpm-maint] [rpm-software-management/rpm] Incorrect length of unknown filedigest algos (#959)

2019-11-28 Thread Panu Matilainen
Yeah there's a bug someplace or two. Starting with: ``` /* Hmm, what to do with unknown digest algorithms? */ if (algo && rpmDigestLength(*algo) != 0) { fi->digestalgo = *algo; } ``` ...and also assuming rpmDigestLength() returns non-zero values in more places