text:
SUMMARY = "Zile is lossy Emacs"
HOMEPAGE = "http://zile.sourceforge.net/"
DEPENDS = "ncurses bdwgc"

LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"

SRC_URI = "${GNU_MIRROR}/zile/${BP}.tar.gz \
           file://remove-help2man.patch \
"

SRC_URI[md5sum] = "05efa90dfee1821ca018b0b2ef8f50a8"
SRC_URI[sha256sum] = "39c300a34f78c37ba67793cf74685935a15568e14237a3a66fda8fcf40e3035e"

inherit autotools pkgconfig

do_install:append() {
    rm -rf ${D}${libdir}/charset.alias
    rmdir --ignore-fail-on-non-empty ${D}${libdir} || true
}

PACKAGECONFIG ??= ""
PACKAGECONFIG:append = " ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)}"

PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"

license: MIT

repository: openembedded/meta-openembedded

license_type: permissive

repo_name: openembedded/meta-openembedded

branch_name: refs/heads/master

gha_license_id: MIT

gha_language: BitBake

extension: bb


text:
package mem

import (
	"io/ioutil"
	"os"
	"os/signal"
	"path"
	"syscall"
	"testing"
	"time"

	"github.com/stretchr/testify/assert"
)

func TestProfOnSignal(t *testing.T) {
	dir, err := ioutil.TempDir("", "")
	if err != nil {
		assert.FailNow(t, "can't create temporary directory", "error: %s", err)
	}
	defer os.RemoveAll(dir)

	pid := os.Getpid()
	p, err := os.FindProcess(pid)
	if err != nil {
		assert.FailNow(t, "can't find test process by its pid", "pid: %d, error: %s", pid, err)
	}

	prof := path.Join(dir, "test.pprof")

	errs := make(chan error, 1)
	stopped := false
	c := StartProfOnSignal(
		prof,
		func(err error) {
			errs <- err
		},
		syscall.SIGHUP,
	)
	defer func(c chan os.Signal) {
		if !stopped {
			StopProfOnSignal(c)
		}
	}(c)

	if err = p.Signal(syscall.SIGHUP); err != nil {
		assert.FailNow(t, "can't send signal to test process", "pid: %d, error: %s", pid, err)
	}

	d := 100 * time.Millisecond
	timeout := time.After(d)
	select {
	case err = <-errs:
		assert.NoError(t, err)
		assert.FileExists(t, prof)

	case <-timeout:
		assert.Fail(t, "no profile after timeout", "timeout: %s, profile: %s", d, prof)
	}

	os.Remove(prof)
	StopProfOnSignal(c)
	stopped = true

	c = make(chan os.Signal, 1)
	signal.Notify(c, syscall.SIGHUP)
	defer signal.Stop(c)

	if err = p.Signal(syscall.SIGHUP); err != nil {
		assert.FailNow(t, "can't send signal to test process", "pid: %d, error: %s", pid, err)
	}

	time.Sleep(d)
	f, err := os.Open(prof)
	if err != nil {
		if pErr, ok := err.(*os.PathError); ok {
			assert.Equal(t, syscall.ENOENT, pErr.Err, "found unexpected profile %s", prof)
		} else {
			assert.Fail(t, "unknown error while trying to open profile", "profile: %s, error: %s", prof, err)
		}
	} else {
		defer f.Close()
		assert.Fail(t, "found unexpected profile %s", prof)
	}
}

repository: infobloxopen/dnstools

repo_name: infobloxopen/dnstools

gha_language: Python

extension: go


text:
@article{white2004factors,
 author = {White, Ethan P},
 journal = {The Southwestern Naturalist},
 number = {3},
 pages = {344--349},
 title = {Factors affecting bat house occupancy in Colorado},
 volume = {49},
 year = {2004}
}

repository: weecology/website

repo_name: weecology/website

branch_name: refs/heads/main

gha_language: TeX

extension: bib