-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Mon, 2018-01-08 at 15:00 +0100, nicolas.mailhot@xxxxxxxxxxx wrote: > Hi, Hello, > I'd like to control auto-dep generation on a subpackage basis. > > A Go software unit is just a subdirectory in a specific location. Therefore > my current Go autodep attr logic processes all those subdirectories. > > Unfortunately unit test files are mixed with normal files in Go. > > So, if you separate unit tests in specific subpackages (as current Fedora > specs do), there is the risk one of those subpackages will own the same > directory as the subpackage containing the main go code. And rpm will then > think the unit test subpackage ships the whole Go code unit. > > Is there a way to pass a subpackage-specific variable or package name to the > dep generator, so it can learn to disable provides for unit tests? (auto > requires are fine — unit test code has dep requirements) As far as I know, RPM passes you list of files and for each file you print its dependencies. - -- - -Igor Gnatenko -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEhLFO09aHZVqO+CM6aVcUvRu8X0wFAlpYZDYACgkQaVcUvRu8 X0w2CBAAt0Z1xmMurR7Um3I9Dm8YyXHs8qMrhhlbI3xj1pL/eE3VDIGmMof/iVPR 3Vy4Y3r7Nspqpn4qeM6ugJ/Cx2G+eEciswh4HggAxVzine3pVPRdJkHrS5JvyhFU f4udvplRMrVq4kMKuGkH5O4leuFUIy/lsmORlql6RP0WzPiumr7hEJHIwadyCW2n XwaGlsQshffIhXa4w5CzRthRevolgmOTzznWSCYHbqexvl7sjEBE7lo8cXX7ExPF SuqeE+LKcUmhhmhBHG5B6665aKisPsTwtgmpKpvhy91QPlIBo6vS9PxlwzAKobl+ xkAMflNcPvaxTNLdiR8r7/epdQIVY5l1W93LgBWcqYzCt17mLSyoDS6rVn9UzRny lRwzqT3FQx0xvswq3N9J3ZYx/QCaksno+FnAW4fJhPEOs2qTbFSpcCieUUrTAJJF KGHtbH5TJOUyMJiqwmecZho2RcVdfAdi99MGw6ZOmuL8dvjWlIecGsEPc95zcpmO XKuFuFkLV/y6gCAdj1nqhWn58V6I0HYKigLjvUeO01fDcVFBffnHT/QVKg1M6WXW uYKs+e8Cg1XANSVPE9HCN5pg+9I4r2rTkddGbyrqkIn9XtILvLIxhoObVSzPRoVc IBm31fUjYo78DiCFzPX9Nb2XhY1zzexUggeOMzUlk81nqPKfCVU= =/VSo -----END PGP SIGNATURE----- _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx