Skip to content

Instantly share code, notes, and snippets.

View mach-kernel's full-sized avatar
😸
mrrrrow!

David Stancu mach-kernel

😸
mrrrrow!
View GitHub Profile
use std::os::raw::{c_void, c_int, c_char};
use std::ptr::{null_mut, null};
use std::ffi::{CStr, CString};
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
extern "C" {
pub fn xpc_pipe_create_from_port(port: mach_port_t, flags: u64) -> xpc_pipe_t;
pub fn xpc_pipe_routine_with_flags(
pipe: xpc_pipe_t,
@mach-kernel
mach-kernel / launch_key_getjob.c
Last active August 24, 2022 10:39
launch.h API for getting launchd job by label
/**
./launch_key_getjob_test com.apple.Spotlight
LimitLoadToSessionType: Aqua
MachServices: (cba) 0x7fbfbb504700
Label: com.apple.Spotlight
OnDemand: (cba) 0x7fff9464d490
LastExitStatus: 0
PID: 562
Program: /System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight
#Path 0
color(7);
bgnpolygon();
vertex(8.051858,44.963826);
vertex(8.140266,46.948369);
vertex(9.011796,49.985860);
vertex(10.550670,53.866927);
vertex(12.641110,58.382199);
vertex(15.167339,63.322303);
vertex(18.013579,68.477867);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[fedora]
name=Fedora 31 - x86_64
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-31&arch=x86_64
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64
This file has been truncated, but you can view the full file.
# 1 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/poppler/PDFDoc.cc"
# 1 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/build//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/poppler/PDFDoc.cc"
# 52 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/poppler/PDFDoc.cc"
# 1 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/build/config.h" 1
# 53 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/poppler/PDFDoc.cc" 2
# 1 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/build/poppler/poppler-config.h" 1
# 141 "/usr/people/mach/rpmbuild/BUILD/poppler-0.73.0/build/poppler/poppler-config.h"
[sgugshell mach@octane fedorip]$ python rippums.py --pkg-list-path rippums.json [46/46]
2020-06-26 00:27:19,107 - fedorip - INFO - Working on perl-HTML-StripScripts-Parser, 1 left
2020-06-26 00:27:21,110 - fedorip - INFO -
2020-06-26 00:27:21,743 - fedorip - INFO - warning: Downloading https://cpan.metacpan.org/authors/id/D/DR/DRTECH/HTML-StripScripts-Pa
rser-1.03.tar.gz to /usr/people/mach/rpmbuild/SOURCES/HTML-StripScripts-Parser-1.03.tar.gz
error: Failed build dependencies:
perl(HTML::StripScripts) >= 1.04 is needed by perl-HTML-StripScripts-Parser-1.03-27.sgugbeta.noarch
2020-06-26 00:27:21,746 - fedorip - WARNING - perl-HTML-StripScripts-Parser build failed -- missing dependencies?
2020-06-26 00:27:21,752 - fedorip - INFO - Found 1 missing dependencies: ['HTML::StripScripts']
2020-06-26 00:27:21,754 - fedorip - INFO - Working on perl-HTML-StripScripts, 1 left
Executing(%prep): /usr/sgug/bin/sh -e /usr/sgug/var/tmp/rpm-tmp.108121
Executing(%build): /usr/sgug/bin/sh -e /usr/sgug/var/tmp/rpm-tmp.108121
checking build system type... mips-sgi-irix6.5
checking host system type... mips-sgi-irix6.5
checking for a BSD-compatible install... /usr/sgug/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/sgug/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
warning: Downloading http://www.puimula.org/voikko-sources/suomi-malaga/suomi-malaga-1.19.tar.gz to /usr/people/mach/rpmbuild/SOURCES/suomi-malaga-1.19.tar.gz
warning: Macro expanded in comment on line 11: %{version}rc3.tar.gz
Executing(%prep): /usr/sgug/bin/sh -e /usr/sgug/var/tmp/rpm-tmp.032691
+ umask 022
+ cd /usr/people/mach/rpmbuild/BUILD
+ cd /usr/people/mach/rpmbuild/BUILD
+ rm -rf suomi-malaga-1.19
+ /usr/sgug/bin/gzip -dc /usr/people/mach/rpmbuild/SOURCES/suomi-malaga-1.19.tar.gz
+ /usr/sgug/bin/tar -xof -
Executing(%prep): /usr/sgug/bin/sh -e /usr/sgug/var/tmp/rpm-tmp.029353
Patch #0 (malaga-rename-map_file.diff):
patching file files.c
patching file files.h
patching file lex_compiler.c
patching file lexicon.c
Patch #1 (malaga-malshow-lm.patch):
patching file Makefile.in
Patch #2 (malaga-aarch64.patch):
patching file config.guess