FRRouting / gentoo-overlay

FRR Gentoo Overlay
5 stars 7 forks source link

ebuild fails with systemd #45

Closed jyoung15 closed 5 years ago

jyoung15 commented 5 years ago

frr-6 and frr-7 ebuilds fail with the following error: OSError: [Errno 2] No such file or directory: '/var/tmp/portage/net-misc/frr-7.0/files/systemd/no.service'

Issue appears to be in src_install() function with usage of usex. Per ebuild(5):

usex <USE flag> [true output] [false output] [true suffix] [false suffix]
       If  USE  flag  is  set,  echo  [true output][true suffix] (defaults to "yes"), otherwise echo [false output][false suffix] (defaults to "no").

Since there is no false output provided, it defaults to "no". Suggest using empty string in false argument as workaround - $(usex bgp bgpd ""), etc.

f0o commented 5 years ago

Seems accurate, I'll fix it this tomorrow/weekend.

Thanks for the report!