linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libeatmydata / find-shell-lib.patch
bloba6320edda29d32ebb7cb0a6fbd608fb13847f324
1 --- eatmydata.in 2020-02-01 18:10:59.618679823 -0800
2 +++ eatmydata.in.new 2020-02-01 18:08:25.092620247 -0800
3 @@ -15,15 +15,8 @@
4 # You should have received a copy of the GNU General Public License
5 # along with this program. If not, see <http://www.gnu.org/licenses/>.
7 -export `dpkg-architecture|grep DEB_BUILD_MULTIARCH`
9 -shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh"
10 -if [ -f "$shlib" ]; then
11 - . "$shlib"
12 -else
13 - echo "Unable to locate eatmydata shell library, it was not enabled" >&2
14 - exec "$@"
15 -fi
16 +shlib="NIX_OUT_DIR/libexec/eatmydata.sh"
17 +. "$shlib"
19 usage()