Timing problem with '%buildsubdir'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Why is macro '%buildsubdir' not available in section '%prep'?

According to the comment in 'macros[.in]', '%buildsubdir' is "set
after processing %setup", but there seems to be a timing problem in
setting and resolving this particular item.

   %prep
   %setup -c
   %{echo:<<<PREP:%buildsubdir>>>}

produces "<<<PREP:%buildsubdir>>>, i.e., the macro is _not_ set at
this point, while a later

   %build
   %{echo:<<<BUILD:%buildsubdir>>>}

produces the expected <<<BUILD:sgb-20090810>>>. (Using
'https://github.com/ascherer/sgb/blob/local/sgb.spec' as example.)

Internally, 'doSetupMacro()' uses 'spec->buildSubdir' for referencing
the project building area, and calls 'addMacro(...,"buildsubdir",...)'
on the way.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlat05EACgkQpGC+y3YKfI7dJgCfZmS9W7s1MksR2y3ZfXUrjXjS
B6oAnA21/czC0HvLMO5dQ4Ejj/1e6Z2Y
=3VC6
-----END PGP SIGNATURE-----
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux