On Thu, May 3, 2018 at 12:03 PM, Todd Zullinger <tmz@xxxxxxxxx> wrote: > Robin Lee wrote: >> I recently upgrade my host from f26 to f28. But to keep compatible >> with old behavior, >> I am figuring out a way to revert the change 'Separate Subpackage and >> Source Debuginfo'[1]. >> That means let rpm not generate debugsource and subpackage debuginfo. >> Simply adding '%_debugsource_packages 0' to ~/.rpmmacros does not work. > > That should be the macro which controls the debugsource > packages. What's your build setup look like? In other > words, what tools are you using and what releases are you > targeting? > > I would suggest building with mock, as that should get you > the proper defaults for each release target (among other > benefits). > > Perhaps if you provide more details on what your doing and > how it fails someone here will be able to spot the issue and > suggest a solution or work-around. > > -- > Todd > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Intaxication (n.) Euphoria at getting a tax refund, which lasts until > you realize it was your money to start with. > It doest not work with _debugsource_packages set to 0. $ rpm --define '_debugsource_packages 0' --eval '%{?_debugsource_packages:%_debugsource_template}' %package debugsource Summary: Debug sources for package %{name} Group: Development/Debug AutoReqProv: 0 %description debugsource This package provides debug sources for package %{name}. Debug sources are useful when developing applications that use this package or when debugging this package. %files debugsource -f debugsourcefiles.list Undefining it would actually get the latter macro silent: rpm --undefine '_debugsource_packages' --eval '%{?_debugsource_packages:%_debugsource_template}' But even using the undefining method, debugsource subpakcage will still be generated. This is the most strange case: $ rpm --undefine '_debugsource_packages' -q --specfile check.spec check-0.9.4-1.fc28.x86_64 check-devel-0.9.4-1.fc28.x86_64 check-debuginfo-0.9.4-1.fc28.x86_64 check-debugsource-0.9.4-1.fc28.x86_64 Redefining _debugsource_template will make debugsource disappear, but that's too tricky. $ rpm --define '_debugsource_template %{nil}' -q --specfile check.spec check-0.9.4-1.fc28.x86_64 check-devel-0.9.4-1.fc28.x86_64 check-debuginfo-0.9.4-1.fc28.x86_64 > > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx