[Galaxy Note 4 Android Development (Snapdragon)] hazridi:
I was getting constant substratum crashes with legacy mode in both ripee's build and a copy of LineageOS I built, so I added the Substratum OMS patches to a trltetmo ROM and built successfully. Everything works like ripee's nightly builds other than the fact that substratum works much better. ROM does not come with substratum app, you must install it yourself.

Manifest - Roomservice.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="underscoremone/android_kernel_samsung_trlte" path="kernel/samsung/trlte" remote="github" revision="cm-14.1" />
<project name="underscoremone/android_device_samsung_trlte-common" path="device/samsung/trlte-common" remote="github" revision="cm-14.1" />
<project name="underscoremone/android_device_samsung_trltexx" path="device/samsung/trltexx" remote="github" revision="cm-14.1" />
<project name="fat-tire/android_device_samsung_trltetmo" path="device/samsung/trltetmo" remote="github" revision="cm-14.1" />
<project name="jef00/proprietary_vendor_samsung_trlte" path="vendor/samsung" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-14.1" />
<remove-project name="LineageOS/android_packages_inputmethods_LatinIME" />
<project name="underscoremone/android_packages_inputmethods_LatinIME" path="packages/inputmethods/LatinIME" remote="github" revision="_cm-14.1" />
<project name="LineageOS/android_external_busybox" path="external/busybox" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />
<project name="LineageOS/android_hardware_sony_timekeep" path="hardware/sony/timekeep" remote="github" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
</manifest>

Manifest - Substratum.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Get rid of Lineage repos -->
<remove-project name="LineageOS/android_frameworks_base" />
<remove-project name="LineageOS/android_frameworks_native" />
<remove-project name="LineageOS/android_packages_apps_Contacts" />
<remove-project name="LineageOS/android_packages_apps_ContactsCommon" />
<remove-project name="LineageOS/android_packages_apps_Dialer" />
<remove-project name="LineageOS/android_packages_apps_ExactCalculator" />
<remove-project name="LineageOS/android_packages_apps_PackageInstaller" />
<remove-project name="LineageOS/android_packages_apps_PhoneCommon" />
<remove-project name="LineageOS/android_packages_apps_Settings" />
<remove-project name="LineageOS/android_system_sepolicy" />
<remove-project name="LineageOS/android_vendor_cm" />

<!-- Add repos for Substratum support -->
<project path="frameworks/base" name="LineageOMS/android_frameworks_base" />
<project path="frameworks/native" name="LineageOMS/android_frameworks_native" />
<project path="packages/apps/Contacts" name="LineageOMS/android_packages_apps_Contacts" />
<project path="packages/apps/ContactsCommon" name="LineageOMS/android_packages_apps_ContactsCommon" />
<project path="packages/apps/Dialer" name="LineageOMS/android_packages_apps_Dialer" />
<project path="packages/apps/ExactCalculator" name="LineageOMS/android_packages_apps_ExactCalculator" />
<project path="packages/apps/PackageInstaller" name="LineageOMS/android_packages_apps_PackageInstaller" />
<project path="packages/apps/PhoneCommon" name="LineageOMS/android_packages_apps_PhoneCommon" />
<project path="packages/apps/Settings" name="LineageOMS/android_packages_apps_Settings" />
<project path="system/sepolicy" name="LineageOMS/android_system_sepolicy" />
<project path="vendor/cm" name="LineageOMS/android_vendor_cm" />

<!-- Track ThemeInterfacer -->
<project path="packages/services/ThemeInterfacer" name="substratum/interfacer" remote="github" revision="n-rootless" />
</manifest>

I uploaded a flashable zip to androidfilehost if anyone wants to try it. I have been running it for about a week without any show stoppers.

The ROM includes _mone's patched LatinIME with the 5 row keyboard, otherwise it is a fresh build directly from source, thanks to fat-tire and _mone and anyone else who helps with making the source tree work.