Skip to content

Instantly share code, notes, and snippets.

View avinash-palleti's full-sized avatar

Avinash Reddy Palleti avinash-palleti

  • Intel
  • bangalore,india
View GitHub Profile
(09:19:06 IST) palletiavi: Hi Douglas
(09:19:27 IST) palletiavi: This is Avinash from Safety Critical Linux team Bangalore
(09:19:56 IST) palletiavi: We are working on some poc using clearlinux, requirement is to create docker image from mixer workspace
(09:20:15 IST) palletiavi: I see you are owning github repo for clearlinux docker images DEPENDS += "libdrm libpciaccess cairo udev glib-2.0 libxv libx11 libxext libxrandr procps libunwind"
(09:20:24 IST) palletiavi: https://github.com/clearlinux/docker-brew-clearlinux
(09:21:22 IST) palletiavi: Can you please help me to generate base.tar.xz from mixer workspace
307: is a registered nick
(09:30:34 IST) wdouglas: palletiavi: With your mix content generated you can use swupd to create the chroot that you can then tar up. swupd verify --install is the command to use, it will need to be passed --certpath, --versionurl, --contenturl, --format, --path (note the path must exist first before running verify), and --manifest
(09:57:45 IST) palletiavi: Thanks muc
@avinash-palleti
avinash-palleti / glibc.spec
Created September 19, 2018 10:58
inside docker
%define glibcpath sclinux-glibc
Name : fusa-glibc
Version : 2.27
Release : 1
Source0 : https://ftp.gnu.org/gnu/libc/sclinux-glibc.tar.gz
Summary : GNU C Library
Group : Development/Tools
License : BSD-3-Clause BSL-1.0 GFDL-1.2 GFDL-1.3 GPL-2.0 GPL-3.0 LGPL-2.1 LGPL-3.0 MIT
AutoProv : No
@avinash-palleti
avinash-palleti / gcc.spec
Last active September 18, 2018 05:15
Inside docker
%define keepstatic 1
%define gcc_target x86_64-pc-linux-gnu
%define libstdcxx_maj 6
%define libstdcxx_full 6.0.25
%define isl_version 0.16.1
%define gccver 8.2.0
%define gccpath gcc-8.2.0
%global _missing_build_ids_terminate_build 0
#
%define keepstatic 1
%define gcc_target x86_64-generic-linux
%define libstdcxx_maj 6
%define libstdcxx_full 6.0.25
%define isl_version 0.16.1
%define gccver 8.2.0
%define gccpath gcc-8.2.0
%global _missing_build_ids_terminate_build 0
#
@avinash-palleti
avinash-palleti / gcc.spec
Created August 27, 2018 04:05
spec with 8.2.0
%define keepstatic 1
%define gcc_target x86_64-generic-linux
%define libstdcxx_maj 6
%define libstdcxx_full 6.0.25
%define isl_version 0.16.1
%define gccver 8.2.0
%define gccpath gcc-8.2.0
#
@avinash-palleti
avinash-palleti / gcc.spec
Last active August 13, 2018 03:38
WW 32.4
%define keepstatic 1
%define gcc_target x86_64-generic-linux
%define libstdcxx_maj 6
%define libstdcxx_full 6.0.25
%define isl_version 0.16.1
%define gccver 7.3.0
%define gccpath gcc-7.3.0
#
/usr/lib/systemd/systemd-bootchart: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
[ 0.734366] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 0.734366]
[ 0.735175] CPU: 2 PID: 1 Comm: systemd-bootcha Not tainted 4.16.11-264.kvm #2
[ 0.735801] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0.0.0 02/06/2015
[ 0.736583] Call Trace:
[ 0.736836] dump_stack+0x5c/0x8c
[ 0.737169] panic+0xd2/0x220
[ 0.737465] do_exit.cold.4+0x1e/0xc4
[ 0.737824] ? do_group_exit+0x2e/0xa0
@avinash-palleti
avinash-palleti / gcc.spec
Last active August 3, 2018 10:33
Working one
%define keepstatic 1
%define gcc_target x86_64-generic-linux
%define libstdcxx_maj 6
%define libstdcxx_full 6.0.25
%define isl_version 0.16.1
%define gccver 7.3.0
%define gccpath gcc-7.3.0
#
/builddir/build/BUILD/gcc-build/./prev-gcc/xg++ -B/builddir/build/BUILD/gcc-build/./prev-gcc/ -B/usr/x86_64-generic-linux/bin/ -nostdinc++ -B/builddir/build/BUILD/gcc-build/prev-x86_64-generic-linux/libstdc++-v3/src/.libs -B/builddir/build/BUILD/gcc-build/prev-x86_64-generic-linux/libstdc++-v3/libsupc++/.libs -I/builddir/build/BUILD/gcc-build/prev-x86_64-generic-linux/libstdc++-v3/include/x86_64-generic-linux -I/builddir/build/BUILD/gcc-build/prev-x86_64-generic-linux/libstdc++-v3/include -I/builddir/build/BUILD/gcc-8.2.0/libstdc++-v3/libsupc++ -L/builddir/build/BUILD/gcc-build/prev-x86_64-generic-linux/libstdc++-v3/src/.libs -L/builddir/build/BUILD/gcc-build/prev-x86_64-generic-linux/libstdc++-v3/libsupc++/.libs -no-pie -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static
Mock Version: 1.2.14
ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/gcc.spec'], chrootPath='/var/lib/mock/clear-gcc/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'LANG': 'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f97b5930ac8>timeout=0uid=1000gid=1000user='mockbuild'printOutput=True)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/gcc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\x1b]0;<mock-chroot>\x07<mock-chroot>"', 'LANG': 'en_US.UTF-8'} and shell False
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/gcc-7.3.0-119.src.rpm
Child return code