From mdomonko at redhat.com Tue Dec 12 13:10:49 2023 From: mdomonko at redhat.com (Michal Domonkos) Date: Tue, 12 Dec 2023 14:10:49 +0100 Subject: RPM 4.19.1 released! Message-ID: This is the first update to the 4.19 series, mostly addressing bugs and regressions, with a few small improvements added on top. The changelog follows: Regression fixes * Never use current user info or file ownership during build (#2797) Command line * Print full path if file removal fails (#2806) * Switch brp-compress to bash (#2757) Transactions * Fix sbit removal if fchmodat() doesn't support AT_SYMLINK_NOFOLLOW (#2759) SPEC format * Add %_iconsdir macro (#2729) * Bunch of sysusers.d handling fixes (#2745) * Fix integer overflow in memory calculations on 32bit systems (#2770) * Return an error on macro expansion failure from Lua macros table too (#2706) File format * Allow SOURCE_DATE_EPOCH=0 again (#2756) Generators * Add a Provides generator for rpm lua modules (#2659) Build system * Build all manuals regardless of enabled features (#2804) * Ensure proper working dir when processing rpmrc, platform and macros (#2707) * Fix a bunch of compiler warnings on 32bit builds (#2784) * Fix tagtbl.C placement in build dir (#2670) * Make 'cmake -L' output meaningful (#2687) For download information, visit: https://rpm.org/wiki/Releases/4.19.1 On behalf of the RPM team, Michal From mrsam at courier-mta.com Sat Dec 23 01:19:20 2023 From: mrsam at courier-mta.com (Sam Varshavchik) Date: Fri, 22 Dec 2023 20:19:20 -0500 Subject: Dynamic provides and requires dependency Message-ID: Is there for a way that a package's %build or %install script can generate additional Provides: and Requires: dependencies? Doing some digging, I found the (relatively) recently developed dynamic buildrequires, and %generate_buildrequires. What I'm looking to do is something analogous, but have %build or a %install generate additional dependencies to supplement Requires:, Provides:, and the automatically-generated dependencies. I suppose I can override %__find_requires and %__find_provides, and have that run my own script first, then the default ones. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available URL: From orion at nwra.com Sat Dec 23 04:22:47 2023 From: orion at nwra.com (Orion Poplawski) Date: Fri, 22 Dec 2023 21:22:47 -0700 Subject: Dynamic provides and requires dependency In-Reply-To: References: Message-ID: <56498785-afdb-4ac7-bcd8-d7d5d5f62a37@nwra.com> On 12/22/23 18:19, Sam Varshavchik wrote: > Is there for a way that a package's %build or %install script can > generate additional Provides: and Requires: dependencies? > > Doing some digging, I found the (relatively) recently developed dynamic > buildrequires, and %generate_buildrequires. > > What I'm looking to do is something analogous, but have %build or a > %install generate additional dependencies to supplement Requires:, > Provides:, and the automatically-generated dependencies. > > I suppose I can override %__find_requires and %__find_provides, and have > that run my own script first, then the default ones. You want this: https://rpm-software-management.github.io/rpm/manual/dependency_generators.html -- Orion Poplawski he/him/his - surely the least important thing about me IT Systems Manager 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion at nwra.com Boulder, CO 80301 https://www.nwra.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3826 bytes Desc: S/MIME Cryptographic Signature URL: From msuchy at redhat.com Sat Dec 23 07:13:54 2023 From: msuchy at redhat.com (=?UTF-8?Q?Miroslav_Such=C3=BD?=) Date: Sat, 23 Dec 2023 08:13:54 +0100 Subject: Dynamic provides and requires dependency In-Reply-To: <56498785-afdb-4ac7-bcd8-d7d5d5f62a37@nwra.com> References: <56498785-afdb-4ac7-bcd8-d7d5d5f62a37@nwra.com> Message-ID: Dne 23. 12. 23 v 5:22 Orion Poplawski napsal(a): > On 12/22/23 18:19, Sam Varshavchik wrote: >> Is there for a way that a package's %build or %install script can generate additional Provides: and Requires: >> dependencies? >> >> Doing some digging, I found the (relatively) recently developed dynamic buildrequires, and %generate_buildrequires. >> >> What I'm looking to do is something analogous, but have %build or a %install generate additional dependencies to >> supplement Requires:, Provides:, and the automatically-generated dependencies. >> >> I suppose I can override %__find_requires and %__find_provides, and have that run my own script first, then the >> default ones. > > You want this: > > https://rpm-software-management.github.io/rpm/manual/dependency_generators.html And maybe this: https://rpm-software-management.github.io/rpm/manual/dynamic_specs.html -- Miroslav Suchy, RHCA Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys From mhroncok at redhat.com Sat Dec 23 09:31:36 2023 From: mhroncok at redhat.com (=?UTF-8?Q?Miro_Hron=C4=8Dok?=) Date: Sat, 23 Dec 2023 10:31:36 +0100 Subject: Dynamic provides and requires dependency In-Reply-To: References: <56498785-afdb-4ac7-bcd8-d7d5d5f62a37@nwra.com> Message-ID: <9385c90b-1b27-4576-8cca-0292eb82415e@redhat.com> On 23. 12. 23 8:13, Miroslav Such? wrote: > Dne 23. 12. 23 v 5:22 Orion Poplawski napsal(a): >> On 12/22/23 18:19, Sam Varshavchik wrote: >>> Is there for a way that a package's %build or %install script can generate >>> additional Provides: and Requires: dependencies? >>> >>> Doing some digging, I found the (relatively) recently developed dynamic >>> buildrequires, and %generate_buildrequires. >>> >>> What I'm looking to do is something analogous, but have %build or a %install >>> generate additional dependencies to supplement Requires:, Provides:, and the >>> automatically-generated dependencies. >>> >>> I suppose I can override %__find_requires and %__find_provides, and have >>> that run my own script first, then the default ones. >> >> You want this: >> >> https://rpm-software-management.github.io/rpm/manual/dependency_generators.html > > > And maybe this: > > https://rpm-software-management.github.io/rpm/manual/dynamic_specs.html Or maybe this: https://src.fedoraproject.org/rpms/rpm-local-generator-support -- Miro Hron?ok -- Phone: +420777974800 IRC: mhroncok