[opensuse-packaging] Any limits on dependency resolver script?
Hi, I wrote two external Provides/Requires resolver scripts for nodejs packaging. Usually such scripts should take what RPM pass through it, that is, filelist of buildroot. But: 1. I ran the script locally by passing exactly the same filelist through, it ran fine. 2. I let the script run on OBS, it gave different result, indicating that a nested "each" loop is not completely looped (correct: loop 14000 times; wrong: loop 19 times) 3. I modified the code, to find the filelist myself. the result is correct. So the problem is due to what RPM pass through. But, eg, the self found list: /home/abuild/rpmbuild/BUILDROOT/...../gulp/package.json the passed through list: /home/abuild....package.json\n the result was wrong even after I stripped '\n'. so I wonder if there're any limits on resources in RPM dependency resolving? like CPU usage... Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Which project/package? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, Jan 26, 2016 at 7:49 PM, Andreas Schwab
Which project/package?
Hi, Andreas, I'll make a demo project. currently my dev project builds fine, because I used the way to find the filelist myself. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, Jan 26, 2016 at 7:49 PM, Andreas Schwab
Which project/package?
https://build.opensuse.org/project/show/home:MargueriteSu:branches:devel:lan... see: https://build.opensuse.org/package/binary/home:MargueriteSu:branches:devel:languages:nodejs/gulp?arch=i586&filename=gulp-3.9.0-20.6.noarch.rpm&repository=openSUSE_Tumbleweed and https://build.opensuse.org/package/binary/devel:languages:nodejs/gulp?arch=i586&filename=gulp-3.9.0-1.1.noarch.rpm&repository=Tumbleweed The only difference is in nodejs-packaging: https://build.opensuse.org/package/rdiff/home:MargueriteSu:branches:devel:languages:nodejs/nodejs-packaging?opackage=nodejs-packaging&oproject=devel:languages:nodejs&rev=2 Changing from find the filelist to read the ARGF. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Marguerite Su writes:
Changing from find the filelist to read the ARGF.
Whatis ARGF? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Jan 28, 2016 at 4:46 PM, Andreas Schwab
Marguerite Su writes:
Changing from find the filelist to read the ARGF.
Whatis ARGF?
/home/abuild/rpmbuild/BUILDROOT/gulp-3.9.0-xx.1.x86_64/package.json\n /home/abuild/rpmbuild/BUILDROOT/gulp-3.9.0-xx.1.x86_64/node_modules/adm-zip/package.json\n it's %filelist of main package and all sub-packages, filtered by the fileattr, eg: %__nodejs_path ^/usr/lib.*/node_modules/.*/package\\.json$ will just return package.json file appeared everywhere in buildroot Marguerite then it will return all "package.json" from ^/usr/lib.*/nodule_modules/.*/ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
You need to read the filelist from stdin. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, Jan 29, 2016 at 12:37 AM, Andreas Schwab
You need to read the filelist from stdin.
Andreas.
ARGF is kind of stdin for ruby. it's not because ARGF itself. another working example see "golang-packaging" which is also mine. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, 2016-01-28 at 10:59 +0800, Marguerite Su wrote:
On Tue, Jan 26, 2016 at 7:49 PM, Andreas Schwab
wrote: Which project/package?
https://build.opensuse.org/project/show/home:MargueriteSu:branches:de vel:languages:nodejs
see: https://build.opensuse.org/package/binary/home:MargueriteSu:bran ches:devel:languages:nodejs/gulp?arch=i586&filename=gulp-3.9.0- 20.6.noarch.rpm&repository=openSUSE_Tumbleweed
and https://build.opensuse.org/package/binary/devel:languages:nodejs/ gulp?arch=i586&filename=gulp-3.9.0- 1.1.noarch.rpm&repository=Tumbleweed
The only difference is in nodejs-packaging:
https://build.opensuse.org/package/rdiff/home:MargueriteSu:branches:d evel:languages:nodejs/nodejs-packaging?opackage=nodejs- packaging&oproject=devel:languages:nodejs&rev=2
Do the files that you expect to be inspected match the file filter glob in
cat nodejs.attr %__nodejs_provides %{_rpmconfigdir}/nodejs.prov %__nodejs_requires %{_rpmconfigdir}/nodejs.req %__nodejs_path ^/usr/lib.*/node_modules/.*/package\\.json$
? Cheers, Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thu, Jan 28, 2016 at 4:59 PM, Dominique Leuenberger / DimStar
Do the files that you expect to be inspected match the file filter glob
Yes, they do match. the fileattr was not touched. it has been using in openSUSE for 2 years. Marguerite -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Dominique Leuenberger / DimStar
-
Marguerite Su