├── graphical ├── scim │ ├── musl_broken? │ └── scim.xinputd ├── lightdm │ ├── lightdm-tmpfiles.conf │ ├── lightdm-qt5.patch │ ├── lightdm.pamd │ ├── lightdm-autologin.pamd │ ├── lightdm-nodaemon_option.patch │ ├── lightdm-greeter.pamd │ └── config.patch ├── avahi │ ├── avahi.png │ └── avahi-initscripts.patch ├── alsa-udev │ ├── alsa-udev.rules │ ├── alsa-udev.conf │ └── alsa-udev.sh ├── alsa-lib │ ├── alsa-lib-modprobe.conf │ └── alsa-lib-asound.conf ├── dbus │ └── dbus.trigger ├── icu │ ├── icu-config.sh │ ├── icu-timezone.patch │ ├── ac264-hack.patch │ └── CVE-2015-1270.patch ├── enlightenment │ ├── enlightenment │ │ └── enlightenment-xsession.desktop │ ├── ewebkit │ │ ├── ewebkit-link.patch │ │ └── ewebkit-build.patch │ └── efl │ │ └── egl-types-fixup.patch ├── nettle │ └── nettle-2.4-makefile.patch ├── pulseaudio │ ├── pulseaudio.confd │ └── test ├── libdaemon │ └── fix-includes.patch ├── lua51 │ └── lua-5.1.4-lunatic.patch ├── bullet │ ├── bullet-format.patch │ ├── bullet-link.patch │ └── bullet-musl.patch ├── graphite2 │ ├── cmake.patch │ └── graphite2-1.2.0-cmakepath.patch ├── nspr │ ├── nspr-pc.patch │ └── nspr-fix-getproto.patch ├── giflib │ └── xmlto-skip-validation.patch ├── directfb │ ├── DirectFB-1.7.6-cle266.patch │ ├── DirectFB-1.7.6-union-sigval.patch │ ├── DirectFB-1.6.3-pkgconfig.patch │ ├── DirectFB-1.7.6-use-PTHREAD_MUTEX_RECURSIVE.patch │ └── DirectFB-1.7.1-build.patch ├── sdl │ ├── SDL-acfix.patch │ ├── SDL-const_XData32.patch │ ├── SDL-config.patch │ ├── fix-mouse-click.patch │ └── SDL-1.2.10-GrabNotViewable.patch ├── qt5 │ └── qt5-qtbase │ │ ├── qt5-qtbase-musl-socklen.patch │ │ ├── qt5-qtbase-musl-iconv-no-bom.patch │ │ └── qtbase-oracle-instantclient.patch ├── flac │ └── flac-sigemptyset.patch ├── libtheora │ ├── link.patch │ └── libpng16.patch ├── at-spi2-core │ └── fix-buffer-overrun.patch ├── json-c │ └── size-set-but-not-used.patch ├── sdl2 │ └── sdl2-config.patch ├── gstreamer │ └── gstreamer-without_ps_pdf.patch ├── gstreamer0.10 │ └── bison3.patch └── dwm │ └── dwm.spec ├── base ├── unzip │ ├── .gitignore │ ├── sources │ ├── unzip-6.0-nostrip.patch │ ├── unzip-6.0-exec-shield.patch │ ├── STAGE1-unzip │ ├── unzip-6.0-symlink.patch │ ├── unzip-6.0-manpage-fix.patch │ ├── unzip-6.0-attribs-overflow.patch │ └── unzip-6.0-bzip2-configure.patch ├── yum-utils │ └── yum-plugin-unity-kernel.conf ├── zip │ ├── robots.txt │ ├── 30-zip-3.0-pic.patch │ └── 20-zip-3.0-exec-stack.patch ├── gcc │ ├── hardenednossp.specs │ ├── hardenednopiessp.specs │ ├── hardenednopie.specs │ ├── vanilla.specs │ ├── 051_all_libiberty-pic.patch │ ├── 116_all_gcc47_nopie_option.patch │ ├── fix-cxxflags-passing.patch │ ├── gcc-4.9-musl-fortify.patch │ ├── 210-fixincludes.patch │ ├── 211-unwind.patch │ ├── 050_all_libiberty-asprintf.patch │ ├── gcc-pure64.patch │ ├── 090_all_pr55930-dependency-tracking.patch │ ├── 012_all_default-warn-trampolines.patch │ ├── 102_all_gcc48_config.in.patch │ ├── 053_all_libitm-no-fortify-source.patch │ ├── 105_all_gcc48_gcc.c.patch │ ├── gcc-4.8-musl-libssp.patch │ └── ada-fixes.patch ├── openrc │ ├── openrc.logrotate │ ├── 0.17.tar.gz │ ├── modloop.confd │ ├── hostname.initd │ ├── keymaps.initd │ ├── hide-migrate-to-run-error.patch │ ├── swap-ifexists.patch │ ├── openrc-0.4.3-mkmntdirs.patch │ ├── swap-umount-tmpfs.patch │ ├── modules.initd │ ├── openrc.post-install │ ├── 0001-Force-root-be-rw-before-localmount.patch │ ├── consolefont.confd │ ├── hwdrivers.initd │ ├── openrc.post-upgrade │ └── consolefont.initd ├── hwdata │ ├── usb.ids │ ├── LICENSE │ ├── README │ └── hwdata.spec ├── xterm │ ├── xterm.png │ ├── XTerm.ad-pl │ ├── xterm.1x.ko │ └── xterm.desktop ├── unity-baselayout │ ├── kms.conf │ ├── i386.conf │ ├── unity-baselayout.pre-install │ ├── crontab │ ├── profile │ ├── color_prompt │ ├── unity-baselayout.pre-upgrade │ ├── inittab │ └── unity-baselayout.post-install ├── glib │ └── glib-2.46.2.tar.gz ├── linux-pam │ ├── base-account.pamd │ ├── base-password.pamd │ ├── base-session.pamd │ ├── base-session-noninteractive.pamd │ ├── base-auth.pamd │ ├── other.pamd │ ├── libpam-fix-build-with-eglibc-2.16.patch │ ├── pam-fix-compat.patch │ └── musl-fix-pam_exec.patch ├── musl │ ├── libssp_nonshared.a │ ├── __stack_chk_fail_local.c │ ├── readme.musl │ ├── ldconfig │ └── 0002-ns_parse.c-fix-ns_skiprr.patch ├── grep │ ├── GREP_COLORS │ ├── STAGE1-grep │ ├── colorgrep.sh │ ├── colorgrep.csh │ ├── grepconf.sh │ └── grep-2.21-gnulib.patch ├── kmod │ ├── kmod.trigger │ ├── kmod-usb │ ├── strndupa.patch │ ├── sed-ere.patch │ └── kmod-static-nodes.initd ├── busybox-initscripts │ └── busybox-initscripts-0.1.tar.gz ├── rsync │ ├── rsyncd.logrotate │ ├── rsyncd.confd │ ├── rsyncd.conf │ └── rsyncd.initd ├── readline │ ├── get_patches │ └── fix-ncurses-underlinking.patch ├── lvm2 │ ├── lvm.confd │ ├── mallinfo.patch │ ├── mlockall-default-config.patch │ ├── library_dir-default-config.patch │ ├── dmeventd.initd │ └── lvm.initd ├── shadow │ └── login.pamd ├── eudev │ ├── 40-evdev.conf │ └── setup-udev ├── readme.md ├── bzip2 │ ├── bzip2-1.0.3-no-test.patch │ ├── bzip2-1.0.4-man-links.patch │ ├── bzip2-1.0.6-saneso.patch │ ├── bzip2-1.0.4-makefile-CFLAGS.patch │ └── bzip2-1.0.4-POSIX-shell.patch ├── tcl │ └── tcl-stat64.patch ├── udev-init-scripts │ └── provide-dev.patch ├── unity-repos │ └── unity.repo ├── linux-headers │ ├── 270-bridge_header_fix.patch │ └── 1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch ├── squashfs-tools │ ├── squashfs-tools-4.2-missing-includes.patch │ ├── 2gb.patch │ └── local-cve-fix.patch ├── talloc │ └── always-libs.patch ├── mdocml │ └── default-pager.patch ├── psmisc │ └── psmisc-limits.patch ├── tmux │ └── tmux-fix-malloc-check-error.patch ├── cmake │ └── musl-header-fixes.patch ├── dev86 │ ├── dev86-nostrip.patch │ ├── dev86-noelks.patch │ ├── dev86-long.patch │ └── dev86-64bit.patch ├── findutils │ └── STAGE1-findutils ├── git │ └── bb-tar.patch ├── libxml2 │ └── libxml2-pthread.patch ├── pygpgme │ └── pygpgme-no-encrypt-to.patch ├── vim │ ├── rpmspec-template │ └── vimrc ├── pciutils │ ├── pciutils-fix-linking-pci-malloc-Makefile.patch │ ├── multilibconfigh │ ├── pciutils-pread.patch │ └── pciutils-2.2.1-idpath.patch ├── openssh │ ├── openssh-sftp-interactive.diff │ ├── sshd.confd │ └── openssh-fix-utmp.diff ├── lua5.2-posix │ └── fix-sched-header.patch ├── gc │ └── fix-boehm-gc.patch ├── python2 │ ├── unchecked-ioctl.patch │ ├── 00144-no-gdbm.patch │ ├── python-2.6-rpath.patch │ └── lib64-fix-for-test_install.patch ├── rpm │ └── rpm-musl-namelen.patch ├── fakeroot │ ├── busybox-getopt.patch │ ├── fakeroot-no64.patch │ ├── fakeroot-hide-dlsym-errors.patch │ └── fakeroot-uclibc.patch ├── python-pygobject │ ├── gio.patch │ ├── python-pygobject-pc.patch │ ├── python-pygobject-pyc.patch │ └── python-pygobject-pycairo.patch ├── busybox │ ├── udhcpc-discover-retries.patch │ ├── glibc.patch │ ├── busybox-1.11.1-bb.patch │ ├── busybox-uname-is-not-gnu.patch │ ├── linux-headers.patch │ └── bb-app-location.patch ├── pcre │ └── CVE-2015-5073.patch ├── cpio │ ├── cpio-info.patch │ ├── cpio-stdio.in.patch │ └── cpio-ifdef.patch ├── make │ └── fix-atexit-exit.patch ├── yum │ ├── yum_ok_newline.patch │ └── yum.conf ├── gpgme │ ├── gpgme-multilib.h │ └── gpgme-1.3.2-largefile.patch ├── libffi │ ├── gnu-linux-define.patch │ ├── ffi-multilib.h │ ├── libffi-3.1-fix-include-path.patch │ └── ffitarget-multilib.h ├── bash-completion │ └── bash-completion-1.99-noblacklist.patch ├── bash │ ├── bash-noinfo.patch │ ├── get_patches │ └── privmode-setuid-fail.patch ├── openssl │ ├── 0009-no-rpath.patch │ ├── 0003-use-termios.patch │ ├── 0008-maintain-abi-compat-with-no-freelist-and-regular-bui.patch │ └── 1004-crypto-engine-autoload-padlock-dynamic-engine.patch ├── llvm │ ├── clang-0004-unity-use-z-relro.patch │ ├── clang-0010-unity-use-z-now.patch │ ├── clang-0009-pass-host-triple-to-compiler-rt.patch │ ├── compiler-rt-0003-off_t.patch │ ├── compiler-rt-0001-musl-no-dlvsym.patch │ ├── clang-0005-unity-hash-style-gnu.patch │ ├── clang-0003-add-unity-linux-distro.patch │ ├── clang-0002-fix-unwind-header.patch │ └── clang-0001-fix-stdint.h.patch ├── makelive │ └── makelive.spec ├── libevent │ ├── libevent-nonettests.patch │ └── libevent-2.0.10-stable-configure.patch ├── libbsd │ └── musl-fix-headers.patch ├── libc-dev │ ├── sys-cdefs.h │ └── libc-devel.spec ├── guile │ ├── strtol_l.patch │ └── fix-defines.patch ├── libtiff │ └── libtiff-make-check.patch ├── gdb │ └── gdb-linux_nat.patch ├── mtools │ └── mtools-3.9.6-config.patch ├── screen │ └── screen-utmp.patch ├── python-urlgrabber │ └── BZ-1051554-speed-on-404-mirror.patch ├── lddtree │ └── README.md ├── directfb-flux │ └── directfb-flux.spec ├── texinfo │ └── info-dir ├── libpthread-stubs │ └── libpthread-stubs.spec ├── chrpath │ └── chrpath.spec ├── hawkey │ └── hawkey-0.6.0-musl-add-ipc_h.patch ├── python-iniparse │ └── fix-issue-28.patch ├── unity-conf │ └── unity-conf.spec ├── tree │ └── tree.spec ├── tzdata │ └── 0001-posixtz-fix-up-lseek.patch ├── dos2unix │ └── dos2unix.spec ├── gnupg │ └── 0001-Include-sys-select.h-for-FD_SETSIZE.patch └── pyxattr │ └── pyxattr.spec ├── src ├── makelive │ ├── ld.so.conf │ ├── memtest86 │ ├── splash.jpg │ ├── udev.conf │ ├── pcimodules │ ├── help.msg │ └── makelive.spec ├── unity-conf │ ├── setup-xfce-desktop │ ├── setup-xfce-desktop.in │ ├── lbu.conf │ ├── setup-xen-dom0.in │ ├── unity-conf.spec │ ├── README │ ├── setup-xorg-base.in │ └── setup-gparted-desktop.in └── README.md ├── xorg ├── xinit │ ├── xserverrc │ ├── xsession.skel │ └── 06_move_serverauthfile_into_tmp.patch ├── mrxvt │ ├── mrxvt.png │ ├── musl-fix-includes.patch │ ├── mrxvt.desktop │ └── mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch ├── freetype │ ├── 2015-06-09.tar.gz │ ├── fixme │ ├── 40-memcpy-fix.patch │ ├── 20-enable-spr.patch │ ├── 30-enable-valid.patch │ └── 01-freetype-2.6-enable-valid.patch ├── xorg-server │ ├── xserver.pamd │ ├── 20-modules.conf │ ├── autoconfig-sis.patch │ ├── fix-musl-arm.patch │ └── autoconfig-nvidia.patch ├── xf86-input-evdev │ └── evdev.conf ├── twm │ ├── twm-xsession.desktop │ └── twm-1.0.9-unity.patch ├── libpciaccess │ ├── fix-arm.patch │ └── libpciaccess-limits.patch ├── pixman │ └── float-header-fix.patch ├── libdrm │ └── libdrm-limits.patch ├── makedepend │ └── makedepend.spec ├── fontpostinst │ └── fontpostinst.spec ├── README.md ├── xkbcomp │ └── xkbcomp.spec ├── encodings │ └── encodings.spec ├── libvdpau │ └── 0001-mesa_dri2-Add-missing-include-of-config.h-to-define-.patch └── util-macros │ └── utils-macros.spec └── seed ├── README.md ├── unrootme ├── removechroot ├── rootme └── wgetdir /graphical/scim/musl_broken?: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /base/unzip/.gitignore: -------------------------------------------------------------------------------- 1 | unzip60.tar.gz 2 | -------------------------------------------------------------------------------- /src/makelive/ld.so.conf: -------------------------------------------------------------------------------- 1 | include ld.so.conf.d/*.conf 2 | -------------------------------------------------------------------------------- /base/yum-utils/yum-plugin-unity-kernel.conf: -------------------------------------------------------------------------------- 1 | [main] 2 | enabled=1 3 | -------------------------------------------------------------------------------- /base/unzip/sources: -------------------------------------------------------------------------------- 1 | 62b490407489521db863b523a7f86375 unzip60.tar.gz 2 | -------------------------------------------------------------------------------- /xorg/xinit/xserverrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec /usr/bin/X -nolisten tcp "$@" 3 | -------------------------------------------------------------------------------- /base/zip/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: /*/snapshot/* 3 | Allow: / 4 | -------------------------------------------------------------------------------- /graphical/lightdm/lightdm-tmpfiles.conf: -------------------------------------------------------------------------------- 1 | d /var/run/lightdm 0770 root root 2 | -------------------------------------------------------------------------------- /base/gcc/hardenednossp.specs: -------------------------------------------------------------------------------- 1 | *esp_cc1_ssp: 2 | 3 | 4 | *esp_options_ssp: 5 | 6 | 7 | -------------------------------------------------------------------------------- /base/openrc/openrc.logrotate: -------------------------------------------------------------------------------- 1 | /var/log/rc.log { 2 | missingok 3 | notifempty 4 | } 5 | -------------------------------------------------------------------------------- /base/hwdata/usb.ids: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/hwdata/usb.ids -------------------------------------------------------------------------------- /base/xterm/xterm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/xterm/xterm.png -------------------------------------------------------------------------------- /xorg/mrxvt/mrxvt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/xorg/mrxvt/mrxvt.png -------------------------------------------------------------------------------- /base/openrc/0.17.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/openrc/0.17.tar.gz -------------------------------------------------------------------------------- /base/xterm/XTerm.ad-pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/xterm/XTerm.ad-pl -------------------------------------------------------------------------------- /base/xterm/xterm.1x.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/xterm/xterm.1x.ko -------------------------------------------------------------------------------- /src/makelive/memtest86: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/src/makelive/memtest86 -------------------------------------------------------------------------------- /src/makelive/splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/src/makelive/splash.jpg -------------------------------------------------------------------------------- /base/unity-baselayout/kms.conf: -------------------------------------------------------------------------------- 1 | # enable modeset 2 | options radeon modeset=1 3 | options i915 modeset=1 4 | -------------------------------------------------------------------------------- /graphical/avahi/avahi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/graphical/avahi/avahi.png -------------------------------------------------------------------------------- /base/gcc/hardenednopiessp.specs: -------------------------------------------------------------------------------- 1 | %include 2 | %include 3 | 4 | 5 | -------------------------------------------------------------------------------- /base/glib/glib-2.46.2.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/glib/glib-2.46.2.tar.gz -------------------------------------------------------------------------------- /base/linux-pam/base-account.pamd: -------------------------------------------------------------------------------- 1 | # basic PAM configuration for Alpine. 2 | 3 | account required pam_unix.so 4 | -------------------------------------------------------------------------------- /base/musl/libssp_nonshared.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/musl/libssp_nonshared.a -------------------------------------------------------------------------------- /graphical/alsa-udev/alsa-udev.rules: -------------------------------------------------------------------------------- 1 | SUBSYSTEM=="sound", KERNEL=="controlC*", RUN+="/lib/udev/alsa-udev %n" 2 | -------------------------------------------------------------------------------- /xorg/freetype/2015-06-09.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/xorg/freetype/2015-06-09.tar.gz -------------------------------------------------------------------------------- /base/grep/GREP_COLORS: -------------------------------------------------------------------------------- 1 | # Configuration file for the color grep utility 2 | 3 | # 'none' shuts colorization off. 4 | #COLOR none 5 | -------------------------------------------------------------------------------- /graphical/alsa-lib/alsa-lib-modprobe.conf: -------------------------------------------------------------------------------- 1 | # prevent PC speaker from becoming the default device 2 | options snd-pcsp index=-2 3 | -------------------------------------------------------------------------------- /base/linux-pam/base-password.pamd: -------------------------------------------------------------------------------- 1 | # basic PAM configuration for Alpine. 2 | 3 | password required pam_unix.so nullok obscure md5 sha512 4 | -------------------------------------------------------------------------------- /base/kmod/kmod.trigger: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | for i in "$@"; do 4 | if [ -d "$i" ]; then 5 | /sbin/depmod ${i#/lib/modules/} 6 | fi 7 | done 8 | 9 | -------------------------------------------------------------------------------- /base/linux-pam/base-session.pamd: -------------------------------------------------------------------------------- 1 | # basic PAM configuration for Alpine. 2 | 3 | session include base-session-noninteractive 4 | session required pam_motd.so 5 | -------------------------------------------------------------------------------- /base/openrc/modloop.confd: -------------------------------------------------------------------------------- 1 | # enable loadable module support when running from RAM 2 | # when unionfs support is available in the kernel 3 | unionfs_size="32M" 4 | -------------------------------------------------------------------------------- /base/busybox-initscripts/busybox-initscripts-0.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmiahman/unity-linux/HEAD/base/busybox-initscripts/busybox-initscripts-0.1.tar.gz -------------------------------------------------------------------------------- /base/gcc/hardenednopie.specs: -------------------------------------------------------------------------------- 1 | *esp_cc1_pie: 2 | 3 | 4 | *esp_options_pie: 5 | 6 | 7 | *esp_link_pie_check: 8 | 9 | 10 | *esp_link_pie: 11 | 12 | 13 | -------------------------------------------------------------------------------- /base/linux-pam/base-session-noninteractive.pamd: -------------------------------------------------------------------------------- 1 | # basic PAM configuration for Alpine. 2 | 3 | session required pam_limits.so 4 | session required pam_unix.so 5 | -------------------------------------------------------------------------------- /xorg/xinit/xsession.skel: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # ~/.xsession 5 | # 6 | # Executed by xdm/gdm/kdm at login 7 | # 8 | 9 | /bin/sh -l ~/.xinitrc 10 | 11 | -------------------------------------------------------------------------------- /base/unity-baselayout/i386.conf: -------------------------------------------------------------------------------- 1 | alias parport_lowlevel parport_pc 2 | alias char-major-10-144 nvram 3 | alias binfmt-0064 binfmt_aout 4 | alias char-major-10-135 rtc 5 | -------------------------------------------------------------------------------- /base/musl/__stack_chk_fail_local.c: -------------------------------------------------------------------------------- 1 | extern void __stack_chk_fail(void); 2 | void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { __stack_chk_fail(); } 3 | -------------------------------------------------------------------------------- /base/musl/readme.musl: -------------------------------------------------------------------------------- 1 | The spec file and patches are still very much experimental and hackish use at your own risk, requires and buildrequires 2 | are missing at this time. 3 | -------------------------------------------------------------------------------- /base/rsync/rsyncd.logrotate: -------------------------------------------------------------------------------- 1 | /var/log/rsync.log { 2 | compress 3 | maxage 365 4 | rotate 7 5 | size=+1024k 6 | notifempty 7 | missingok 8 | copytruncate 9 | } 10 | -------------------------------------------------------------------------------- /base/kmod/kmod-usb: -------------------------------------------------------------------------------- 1 | # kernel warns: ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after 2 | softdep uhci_hcd pre: ehci_hcd 3 | softdep ohci_hcd pre: ehci_hcd 4 | -------------------------------------------------------------------------------- /base/readline/get_patches: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | wget -r -nH --no-parent --cut-dirs=4 --reject="index.html*" http://ftp.gnu.org/gnu/readline/readline-6.3-patches/ 4 | 5 | rm *.sig 6 | -------------------------------------------------------------------------------- /graphical/dbus/dbus.trigger: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | dbus-send --system --type=method_call --dest=org.freedesktop.DBus / \ 4 | org.freedesktop.DBUS.ReloadConfig >/dev/null 2>&1 || : 5 | -------------------------------------------------------------------------------- /base/unity-baselayout/unity-baselayout.pre-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -e /etc/group ] && ! grep -q '^shadow:' /etc/group; then 4 | addgroup -S -g 42 shadow 5 | fi 6 | 7 | -------------------------------------------------------------------------------- /base/rsync/rsyncd.confd: -------------------------------------------------------------------------------- 1 | # /etc/conf.d/rsyncd: config file for /etc/init.d/rsyncd 2 | 3 | # see man pages for rsync or run `rsync --help` 4 | # for valid cmdline options 5 | #RSYNC_OPTS="" 6 | -------------------------------------------------------------------------------- /base/linux-pam/base-auth.pamd: -------------------------------------------------------------------------------- 1 | # basic PAM configuration for Alpine. 2 | 3 | auth required pam_env.so 4 | auth required pam_unix.so nullok_secure 5 | auth required pam_nologin.so successok 6 | -------------------------------------------------------------------------------- /base/lvm2/lvm.confd: -------------------------------------------------------------------------------- 1 | # LVM should normally only be started after mdadm-raid is available 2 | # this is because LVM physical volumes are very often MD devices. 3 | 4 | rc_after="mdadm-raid" 5 | 6 | -------------------------------------------------------------------------------- /src/unity-conf/setup-xfce-desktop: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | videodrivers=$(apk search --quiet --exact xf86-video* | grep -v -- '-doc$') 4 | 5 | setup-xorg-base $videodrivers xfce4 firefox slim 6 | 7 | -------------------------------------------------------------------------------- /src/unity-conf/setup-xfce-desktop.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | videodrivers=$(apk search --quiet --exact xf86-video* | grep -v -- '-doc$') 4 | 5 | setup-xorg-base $videodrivers xfce4 firefox slim 6 | 7 | -------------------------------------------------------------------------------- /base/gcc/vanilla.specs: -------------------------------------------------------------------------------- 1 | %include 2 | %include 3 | *esp_link_now: 4 | 5 | 6 | *esp_link_relro: 7 | 8 | 9 | *esp_cc1_strict_overflow: 10 | 11 | 12 | -------------------------------------------------------------------------------- /base/shadow/login.pamd: -------------------------------------------------------------------------------- 1 | # /bin/login opens an interactive session. 2 | 3 | auth include base-auth 4 | account include base-account 5 | password include base-password 6 | session include base-session 7 | -------------------------------------------------------------------------------- /xorg/xorg-server/xserver.pamd: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth sufficient pam_rootok.so 3 | auth required pam_console.so 4 | account required pam_permit.so 5 | session optional pam_keyinit.so force revoke 6 | -------------------------------------------------------------------------------- /base/eudev/40-evdev.conf: -------------------------------------------------------------------------------- 1 | Section "InputClass" 2 | Identifier "evdev pointer catchall" 3 | MatchIsPointer "on" 4 | Driver "evdev" 5 | Option "Emulate3Buttons" "True" 6 | Option "SwapAxes" "True" 7 | EndSection 8 | -------------------------------------------------------------------------------- /base/hwdata/LICENSE: -------------------------------------------------------------------------------- 1 | This data is licenced under 2 different licenses 2 | 3 | 1) GNU General Public License, version 2 or later 4 | 2) XFree86 1.0 license 5 | 6 | This data can be used freely under either license. 7 | -------------------------------------------------------------------------------- /base/linux-pam/other.pamd: -------------------------------------------------------------------------------- 1 | # basic PAM configuration for Alpine. 2 | 3 | auth include base-auth 4 | account include base-account 5 | password include base-password 6 | session include base-session-noninteractive 7 | -------------------------------------------------------------------------------- /base/grep/STAGE1-grep: -------------------------------------------------------------------------------- 1 | srpm $1 2 | mcd $BUILDDIR/$1 3 | $SRC/${1}-*/configure $TCONFIGARGS 4 | notparallel 5 | test -d tools/gnulib/lib && make $J V=1 -C tools/gnulib/lib 6 | make $J V=1 7 | make $J install DESTDIR=${ROOTFS} 8 | -------------------------------------------------------------------------------- /base/readme.md: -------------------------------------------------------------------------------- 1 | Structure is as follows 2 | - packages: Base packages for Unity Linux CLI 3 | - graphical: Packages for building graphical or GUI based packages. 4 | - xorg: Xorg related packaged 5 | - wayland: wayland related packages 6 | -------------------------------------------------------------------------------- /graphical/icu/icu-config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | OOO_ARCH=$(uname -m) 3 | case $OOO_ARCH in 4 | x86_64 | s390x | ppc64 | sparc64) 5 | bits=64 6 | ;; 7 | * ) 8 | bits=32 9 | ;; 10 | esac 11 | exec icu-config-$bits "$@" 12 | -------------------------------------------------------------------------------- /base/bzip2/bzip2-1.0.3-no-test.patch: -------------------------------------------------------------------------------- 1 | --- ./Makefile 2 | +++ ./Makefile 3 | @@ -23,5 +23,5 @@ 4 | bzlib.o 5 | 6 | -all: libbz2.a bzip2 bzip2recover test 7 | +all: libbz2.a bzip2 bzip2recover 8 | 9 | bzip2: libbz2.a bzip2.o 10 | -------------------------------------------------------------------------------- /base/grep/colorgrep.sh: -------------------------------------------------------------------------------- 1 | # color-grep initialization 2 | 3 | /usr/libexec/grepconf.sh -c || return 4 | 5 | alias grep='grep --color=auto' 2>/dev/null 6 | alias egrep='egrep --color=auto' 2>/dev/null 7 | alias fgrep='fgrep --color=auto' 2>/dev/null 8 | -------------------------------------------------------------------------------- /base/hwdata/README: -------------------------------------------------------------------------------- 1 | To update the various IDs files, run 'make download'. 2 | Requisities: 3 | unoconf - python script using libreoffice to convert all office 4 | documents to anything else 5 | * used to update pnp.ids from MS database. 6 | -------------------------------------------------------------------------------- /src/makelive/udev.conf: -------------------------------------------------------------------------------- 1 | # The initial syslog(3) priority: "err", "info", "debug" or its 2 | # numerical equivalent. For runtime debugging, the daemons internal 3 | # state can be changed with: "udevadm control --log-priority=". 4 | udev_log="err" 5 | -------------------------------------------------------------------------------- /base/tcl/tcl-stat64.patch: -------------------------------------------------------------------------------- 1 | --- tcl8.6.0.org/generic/tcl.h 2 | +++ tcl8.6.0/generic/tcl.h 3 | @@ -17,6 +17,8 @@ 4 | #ifndef _TCL 5 | #define _TCL 6 | 7 | +#include 8 | + 9 | /* 10 | * For C++ compilers, use extern "C" 11 | */ 12 | -------------------------------------------------------------------------------- /base/udev-init-scripts/provide-dev.patch: -------------------------------------------------------------------------------- 1 | --- ./init.d/udev.orig 2 | +++ ./init.d/udev 3 | @@ -9,6 +9,7 @@ 4 | 5 | depend() 6 | { 7 | + provide dev 8 | need sysfs dev-mount 9 | before checkfs fsck 10 | keyword -lxc -systemd-nspawn -vserver 11 | -------------------------------------------------------------------------------- /graphical/alsa-udev/alsa-udev.conf: -------------------------------------------------------------------------------- 1 | # set this to yes if you want to load oss emulation 2 | # OSS_EMULATION=yes 3 | 4 | # list additional modules for first sound card 5 | # MODULES_0="" 6 | 7 | # postinstal script for first sound card 8 | # POST_INSTALL_0="" 9 | -------------------------------------------------------------------------------- /xorg/xf86-input-evdev/evdev.conf: -------------------------------------------------------------------------------- 1 | Section "InputClass" 2 | Identifier "Keyboard Defaults" 3 | MatchIsKeyboard "yes" 4 | # https://wiki.archlinux.org/index.php/Xorg#Ctrl.2BAlt.2BBackspace_does_not_work 5 | Option "XkbOptions" "terminate:ctrl_alt_bksp" 6 | EndSection 7 | -------------------------------------------------------------------------------- /base/grep/colorgrep.csh: -------------------------------------------------------------------------------- 1 | 2 | # color-grep initialization 3 | 4 | /usr/libexec/grepconf.sh -c 5 | if ( $status == 1 ) then 6 | exit 7 | endif 8 | 9 | alias grep 'grep --color=auto' 10 | alias egrep 'egrep --color=auto' 11 | alias fgrep 'fgrep --color=auto' 12 | -------------------------------------------------------------------------------- /graphical/alsa-lib/alsa-lib-asound.conf: -------------------------------------------------------------------------------- 1 | # 2 | # Place your global alsa-lib configuration here... 3 | # 4 | 5 | @hooks [ 6 | { 7 | func load 8 | files [ 9 | "/etc/alsa/pulse-default.conf" 10 | "/etc/alsa/bluetooth.conf" 11 | ] 12 | errors false 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /base/unity-repos/unity.repo: -------------------------------------------------------------------------------- 1 | [unity] 2 | name=Unity 0.4 - x86_64 3 | failovermethod=priority 4 | baseurl=http://unitylinux.com/rpms/x86_64/ 5 | enabled=1 6 | #metadata_expire=7d 7 | gpgcheck=0 8 | #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-unity-0.4-x86_64 9 | #skip_if_unavailable=False 10 | -------------------------------------------------------------------------------- /xorg/twm/twm-xsession.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=XSession 3 | Exec=twm 4 | TryExec=twm 5 | Name=TWM 6 | Comment=The Tab Window Manager 7 | Comment[nl]=De Tab Window Manager 8 | Comment[sv]=FlikfĂśnsterhanteraren 9 | Comment[pl]=Prosty zarządca okien twm 10 | # vi: encoding=utf-8 11 | -------------------------------------------------------------------------------- /base/rsync/rsyncd.conf: -------------------------------------------------------------------------------- 1 | # /etc/rsyncd.conf 2 | 3 | # Minimal configuration file for rsync daemon 4 | # See rsync(1) and rsyncd.conf(5) man pages for help 5 | 6 | # This line is required by the /etc/init.d/rsyncd script 7 | pid file = /var/run/rsyncd.pid 8 | use chroot = yes 9 | read only = yes 10 | 11 | -------------------------------------------------------------------------------- /seed/README.md: -------------------------------------------------------------------------------- 1 | These are just very basic scripts that I use to help me autmate the creation 2 | of a chroot. I use this chroot to build musl-libc based packages on a glibc 3 | base host. If you don't know what that means, then just know these scripts 4 | help in creating a clean environment to build packages in. 5 | -------------------------------------------------------------------------------- /graphical/enlightenment/enlightenment/enlightenment-xsession.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=XSession 3 | Exec=enlightenment_start 4 | TryExec=enlightenment 5 | Name=Enlightenment DR17 6 | Comment=Very feature-rich window manager 7 | Comment[pl]=Zarządca okien o bardzo bogatych możliwościach 8 | # vi: encoding=utf-8 9 | -------------------------------------------------------------------------------- /src/makelive/pcimodules: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # list all pci device modules 3 | 4 | KERNEL=$(uname -r) 5 | 6 | cat /proc/bus/pci/devices | while read junk1 id junk2; do 7 | v=0x0000${id%????} 8 | d=0x0000${id#????} 9 | cat /lib/modules/$KERNEL/modules.pcimap | grep "$v $d" | cut -d " " -f 1 10 | done | sort -u 11 | -------------------------------------------------------------------------------- /base/grep/grepconf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | -c | --interactive-color) 5 | ! grep -qsi "^COLOR.*none" /etc/GREP_COLORS 6 | ;; 7 | *) 8 | echo >&2 "Invalid / no option passed, so far only -c | --interactive-color is supported." 9 | exit 1 10 | ;; 11 | esac 12 | -------------------------------------------------------------------------------- /graphical/nettle/nettle-2.4-makefile.patch: -------------------------------------------------------------------------------- 1 | --- nettle-2.4/Makefile.in.orig 2 | +++ nettle-2.4/Makefile.in 3 | @@ -14,7 +14,7 @@ 4 | INSTALL_STRIP_PROGRAM = $(INSTALL_PROGRAM) -s 5 | MKDIR_P = @MKDIR_P@ 6 | 7 | -SUBDIRS = tools testsuite examples 8 | +SUBDIRS = tools testsuite 9 | 10 | include config.make 11 | 12 | -------------------------------------------------------------------------------- /graphical/pulseaudio/pulseaudio.confd: -------------------------------------------------------------------------------- 1 | # Config file for /etc/init.d/pulseaudio 2 | # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.conf.d,v 1.6 2006/07/29 15:34:18 flameeyes Exp $ 3 | 4 | # For more see "pulseaudio -h". 5 | 6 | # Startup options 7 | PA_OPTS="--log-target=syslog --disallow-module-loading=1" 8 | -------------------------------------------------------------------------------- /base/linux-headers/270-bridge_header_fix.patch: -------------------------------------------------------------------------------- 1 | --- a/include/uapi/linux/if_bridge.h 2 | +++ b/include/uapi/linux/if_bridge.h 3 | @@ -15,7 +15,6 @@ 4 | 5 | #include 6 | #include 7 | -#include 8 | 9 | #define SYSFS_BRIDGE_ATTR "bridge" 10 | #define SYSFS_BRIDGE_FDB "brforward" 11 | -------------------------------------------------------------------------------- /base/squashfs-tools/squashfs-tools-4.2-missing-includes.patch: -------------------------------------------------------------------------------- 1 | --- a/squashfs4.2/squashfs-tools/pseudo.c 2 | +++ b/squashfs4.2/squashfs-tools/pseudo.c 3 | @@ -30,6 +30,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | #include 9 | #include 10 | 11 | -------------------------------------------------------------------------------- /base/unity-baselayout/crontab: -------------------------------------------------------------------------------- 1 | # do daily/weekly/monthly maintenance 2 | # min hour day month weekday command 3 | */15 * * * * run-parts /etc/periodic/15min 4 | 0 * * * * run-parts /etc/periodic/hourly 5 | 0 2 * * * run-parts /etc/periodic/daily 6 | 0 3 * * 6 run-parts /etc/periodic/weekly 7 | 0 5 1 * * run-parts /etc/periodic/monthly 8 | 9 | -------------------------------------------------------------------------------- /base/unity-baselayout/profile: -------------------------------------------------------------------------------- 1 | export CHARSET=UTF-8 2 | export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 3 | export PAGER=less 4 | export PS1='\h:\w\$ ' 5 | umask 022 6 | 7 | for script in /etc/profile.d/*.sh ; do 8 | if [ -r $script ] ; then 9 | . $script 10 | fi 11 | done 12 | -------------------------------------------------------------------------------- /base/talloc/always-libs.patch: -------------------------------------------------------------------------------- 1 | --- ./buildtools/wafsamba/samba_conftests.py.orig 2 | +++ ./buildtools/wafsamba/samba_conftests.py 3 | @@ -186,6 +186,7 @@ 4 | msg = "rpath library support" 5 | else: 6 | msg = "building library support" 7 | + return True 8 | 9 | dir = find_config_dir(conf) 10 | 11 | -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- 1 | The src (source) dir is for unity specific programs that are changed or managed in house. This might be program source that has been ported to Unity and can not be change/updated with a simple patch, a program that's solely developed by Unity Linux, or a home for a programs's source that may no longer be hosted from it's origin location. 2 | -------------------------------------------------------------------------------- /base/mdocml/default-pager.patch: -------------------------------------------------------------------------------- 1 | --- mdocml-1.13.3.orig/main.c 2 | +++ mdocml-1.13.3/main.c 3 | @@ -989,7 +989,7 @@ 4 | if (pager == NULL || *pager == '\0') 5 | pager = getenv("PAGER"); 6 | if (pager == NULL || *pager == '\0') 7 | - pager = "/usr/bin/more -s"; 8 | + pager = "/bin/more -s"; 9 | cp = mandoc_strdup(pager); 10 | 11 | /* 12 | -------------------------------------------------------------------------------- /base/psmisc/psmisc-limits.patch: -------------------------------------------------------------------------------- 1 | --- psmisc-22.21/src/pstree.c 2014-02-01 22:59:07.000000000 -0700 2 | +++ psmisc-22.21_new/src/pstree.c 2015-10-09 00:24:31.337875909 -0700 3 | @@ -42,6 +42,8 @@ 4 | #include 5 | #include 6 | 7 | +#include 8 | + 9 | #include "i18n.h" 10 | #include "comm.h" 11 | 12 | -------------------------------------------------------------------------------- /graphical/pulseaudio/test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | getent group pulse > /dev/null 4 | if [ $? -ne 0 ]; then 5 | addgroup -S pulse 2>/dev/null 6 | fi 7 | 8 | echo $? 9 | -------------------------------------------------------------------------------- /xorg/mrxvt/musl-fix-includes.patch: -------------------------------------------------------------------------------- 1 | Only in mrxvt-0.5.4: src/logging.o 2 | Only in mrxvt-0.5.4: src/mrxvt 3 | --- mrxvt-0.5.4.orig/src/rxvt.h 4 | +++ mrxvt-0.5.4/src/rxvt.h 5 | @@ -58,6 +58,7 @@ 6 | #include 7 | #include 8 | #include 9 | +#include 10 | #include 11 | 12 | #ifdef HAVE_SYS_TYPES_H 13 | -------------------------------------------------------------------------------- /base/openrc/hostname.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | description="Sets the hostname of the machine." 4 | 5 | depend() { 6 | keyword -prefix -lxc 7 | } 8 | 9 | start() { 10 | if [ -f /etc/hostname ] ; then 11 | opts="-F /etc/hostname" 12 | else 13 | opts="localhost" 14 | fi 15 | ebegin "Setting hostname" 16 | hostname $opts 17 | eend $? 18 | } 19 | -------------------------------------------------------------------------------- /base/readline/fix-ncurses-underlinking.patch: -------------------------------------------------------------------------------- 1 | --- ./shlib/Makefile.in.orig 2 | +++ ./shlib/Makefile.in 3 | @@ -86,7 +86,7 @@ 4 | SHOBJ_LIBS = @SHOBJ_LIBS@ 5 | 6 | SHLIB_XLDFLAGS = @LDFLAGS@ @SHLIB_XLDFLAGS@ 7 | -SHLIB_LIBS = @SHLIB_LIBS@ 8 | +SHLIB_LIBS = @SHLIB_LIBS@ -lncurses 9 | 10 | SHLIB_DOT = @SHLIB_DOT@ 11 | SHLIB_LIBPREF = @SHLIB_LIBPREF@ 12 | -------------------------------------------------------------------------------- /base/tmux/tmux-fix-malloc-check-error.patch: -------------------------------------------------------------------------------- 1 | --- cmd.c-orig 2014-02-26 09:57:06.441154327 -0300 2 | +++ cmd.c 2014-02-26 09:58:00.631888951 -0300 3 | @@ -138,6 +138,9 @@ 4 | size_t arglen; 5 | int i; 6 | 7 | + if (argc == 0) 8 | + return (0); 9 | + 10 | *buf = '\0'; 11 | for (i = 0; i < argc; i++) { 12 | if (strlcpy(buf, argv[i], len) >= len) 13 | -------------------------------------------------------------------------------- /xorg/mrxvt/mrxvt.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Mrxvt 3 | Comment=Small, fast X terminal application 4 | Comment[pl]=Mały, ale szybki emulator terminala dla Systemu X Window 5 | Comment[pt_BR]=Um emulador de vt102 colorido 6 | Exec=mrxvt 7 | Icon=mrxvt 8 | Terminal=false 9 | Type=Application 10 | Categories=TerminalEmulator; 11 | # vi: encoding=utf-8 12 | -------------------------------------------------------------------------------- /base/cmake/musl-header-fixes.patch: -------------------------------------------------------------------------------- 1 | mode_t needs sys/stat.h 2 | 3 | --- ./Source/cmStandardIncludes.h.orig 4 | +++ ./Source/cmStandardIncludes.h 5 | @@ -74,6 +74,8 @@ 6 | 7 | #if defined( _MSC_VER ) 8 | typedef unsigned short mode_t; 9 | +#else 10 | +#include 11 | #endif 12 | 13 | // use this class to shrink the size of symbols in .o files 14 | -------------------------------------------------------------------------------- /base/linux-pam/libpam-fix-build-with-eglibc-2.16.patch: -------------------------------------------------------------------------------- 1 | --- Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c.orig 2 | +++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c 3 | @@ -47,6 +47,7 @@ 4 | #include /* for time() */ 5 | #include 6 | #include 7 | +#include 8 | 9 | #include 10 | 11 | -------------------------------------------------------------------------------- /base/unity-baselayout/color_prompt: -------------------------------------------------------------------------------- 1 | # Setup a red prompt for root and a green one for users. 2 | # rename this file to color_prompt.sh to actually enable it 3 | NORMAL="\[\e[0m\]" 4 | RED="\[\e[1;31m\]" 5 | GREEN="\[\e[1;32m\]" 6 | if [ "$USER" = root ]; then 7 | PS1="$RED\h [$NORMAL\w$RED]# $NORMAL" 8 | else 9 | PS1="$GREEN\h [$NORMAL\w$GREEN]\$ $NORMAL" 10 | fi 11 | -------------------------------------------------------------------------------- /xorg/xorg-server/20-modules.conf: -------------------------------------------------------------------------------- 1 | Section "Module" 2 | Load "exa" 3 | Load "wfb" 4 | 5 | Load "dri" 6 | Load "dri2" 7 | Load "glx" 8 | 9 | Load "int10" 10 | Load "vbe" 11 | Load "fb" 12 | Load "shadowfb" 13 | Load "shadow" 14 | Load "vgahw" 15 | Load "evdev" 16 | Load "fbdevhw" 17 | Load "glamoregl" 18 | EndSection 19 | -------------------------------------------------------------------------------- /base/dev86/dev86-nostrip.patch: -------------------------------------------------------------------------------- 1 | --- dev86-0.16.17/makefile.in.nostrip 2007-01-30 14:28:38.000000000 +0100 2 | +++ dev86-0.16.17/makefile.in 2007-01-30 14:40:56.000000000 +0100 3 | @@ -78,7 +78,7 @@ 4 | 5 | # Install files with the userid of the currently running process. 6 | INDAT=-m 644 7 | -INEXE=-m 755 -s 8 | +INEXE=-m 755 9 | INSCR=-m 755 10 | 11 | #ifdef __CYGWIN__ 12 | -------------------------------------------------------------------------------- /graphical/icu/icu-timezone.patch: -------------------------------------------------------------------------------- 1 | --- ./source/common/putilimp.h.orig 2 | +++ ./source/common/putilimp.h 3 | @@ -123,6 +123,8 @@ 4 | # elif defined(__GLIBC__) 5 | /* glibc */ 6 | # define U_TIMEZONE __timezone 7 | +# else 8 | +# define U_TIMEZONE timezone 9 | # endif 10 | #elif U_PLATFORM_USES_ONLY_WIN32_API 11 | # define U_TIMEZONE _timezone 12 | -------------------------------------------------------------------------------- /base/openrc/keymaps.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | description="Applies a keymap for the consoles." 4 | 5 | depend() 6 | { 7 | need localmount 8 | keyword -openvz -prefix -uml -vserver -xenu -lxc 9 | } 10 | 11 | start() { 12 | [ -z "$KEYMAP" ] && return 13 | ebegin "Setting keymap" 14 | zcat "$KEYMAP" | loadkmap 15 | eend $? 16 | } 17 | 18 | stop() { 19 | return 20 | } 21 | -------------------------------------------------------------------------------- /xorg/libpciaccess/fix-arm.patch: -------------------------------------------------------------------------------- 1 | --- libpciaccess-0.13.2.orig/src/linux_sysfs.c 2 | +++ libpciaccess-0.13.2/src/linux_sysfs.c 3 | @@ -46,7 +46,7 @@ 4 | #include 5 | #include 6 | 7 | -#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) 8 | +#if defined(__i386__) || defined(__x86_64__) 9 | #include 10 | #else 11 | #define inb(x) -1 12 | -------------------------------------------------------------------------------- /base/findutils/STAGE1-findutils: -------------------------------------------------------------------------------- 1 | srpm $1 2 | mcd $BUILDDIR/$1 3 | sed -i~ -e "s,locate/Makefile locate/testsuite/Makefile ,," $SRC/${1}-*/configure 4 | FINDLIBS="-lselinux -ldl" $SRC/${1}-*/configure $TCONFIGARGS 5 | sed -i~ -e "s/ locate / /" Makefile 6 | notparallel 7 | test -d tools/gnulib/lib && make $J V=1 -C tools/gnulib/lib 8 | make $J V=1 9 | make $J install DESTDIR=${ROOTFS} 10 | -------------------------------------------------------------------------------- /base/gcc/051_all_libiberty-pic.patch: -------------------------------------------------------------------------------- 1 | --- a/libiberty/Makefile.in 2 | +++ b/libiberty/Makefile.in 3 | @@ -246,6 +246,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) 4 | $(AR) $(AR_FLAGS) $(TARGETLIB) \ 5 | $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ 6 | $(RANLIB) $(TARGETLIB); \ 7 | + cp $(TARGETLIB) ../ ; \ 8 | cd ..; \ 9 | else true; fi 10 | 11 | -------------------------------------------------------------------------------- /xorg/pixman/float-header-fix.patch: -------------------------------------------------------------------------------- 1 | --- ./pixman/pixman-private.h.orig 2 | +++ ./pixman/pixman-private.h 3 | @@ -1,5 +1,3 @@ 4 | -#include 5 | - 6 | #ifndef PIXMAN_PRIVATE_H 7 | #define PIXMAN_PRIVATE_H 8 | 9 | @@ -30,6 +28,7 @@ 10 | #include 11 | #include 12 | #include 13 | +#include 14 | 15 | #include "pixman-compiler.h" 16 | 17 | -------------------------------------------------------------------------------- /base/gcc/116_all_gcc47_nopie_option.patch: -------------------------------------------------------------------------------- 1 | 2012-01-24 Magnus Granberg 2 | 3 | * gcc/common.opt Add -nopie 4 | 5 | --- a/gcc/common.opt 2011-11-23 19:51:17.000000000 +0100 6 | +++ b//gcc/common.opt 2012-01-24 16:56:24.302224357 +0100 7 | @@ -2280,6 +2280,9 @@ Driver 8 | nodefaultlibs 9 | Driver 10 | 11 | +nopie 12 | +Driver 13 | + 14 | nostartfiles 15 | Driver 16 | 17 | -------------------------------------------------------------------------------- /graphical/enlightenment/ewebkit/ewebkit-link.patch: -------------------------------------------------------------------------------- 1 | --- efl-webkit/Source/WebKit2/PlatformEfl.cmake.orig 2014-01-24 12:25:07.000000000 +0100 2 | +++ efl-webkit/Source/WebKit2/PlatformEfl.cmake 2015-10-13 15:42:28.827895471 +0200 3 | @@ -266,6 +266,7 @@ 4 | ${OPENGL_LIBRARIES} 5 | ${PNG_LIBRARIES} 6 | ${SQLITE_LIBRARIES} 7 | + Xext 8 | ) 9 | 10 | list(APPEND WebProcess_SOURCES 11 | -------------------------------------------------------------------------------- /graphical/libdaemon/fix-includes.patch: -------------------------------------------------------------------------------- 1 | --- libdaemon-0.14.orig/examples/testd.c 2 | +++ libdaemon-0.14/examples/testd.c 3 | @@ -21,9 +21,9 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | #include 9 | #include 10 | -#include 11 | #include 12 | 13 | #include 14 | -------------------------------------------------------------------------------- /seed/unrootme: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "$(id -u)" != "0" ]; then 4 | echo 'This script must be run as root, use sudo or su -c "./rootme"' 1>&2 5 | exit 1 6 | fi 7 | 8 | umount $(mount | grep chroot | awk '{print $3}') 9 | 10 | if [ ! "$(mount | grep chroot | awk '{print $3}')" ]; then 11 | echo "All Chroot mounts removed." 12 | else 13 | echo "Warning: Chroot mounts still exist." 14 | fi 15 | -------------------------------------------------------------------------------- /base/linux-headers/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch: -------------------------------------------------------------------------------- 1 | --- ./include/uapi/linux/kernel.h.orig 2 | +++ ./include/uapi/linux/kernel.h 3 | @@ -1,7 +1,9 @@ 4 | #ifndef _UAPI_LINUX_KERNEL_H 5 | #define _UAPI_LINUX_KERNEL_H 6 | 7 | +#ifdef __GLIBC__ 8 | #include 9 | +#endif 10 | 11 | /* 12 | * 'kernel.h' contains some often-used function prototypes etc 13 | -------------------------------------------------------------------------------- /xorg/libpciaccess/libpciaccess-limits.patch: -------------------------------------------------------------------------------- 1 | --- libpciaccess-0.13.4/src/linux_sysfs.c 2015-10-11 16:12:54.331200391 -0700 2 | +++ libpciaccess-0.13.4_new/src/linux_sysfs.c 2015-10-11 15:52:02.600061478 -0700 3 | @@ -49,6 +49,8 @@ 4 | #include 5 | #include 6 | 7 | +#include 8 | + 9 | #if defined(__i386__) || defined(__x86_64__) 10 | #include 11 | #else 12 | -------------------------------------------------------------------------------- /base/gcc/fix-cxxflags-passing.patch: -------------------------------------------------------------------------------- 1 | --- gcc-4.8.1/Makefile.in.orig 2 | +++ gcc-4.8.1/Makefile.in 3 | @@ -169,6 +169,7 @@ 4 | # built for the build system to override those in BASE_FLAGS_TO_PASSS. 5 | EXTRA_BUILD_FLAGS = \ 6 | CFLAGS="$(CFLAGS_FOR_BUILD)" \ 7 | + CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ 8 | LDFLAGS="$(LDFLAGS_FOR_BUILD)" 9 | 10 | # This is the list of directories to built for the host system. 11 | -------------------------------------------------------------------------------- /base/git/bb-tar.patch: -------------------------------------------------------------------------------- 1 | --- a/templates/Makefile Mon Oct 26 02:57:33 2009 2 | +++ b/templates/Makefile Mon Nov 9 14:56:27 2009 3 | @@ -50,4 +50,4 @@ 4 | install: all 5 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(template_instdir_SQ)' 6 | (cd blt && $(TAR) cf - .) | \ 7 | - (cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xof -) 8 | + (cd '$(DESTDIR_SQ)$(template_instdir_SQ)' && umask 022 && $(TAR) xf -) 9 | -------------------------------------------------------------------------------- /base/libxml2/libxml2-pthread.patch: -------------------------------------------------------------------------------- 1 | --- libxml2-2.9.1/threads.c.orig 2 | +++ libxml2-2.9.1/threads.c 3 | @@ -47,7 +47,7 @@ 4 | #ifdef HAVE_PTHREAD_H 5 | 6 | static int libxml_is_threaded = -1; 7 | -#ifdef __GNUC__ 8 | +#if defined(__GNUC__) && defined(__GLIBC__) 9 | #ifdef linux 10 | #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) 11 | extern int pthread_once (pthread_once_t *__once_control, 12 | -------------------------------------------------------------------------------- /base/openrc/hide-migrate-to-run-error.patch: -------------------------------------------------------------------------------- 1 | See http://bugs.alpinelinux.org/issues/3160 2 | 3 | --- openrc-0.12.4.orig/init.d/bootmisc.in 4 | +++ openrc-0.12.4/init.d/bootmisc.in 5 | @@ -105,7 +105,7 @@ 6 | rm $src 7 | elif [ ! -L $src -a -d $src ]; then 8 | ebegin "Migrating $src to $dst" 9 | - cp -a $src/* $dst/ 10 | + cp -a $src/* $dst/ 2>/dev/null 11 | rm -rf $src 12 | eend $? 13 | fi 14 | -------------------------------------------------------------------------------- /base/pygpgme/pygpgme-no-encrypt-to.patch: -------------------------------------------------------------------------------- 1 | diff: 2 | === modified file 'src/pygpgme-constants.c' 3 | --- src/pygpgme-constants.c 2013-02-13 02:17:54 +0000 4 | +++ src/pygpgme-constants.c 2013-06-19 12:01:23 +0000 5 | @@ -164,6 +164,7 @@ 6 | 7 | /* gpgme_encrypt_flags_t */ 8 | CONST(ENCRYPT_ALWAYS_TRUST), 9 | + CONST(ENCRYPT_NO_ENCRYPT_TO), 10 | 11 | /* gpgme_sigsum_t */ 12 | CONST(SIGSUM_VALID), 13 | -------------------------------------------------------------------------------- /base/unzip/unzip-6.0-nostrip.patch: -------------------------------------------------------------------------------- 1 | diff -up unzip60/unix/configure.nostrip unzip60/unix/configure 2 | --- unzip60/unix/configure.nostrip 2009-11-30 10:18:09.000000000 +0100 3 | +++ unzip60/unix/configure 2009-11-30 10:21:08.354264213 +0100 4 | @@ -17,7 +17,7 @@ CFLAGSR=${CFLAGS} 5 | IZ_BZIP2=${3} 6 | CFLAGS="${CFLAGS} -I. -DUNIX" 7 | LFLAGS1="" 8 | -LFLAGS2="-s" 9 | +LFLAGS2="" 10 | LN="ln -s" 11 | 12 | CFLAGS_OPT='' 13 | -------------------------------------------------------------------------------- /base/vim/rpmspec-template: -------------------------------------------------------------------------------- 1 | Name: 2 | Version: 3 | Release: 1%{?dist} 4 | Summary: 5 | 6 | Group: 7 | License: 8 | URL: 9 | Source0: 10 | 11 | BuildRequires: 12 | Requires: 13 | 14 | %description 15 | 16 | 17 | %prep 18 | %setup -q 19 | 20 | 21 | %build 22 | %configure 23 | make %{?_smp_mflags} 24 | 25 | 26 | %install 27 | %make_install 28 | 29 | 30 | %files 31 | %doc 32 | 33 | 34 | 35 | %changelog 36 | -------------------------------------------------------------------------------- /base/squashfs-tools/2gb.patch: -------------------------------------------------------------------------------- 1 | --- squashfs-tools/mksquashfs.c.orig 2014-09-13 11:08:27.352318167 -0500 2 | +++ squashfs-tools/mksquashfs.c 2014-09-13 11:09:36.701132044 -0500 3 | @@ -2055,7 +2055,7 @@ 4 | 5 | inline int is_fragment(struct inode_info *inode) 6 | { 7 | - int file_size = inode->buf.st_size; 8 | + off_t file_size = inode->buf.st_size; 9 | 10 | /* 11 | * If this block is to be compressed differently to the 12 | -------------------------------------------------------------------------------- /graphical/lua51/lua-5.1.4-lunatic.patch: -------------------------------------------------------------------------------- 1 | --- src/loadlib.c.orig 2010-02-09 16:58:47.000000000 -0600 2 | +++ src/loadlib.c 2010-02-09 16:59:12.000000000 -0600 3 | @@ -66,7 +66,7 @@ 4 | 5 | 6 | static void *ll_load (lua_State *L, const char *path) { 7 | - void *lib = dlopen(path, RTLD_NOW); 8 | + void *lib = dlopen(path, RTLD_NOW|RTLD_GLOBAL); 9 | if (lib == NULL) lua_pushstring(L, dlerror()); 10 | return lib; 11 | } 12 | -------------------------------------------------------------------------------- /base/lvm2/mallinfo.patch: -------------------------------------------------------------------------------- 1 | --- ./lib/mm/memlock.c.orig 2015-03-09 11:18:41.560028850 -0100 2 | +++ ./lib/mm/memlock.c 2015-03-09 11:19:54.504373309 -0100 3 | @@ -137,7 +137,7 @@ 4 | 5 | static void _allocate_memory(void) 6 | { 7 | -#ifndef VALGRIND_POOL 8 | +#if !defined(VALGRIND_POOL) && defined(__GLIBC__) 9 | void *stack_mem; 10 | struct rlimit limit; 11 | int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks; 12 | -------------------------------------------------------------------------------- /base/pciutils/pciutils-fix-linking-pci-malloc-Makefile.patch: -------------------------------------------------------------------------------- 1 | --- pciutils-3.2.1/Makefile.orig 2 | +++ pciutils-3.2.1/Makefile 3 | @@ -2,7 +2,7 @@ 4 | # (c) 1998--2013 Martin Mares 5 | 6 | OPT=-O2 7 | -CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes 8 | +CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC 9 | 10 | VERSION=3.2.1 11 | DATE=2013-11-10 12 | -------------------------------------------------------------------------------- /base/kmod/strndupa.patch: -------------------------------------------------------------------------------- 1 | diff --git a/libkmod/libkmod-util.c b/libkmod/libkmod-util.c 2 | index df12433..142e767 100644 3 | --- a/shared/util.c 4 | +++ b/shared/util.c 5 | @@ -334,7 +334,9 @@ int mkdir_p(const char *path, int len, mode_t mode) 6 | { 7 | char *start, *end; 8 | 9 | - start = strndupa(path, len); 10 | + start = alloca(len+1); 11 | + strncpy(start, path, len); 12 | + start[len] = '\0'; 13 | end = start + len; 14 | 15 | /* 16 | -------------------------------------------------------------------------------- /base/openrc/swap-ifexists.patch: -------------------------------------------------------------------------------- 1 | diff --git a/init.d/swap.in b/init.d/swap.in 2 | index 9e8ddbd..2bf5614 100644 3 | --- a/init.d/swap.in 4 | +++ b/init.d/swap.in 5 | @@ -12,7 +12,7 @@ start() 6 | { 7 | ebegin "Activating swap devices" 8 | case "$RC_UNAME" in 9 | - Linux) swapon -a -e >/dev/null;; 10 | + Linux) swapon -a >/dev/null;; 11 | NetBSD|OpenBSD) swapctl -A -t noblk >/dev/null;; 12 | *) swapon -a >/dev/null;; 13 | esac 14 | -------------------------------------------------------------------------------- /graphical/lightdm/lightdm-qt5.patch: -------------------------------------------------------------------------------- 1 | --- configure.ac.orig 2014-07-21 19:43:48.848134193 +0200 2 | +++ configure.ac 2014-07-21 19:44:07.934800963 +0200 3 | @@ -134,7 +134,7 @@ 4 | Qt5Gui 5 | ], 6 | [compile_liblightdm_qt5=yes 7 | - AC_CHECK_TOOLS(MOC5, [moc]) 8 | + AC_CHECK_TOOLS(MOC5, [moc-qt5 moc]) 9 | if test x"$(readlink $(which $MOC5))" = xqtchooser; then 10 | MOC5="$MOC5 --qt=qt5" 11 | fi 12 | -------------------------------------------------------------------------------- /base/lvm2/mlockall-default-config.patch: -------------------------------------------------------------------------------- 1 | --- ./conf/example.conf.in.orig 2 | +++ ./conf/example.conf.in 3 | @@ -1352,7 +1352,7 @@ 4 | # Use the old behavior of mlockall to pin all memory. 5 | # Prior to version 2.02.62, LVM used mlockall() to pin the whole 6 | # process's memory while activating devices. 7 | - use_mlockall = 0 8 | + use_mlockall = 1 9 | 10 | # Configuration option activation/monitoring. 11 | # Monitor LVs that are activated. 12 | -------------------------------------------------------------------------------- /base/openssh/openssh-sftp-interactive.diff: -------------------------------------------------------------------------------- 1 | --- a/sftp.c 2014-10-24 10:32:15.793544472 +0500 2 | +++ b/sftp.c 2014-10-24 10:35:22.329199875 +0500 3 | @@ -2076,8 +2076,10 @@ 4 | signal(SIGINT, SIG_IGN); 5 | 6 | if (el == NULL) { 7 | - if (interactive) 8 | + if (interactive) { 9 | printf("sftp> "); 10 | + fflush(stdout); 11 | + } 12 | if (fgets(cmd, sizeof(cmd), infile) == NULL) { 13 | if (interactive) 14 | printf("\n"); 15 | -------------------------------------------------------------------------------- /base/lua5.2-posix/fix-sched-header.patch: -------------------------------------------------------------------------------- 1 | diff --git a/ext/posix/sched.c b/ext/posix/sched.c 2 | index 13b196b..6901589 100644 3 | --- a/ext/posix/sched.c 4 | +++ b/ext/posix/sched.c 5 | @@ -21,9 +21,7 @@ 6 | 7 | #include 8 | 9 | -#include /* for _POSIX_PRIORITY_SCHEDULING */ 10 | - 11 | -#ifdef _POSIX_PRIORITY_SCHEDULING 12 | +#if HAVE_SCHED_GETSCHEDULER || HAVE_SCHED_SETSCHEDULER 13 | #include 14 | #endif 15 | 16 | 17 | -------------------------------------------------------------------------------- /graphical/bullet/bullet-format.patch: -------------------------------------------------------------------------------- 1 | --- bullet3-2.83.6/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp.orig 2015-08-11 18:17:42.000000000 +0200 2 | +++ bullet3-2.83.6/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp 2015-10-06 21:19:15.195329529 +0200 3 | @@ -140,7 +140,7 @@ 4 | { 5 | count=0; 6 | } 7 | - sprintf(m_fileName,gFileNameArray[count++].c_str()); 8 | + strcpy(m_fileName,gFileNameArray[count++].c_str()); 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /xorg/libdrm/libdrm-limits.patch: -------------------------------------------------------------------------------- 1 | --- libdrm-2.4.65/xf86drm.c 2015-09-04 05:40:57.000000000 -0700 2 | +++ libdrm-2.4.65_new/xf86drm.c 2015-10-11 20:21:36.654599181 -0700 3 | @@ -51,6 +51,9 @@ 4 | #define stat_t struct stat 5 | #include 6 | #include 7 | + 8 | +#include 9 | + 10 | #include 11 | #ifdef HAVE_SYS_MKDEV_H 12 | # include /* defines major(), minor(), and makedev() on Solaris */ 13 | -------------------------------------------------------------------------------- /base/gc/fix-boehm-gc.patch: -------------------------------------------------------------------------------- 1 | --- gc-7.2.orig/os_dep.c 2 | +++ gc-7.2/os_dep.c 3 | @@ -26,7 +26,7 @@ 4 | # define __KERNEL__ 5 | # include 6 | # undef __KERNEL__ 7 | -# else 8 | +# elif defined(__GLIBC__) 9 | /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */ 10 | /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */ 11 | /* prototypes, so we have to include the top-level sigcontext.h to */ 12 | -------------------------------------------------------------------------------- /base/lvm2/library_dir-default-config.patch: -------------------------------------------------------------------------------- 1 | --- ./conf/example.conf.in.orig 2 | +++ ./conf/example.conf.in 3 | @@ -694,6 +694,7 @@ 4 | # Configuration option global/library_dir. 5 | # Search this directory first for shared libraries. 6 | # This configuration option does not have a default value defined. 7 | + library_dir="/lib/device-mapper" 8 | 9 | # Configuration option global/locking_library. 10 | # The external locking library to use for locking_type 2. 11 | -------------------------------------------------------------------------------- /base/python2/unchecked-ioctl.patch: -------------------------------------------------------------------------------- 1 | --- ./Modules/fcntlmodule.c.orig 2 | +++ ./Modules/fcntlmodule.c 3 | @@ -118,7 +118,7 @@ 4 | int mutate_arg = 1; 5 | char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */ 6 | 7 | - if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl", 8 | + if (PyArg_ParseTuple(args, "O&Iw#|n:ioctl", 9 | conv_descriptor, &fd, &code, 10 | &str, &len, &mutate_arg)) { 11 | char *arg; 12 | -------------------------------------------------------------------------------- /base/rpm/rpm-musl-namelen.patch: -------------------------------------------------------------------------------- 1 | --- rpm-4.12.0.1/misc/fts.h 2014-06-30 08:47:14.046503415 +0000 2 | +++ rpm-4.12.0.1/misc/fts.h 2015-11-09 06:14:56.777629701 +0000 3 | @@ -40,6 +40,11 @@ 4 | 5 | # define __THROW 6 | 7 | +#if defined(__musl__) 8 | +# define _D_EXACT_NAMLEN(d) ((d)->d_reclen) 9 | +# define _LARGEFILE64_SOURCE 10 | +#endif 11 | + 12 | #if defined(hpux) 13 | # define _D_EXACT_NAMLEN(d) ((d)->d_namlen) 14 | # define _INCLUDE_POSIX_SOURCE 15 | -------------------------------------------------------------------------------- /base/unzip/unzip-6.0-exec-shield.patch: -------------------------------------------------------------------------------- 1 | diff -up unzip60/crc_i386.S.exec-shield unzip60/crc_i386.S 2 | --- unzip60/crc_i386.S.exec-shield 2007-01-07 06:02:58.000000000 +0100 3 | +++ unzip60/crc_i386.S 2009-11-18 11:16:39.630389312 +0100 4 | @@ -302,3 +302,6 @@ _crc32: /* ulg c 5 | #endif /* i386 || _i386 || _I386 || __i386 */ 6 | 7 | #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */ 8 | + 9 | +.section .note.GNU-stack, "", @progbits 10 | +.previous 11 | -------------------------------------------------------------------------------- /graphical/graphite2/cmake.patch: -------------------------------------------------------------------------------- 1 | --- ./tests/CMakeLists.txt.orig 2 | +++ ./tests/CMakeLists.txt 3 | @@ -58,7 +58,9 @@ 4 | LINKER_LANGUAGE C) 5 | endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 6 | 7 | -add_subdirectory(comparerenderer) 8 | +if (GRAPHITE2_COMPARE_RENDERER) 9 | + add_subdirectory(comparerenderer) 10 | +endif (GRAPHITE2_COMPARE_RENDERER) 11 | add_subdirectory(endian) 12 | add_subdirectory(bittwiddling) 13 | if (NOT GRAPHITE2_NFILEFACE) 14 | -------------------------------------------------------------------------------- /seed/removechroot: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ "$(id -u)" != "0" ]; then 4 | echo 'This script must be run as root, use sudo or su -c "./rootme"' 1>&2 5 | exit 1 6 | fi 7 | 8 | umount $(mount | grep chroot | awk '{print $3}') &> /dev/null 9 | 10 | if [ ! "$(mount | grep chroot | awk '{print $3}')" ]; then 11 | echo "All Chroot mounts removed." 12 | echo "Removing chroot" 13 | rm -rf chroot-x86_64 14 | else 15 | echo "Warning: Chroot mounts still exist." 16 | fi 17 | -------------------------------------------------------------------------------- /base/fakeroot/busybox-getopt.patch: -------------------------------------------------------------------------------- 1 | --- ./scripts/fakeroot.in.orig 2 | +++ ./scripts/fakeroot.in 3 | @@ -43,9 +43,9 @@ 4 | 5 | libfound=no 6 | 7 | -GETOPTEST=`getopt --version` 8 | +GETOPTEST=`getopt --version 2>&1 | head -n2` 9 | case $GETOPTEST in 10 | -getopt*) # GNU getopt 11 | +getopt*|*BusyBox*) # GNU getopt 12 | FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"` 13 | ;; 14 | *) # POSIX getopt ? 15 | -------------------------------------------------------------------------------- /graphical/nspr/nspr-pc.patch: -------------------------------------------------------------------------------- 1 | --- nspr-4.10/nspr/config/nspr.pc.in.orig 2012-05-19 00:26:17.000000000 +0200 2 | +++ nspr-4.10/nspr/config/nspr.pc.in 2012-06-03 08:08:25.428360499 +0200 3 | @@ -7,4 +7,5 @@ 4 | Description: The Netscape Portable Runtime 5 | Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@ 6 | Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ 7 | +Libs.private: -lpthread -ldl 8 | Cflags: -I@includedir@ 9 | -------------------------------------------------------------------------------- /src/makelive/help.msg: -------------------------------------------------------------------------------- 1 | Unity Live th is a Live CD project to let you 2 | test Unity Linux without installing it to your 3 | hard drive. It is also useful for rescuing 4 | damaged systems. 5 | 6 | In case boot troubles try following args: 7 | noapic Disable the "Advanced Programmable Interrupt Controller" 8 | noacpi This parameter disables the whole ACPI system 9 | debuginitrd Run debug shell after initrd process 10 | 11 | 12 | press any key to return to menu 13 | -------------------------------------------------------------------------------- /xorg/freetype/fixme: -------------------------------------------------------------------------------- 1 | # for compat. This should be removed once all apps are properly using 2 | # pkg-config 3 | ln -s freetype2 "$pkgdir"/usr/include/freetype 4 | 5 | # install infinality profile settings 6 | install -Dm755 "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/infinality-settings.sh \ 7 | "$pkgdir"/etc/X11/xinit/xinitrc.d/infinality-settings.sh || return 1 8 | sed -i "1i #!/bin/sh" \ 9 | "$pkgdir"/etc/X11/xinit/xinitrc.d/infinality-settings.sh || return 1 10 | -------------------------------------------------------------------------------- /base/musl/ldconfig: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | scan_dirs() { 3 | scanelf -qS "$@" | while read SONAME FILE; do 4 | TARGET="${FILE##*/}" 5 | LINK="${FILE%/*}/$SONAME" 6 | case "$FILE" in 7 | /lib/*|/usr/lib/*|/usr/local/lib/*) ;; 8 | *) [ -h "$LINK" -o ! -e "$LINK" ] && ln -sf "$TARGET" "$LINK" 9 | esac 10 | done 11 | return 0 12 | } 13 | # eat ldconfig options 14 | while getopts "nNvXvf:C:r:" opt; do 15 | : 16 | done 17 | shift $(( $OPTIND - 1 )) 18 | [ $# -gt 0 ] && scan_dirs "$@" 19 | -------------------------------------------------------------------------------- /base/openrc/openrc-0.4.3-mkmntdirs.patch: -------------------------------------------------------------------------------- 1 | diff -ru openrc-0.4.3.orig/init.d/localmount.in openrc-0.4.3/init.d/localmount.in 2 | --- openrc-0.4.3.orig/init.d/localmount.in 2009-04-19 14:24:11.000000000 +0000 3 | +++ openrc-0.4.3/init.d/localmount.in 2009-04-19 14:25:06.000000000 +0000 4 | @@ -13,6 +13,7 @@ 5 | 6 | start() 7 | { 8 | + [ -x /sbin/mkmntdirs ] && mkmntdirs 9 | # Mount local filesystems in /etc/fstab. 10 | local types="noproc" x= 11 | for x in ${net_fs_list}; do 12 | -------------------------------------------------------------------------------- /base/bzip2/bzip2-1.0.4-man-links.patch: -------------------------------------------------------------------------------- 1 | http://bugs.gentoo.org/172986 2 | 3 | --- bzip2-1.0.4/Makefile 4 | +++ bzip2-1.0.4/Makefile 5 | @@ -85,4 +85,7 @@ 6 | cp -f bzip2.1 $(PREFIX)/share/man/man1 7 | chmod a+r $(PREFIX)/share/man/man1/bzip2.1 8 | + ln -s bzip2.1 $(PREFIX)/share/man/man1/bunzip2.1 9 | + ln -s bzip2.1 $(PREFIX)/share/man/man1/bzcat.1 10 | + ln -s bzip2.1 $(PREFIX)/share/man/man1/bzip2recover.1 11 | cp -f bzlib.h $(PREFIX)/include 12 | chmod a+r $(PREFIX)/include/bzlib.h 13 | -------------------------------------------------------------------------------- /base/python-pygobject/gio.patch: -------------------------------------------------------------------------------- 1 | --- pygobject-2.26.0/gio/Makefile.am.wiget 2010-10-27 22:22:43.519555573 +0200 2 | +++ pygobject-2.26.0/gio/Makefile.am 2010-10-27 22:23:39.140406060 +0200 3 | @@ -97,7 +97,7 @@ endif 4 | # code generator 5 | .defs.c: 6 | (cd $(srcdir)\ 7 | - && $(PYTHON) $(top_srcdir)/codegen/codegen.py \ 8 | + && $(PYTHON) $(abs_top_srcdir)/codegen/codegen.py \ 9 | --py_ssize_t-clean \ 10 | --register gio-types.defs \ 11 | --register unix-types.defs \ 12 | -------------------------------------------------------------------------------- /graphical/lightdm/lightdm.pamd: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist.lightdm onerr=succeed 3 | auth include system-auth 4 | 5 | account required pam_shells.so 6 | account required pam_nologin.so 7 | account required pam_access.so 8 | account include system-auth 9 | 10 | password include system-auth 11 | 12 | session optional pam_keyinit.so force revoke 13 | session include system-auth 14 | session optional pam_console.so 15 | -------------------------------------------------------------------------------- /xorg/mrxvt/mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch: -------------------------------------------------------------------------------- 1 | diff -ru a/src/tabbar.c b/src/tabbar.c 2 | --- a/src/tabbar.c 2009-08-19 21:12:48.000000000 +0000 3 | +++ b/src/tabbar.c 2009-08-19 21:13:35.000000000 +0000 4 | @@ -1314,7 +1314,7 @@ 5 | if( p.we_wordc > 1) 6 | rxvt_msg( DBG_ERROR, DBG_TABBAR, 7 | "Too many words when expanding %s\n", cwdOption ); 8 | - else 9 | + else if( NOT_NULL( *p.we_wordv ) ) 10 | { 11 | filename = *p.we_wordv; 12 | 13 | -------------------------------------------------------------------------------- /base/busybox/udhcpc-discover-retries.patch: -------------------------------------------------------------------------------- 1 | Some slower nics needs more attempts to get a lease 2 | 3 | --- ./networking/udhcp/dhcpc.c.orig 4 | +++ ./networking/udhcp/dhcpc.c 5 | @@ -1238,7 +1238,7 @@ 6 | llist_t *list_x = NULL; 7 | int tryagain_timeout = 20; 8 | int discover_timeout = 3; 9 | - int discover_retries = 3; 10 | + int discover_retries = 5; 11 | uint32_t server_addr = server_addr; /* for compiler */ 12 | uint32_t requested_ip = 0; 13 | uint32_t xid = xid; /* for compiler */ 14 | -------------------------------------------------------------------------------- /graphical/giflib/xmlto-skip-validation.patch: -------------------------------------------------------------------------------- 1 | --- ./doc/Makefile.in.orig 2013-07-15 14:59:04.840695596 +0000 2 | +++ ./doc/Makefile.in 2013-07-15 14:59:30.667643646 +0000 3 | @@ -379,13 +379,13 @@ 4 | 5 | 6 | .xml.html: 7 | - xmlto xhtml-nochunks $< 8 | + xmlto --skip-validation xhtml-nochunks $< 9 | 10 | .xml.1: 11 | - xmlto man $< 12 | + xmlto --skip-validation man $< 13 | 14 | .xml.txt: 15 | - xmlto txt $< 16 | + xmlto --skip-validation txt $< 17 | 18 | all: allhtml manpages 19 | 20 | -------------------------------------------------------------------------------- /graphical/directfb/DirectFB-1.7.6-cle266.patch: -------------------------------------------------------------------------------- 1 | https://bugs.gentoo.org/527986 2 | 3 | --- a/gfxdrivers/cle266/uc_overlay.c 2015-02-10 15:26:24.931309401 -0800 4 | +++ b/gfxdrivers/cle266/uc_overlay.c 2015-02-10 15:26:47.229309401 -0800 5 | @@ -246,7 +246,7 @@ 6 | dfb_surface_flip(surface, false); 7 | 8 | ucovl->field = 0; 9 | - ucovl->lock = lock; 10 | + ucovl->lock = left_lock; 11 | 12 | ret = uc_ovl_update(ucdrv, ucovl, UC_OVL_FLIP, surface, left_lock); 13 | if (ret) 14 | -------------------------------------------------------------------------------- /base/openssh/sshd.confd: -------------------------------------------------------------------------------- 1 | # /etc/conf.d/sshd: config file for /etc/init.d/sshd 2 | 3 | # Where is your sshd_config file stored? 4 | 5 | SSHD_CONFDIR="/etc/ssh" 6 | 7 | 8 | # Any random options you want to pass to sshd. 9 | # See the sshd(8) manpage for more info. 10 | 11 | SSHD_OPTS="" 12 | 13 | 14 | # Pid file to use (needs to be absolute path). 15 | 16 | #SSHD_PIDFILE="/var/run/sshd.pid" 17 | 18 | 19 | # Path to the sshd binary (needs to be absolute path). 20 | 21 | #SSHD_BINARY="/usr/sbin/sshd" 22 | -------------------------------------------------------------------------------- /base/pcre/CVE-2015-5073.patch: -------------------------------------------------------------------------------- 1 | Index: pcre_compile.c 2 | =================================================================== 3 | --- a/pcre_compile.c (revision 1569) 4 | +++ b/pcre_compile.c (revision 1575) 5 | @@ -9449,7 +9449,7 @@ 6 | exceptional ones forgo this. We scan the pattern to check that they are fixed 7 | length, and set their lengths. */ 8 | 9 | -if (cd->check_lookbehind) 10 | +if (errorcode == 0 && cd->check_lookbehind) 11 | { 12 | pcre_uchar *cc = (pcre_uchar *)codestart; 13 | 14 | 15 | -------------------------------------------------------------------------------- /base/python2/00144-no-gdbm.patch: -------------------------------------------------------------------------------- 1 | diff -up Python-2.7.2/Modules/Setup.dist.no-gdbm Python-2.7.2/Modules/Setup.dist 2 | --- Python-2.7.2/Modules/Setup.dist.no-gdbm 2011-09-13 14:25:43.496095926 -0400 3 | +++ Python-2.7.2/Modules/Setup.dist 2011-09-13 14:25:46.491095724 -0400 4 | @@ -396,7 +396,7 @@ dl dlmodule.c 5 | # 6 | # First, look at Setup.config; configure may have set this for you. 7 | 8 | -gdbm gdbmmodule.c -lgdbm 9 | +# gdbm gdbmmodule.c -lgdbm 10 | 11 | 12 | # Sleepycat Berkeley DB interface. 13 | -------------------------------------------------------------------------------- /xorg/freetype/40-memcpy-fix.patch: -------------------------------------------------------------------------------- 1 | --- src/psaux/psobjs.c~ 2006-04-26 16:38:17.000000000 +0200 2 | +++ src/psaux/psobjs.c 2006-09-10 15:01:13.000000000 +0200 3 | @@ -165,6 +165,11 @@ 4 | return PSaux_Err_Invalid_Argument; 5 | } 6 | 7 | + if ( length < 0 ) { 8 | + FT_ERROR(( "ps_table_add: invalid length\n" )); 9 | + return PSaux_Err_Invalid_Argument; 10 | + } 11 | + 12 | /* grow the base block if needed */ 13 | if ( table->cursor + length > table->capacity ) 14 | { 15 | -------------------------------------------------------------------------------- /base/cpio/cpio-info.patch: -------------------------------------------------------------------------------- 1 | --- cpio-2.7/doc/cpio.texi.orig 2006-07-06 15:52:03.000000000 +0200 2 | +++ cpio-2.7/doc/cpio.texi 2006-10-28 13:19:35.667501250 +0200 3 | @@ -5,9 +5,9 @@ 4 | @setchapternewpage off 5 | @c %**end of header 6 | 7 | -@dircategory Archiving 8 | +@dircategory File utilities: 9 | @direntry 10 | -* Cpio: (cpio). Copy-in-copy-out archiver to tape or disk. 11 | +* Cpio: (cpio). Copy-in-copy-out archiver to tape or disk 12 | @end direntry 13 | 14 | @include version.texi 15 | -------------------------------------------------------------------------------- /graphical/sdl/SDL-acfix.patch: -------------------------------------------------------------------------------- 1 | --- SDL-1.2.14/configure.in~ 2009-10-17 17:35:03.000000000 +0000 2 | +++ SDL-1.2.14/configure.in 2009-10-21 09:49:21.000000000 +0000 3 | @@ -890,7 +890,7 @@ 4 | CheckIPod() 5 | { 6 | AC_ARG_ENABLE(ipod, 7 | -AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux [[default=no]]]), 8 | +AC_HELP_STRING([--enable-ipod], [configure SDL to work with iPodLinux @<:@default=yes on arm-elf@:>@]), 9 | , enable_ipod=no) 10 | 11 | if test x$enable_ipod = xyes; then 12 | -------------------------------------------------------------------------------- /base/bzip2/bzip2-1.0.6-saneso.patch: -------------------------------------------------------------------------------- 1 | --- ./Makefile-libbz2_so 2 | +++ ./Makefile-libbz2_so 3 | @@ -35,8 +35,8 @@ 4 | bzlib.o 5 | 6 | all: $(OBJS) 7 | - $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS) 8 | - $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6 9 | + $(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS) 10 | + $(CC) $(LDFLAGS) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6 11 | rm -f libbz2.so.1.0 12 | ln -s libbz2.so.1.0.6 libbz2.so.1.0 13 | 14 | -------------------------------------------------------------------------------- /base/pciutils/multilibconfigh: -------------------------------------------------------------------------------- 1 | #if defined(__x86_64__) || defined(__ia64__) || defined(__ppc64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__aarch64__) 2 | #include "config.lib64.h" 3 | #elif defined(__sparc__) && defined (__arch64__) 4 | #include "config.lib64.h" 5 | #elif defined(__i386__) || defined(__ppc__) || defined(__powerpc__) || defined(__s390__) || defined(__alpha__) || defined(__sparc__) || defined(__sh__) || defined(__arm__) 6 | #include "config.lib.h" 7 | #else 8 | #error Unknown Arch 9 | #endif 10 | -------------------------------------------------------------------------------- /base/unzip/STAGE1-unzip: -------------------------------------------------------------------------------- 1 | srpm unzip 2 | mcd $BUILDDIR/$1 3 | rsync -av $SRC/unzip*/ ./ 4 | make $J -f unix/Makefile \ 5 | CC=${TARGET}-gcc \ 6 | AS=${TARGET}-as \ 7 | AR=${TARGET}-ar \ 8 | STRIP=${TARGET}-strip \ 9 | RANLIB=${TARGET}-ranlib \ 10 | prefix=/usr \ 11 | generic 12 | make $J -f unix/Makefile \ 13 | CC=${TARGET}-gcc \ 14 | AS=${TARGET}-as \ 15 | AR=${TARGET}-ar \ 16 | STRIP=${TARGET}-strip \ 17 | RANLIB=${TARGET}-ranlib \ 18 | prefix=${ROOTFS}/usr \ 19 | install 20 | -------------------------------------------------------------------------------- /graphical/qt5/qt5-qtbase/qt5-qtbase-musl-socklen.patch: -------------------------------------------------------------------------------- 1 | --- qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++/qplatformdefs.h.orig 2 | +++ qt-everywhere-opensource-src-4.8.5/mkspecs/linux-g++/qplatformdefs.h 3 | @@ -86,11 +86,7 @@ 4 | 5 | #undef QT_SOCKLEN_T 6 | 7 | -#if defined(__GLIBC__) && (__GLIBC__ >= 2) 8 | #define QT_SOCKLEN_T socklen_t 9 | -#else 10 | -#define QT_SOCKLEN_T int 11 | -#endif 12 | 13 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) 14 | #define QT_SNPRINTF ::snprintf 15 | -------------------------------------------------------------------------------- /base/grep/grep-2.21-gnulib.patch: -------------------------------------------------------------------------------- 1 | --- grep-2.21/build-aux/update-copyright.orig 2015-08-02 18:10:29.174256966 +0100 2 | +++ grep-2.21/build-aux/update-copyright 2015-08-02 18:11:19.926287054 +0100 3 | @@ -124,7 +124,7 @@ 4 | use warnings; 5 | 6 | my $copyright_re = 'Copyright'; 7 | -my $circle_c_re = '(?:\([cC]\)|@copyright{}|©)'; 8 | +my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©)'; 9 | my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; 10 | $holder ||= 'Free Software Foundation, Inc.'; 11 | my $prefix_max = 5; 12 | -------------------------------------------------------------------------------- /base/unity-baselayout/unity-baselayout.pre-upgrade: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # we need to have our modprobe.d files with .conf suffix 4 | for i in /etc/modprobe.d/*; do 5 | # ignore files that does not exist (i.e if modprobe.d is empty) 6 | [ -r "$i" ] || continue 7 | 8 | # ignore files that has an extention 9 | case "$i" in 10 | *.*) continue;; 11 | esac 12 | 13 | # append extension 14 | mv "$i" "$i".conf 15 | done 16 | 17 | if [ -e /etc/group ] && ! grep -q '^shadow:' /etc/group; then 18 | addgroup -S -g 42 shadow 19 | fi 20 | -------------------------------------------------------------------------------- /base/openssh/openssh-fix-utmp.diff: -------------------------------------------------------------------------------- 1 | --- openssh-6.8p1.orig/loginrec.c 2015-03-17 07:49:20.000000000 -0200 2 | +++ openssh-6.8p1/loginrec.c 2015-03-19 10:45:45.780276841 -0200 3 | @@ -783,7 +783,7 @@ 4 | if (li->hostaddr.sa.sa_family == AF_INET) 5 | utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr; 6 | # endif 7 | -# ifdef HAVE_ADDR_V6_IN_UTMP 8 | +# ifdef HAVE_ADDR_V6_IN_UTMPX 9 | /* this is just a 128-bit IPv6 address */ 10 | if (li->hostaddr.sa.sa_family == AF_INET6) { 11 | sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa); 12 | -------------------------------------------------------------------------------- /base/dev86/dev86-noelks.patch: -------------------------------------------------------------------------------- 1 | --- dev86-0.16.17/makefile.in.noelks 2006-01-25 17:03:02.000000000 -0500 2 | +++ dev86-0.16.17/makefile.in 2006-01-25 17:03:19.000000000 -0500 3 | @@ -89,10 +89,10 @@ 4 | 5 | #ifdef GNUMAKE 6 | all: check_config bcc86 cpp unproto copt as86 ar86 ld86 objdump86 \ 7 | - library lib-bsd alt-libs elksemu 8 | + library lib-bsd alt-libs 9 | 10 | install: check_config install-bcc install-man \ 11 | - install-lib install-emu 12 | + install-lib 13 | 14 | install-all: install install-other 15 | 16 | -------------------------------------------------------------------------------- /base/gcc/gcc-4.9-musl-fortify.patch: -------------------------------------------------------------------------------- 1 | --- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000 2 | +++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000 3 | @@ -146,6 +146,8 @@ 4 | 5 | #ifdef NATIVE_SYSTEM_HEADER_DIR 6 | #define INCLUDE_DEFAULTS_MUSL_NATIVE \ 7 | + { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \ 8 | + { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \ 9 | { NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \ 10 | { NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 }, 11 | #else 12 | -------------------------------------------------------------------------------- /graphical/enlightenment/ewebkit/ewebkit-build.patch: -------------------------------------------------------------------------------- 1 | --- WebKit/Tools/TestWebKitAPI/CMakeLists.txt.orig 2013-12-14 08:50:25.000000000 +0100 2 | +++ WebKit/Tools/TestWebKitAPI/CMakeLists.txt 2013-12-15 09:04:32.637595929 +0100 3 | @@ -130,7 +130,7 @@ 4 | target_link_libraries(test_webcore_${testName} ${test_webcore_LIBRARIES}) 5 | endforeach () 6 | 7 | -add_library(TestWebKitAPIBase 8 | +add_library(TestWebKitAPIBase STATIC 9 | ${test_main_SOURCES} 10 | ${webkit2_api_harness_SOURCES} 11 | ${TESTWEBKITAPI_DIR}/JavaScriptTest.cpp 12 | -------------------------------------------------------------------------------- /graphical/flac/flac-sigemptyset.patch: -------------------------------------------------------------------------------- 1 | --- ./src/libFLAC/cpu.c.orig 2 | +++ ./src/libFLAC/cpu.c 3 | @@ -243,7 +243,7 @@ 4 | struct sigaction sigill_save; 5 | struct sigaction sigill_sse; 6 | sigill_sse.sa_sigaction = sigill_handler_sse_os; 7 | - __sigemptyset(&sigill_sse.sa_mask); 8 | + sigemptyset(&sigill_sse.sa_mask); 9 | sigill_sse.sa_flags = SA_SIGINFO | SA_RESETHAND; /* SA_RESETHAND just in case our SIGILL return jump breaks, so we don't get stuck in a loop */ 10 | if(0 == sigaction(SIGILL, &sigill_sse, &sigill_save)) 11 | { 12 | -------------------------------------------------------------------------------- /base/gcc/210-fixincludes.patch: -------------------------------------------------------------------------------- 1 | diff --git a/fixincludes/mkfixinc.sh b/fixincludes/mkfixinc.sh 2 | index 6653fed..0d96c8c 100755 3 | --- a/fixincludes/mkfixinc.sh 4 | +++ b/fixincludes/mkfixinc.sh 5 | @@ -19,7 +19,8 @@ case $machine in 6 | powerpc-*-eabi* | \ 7 | powerpc-*-rtems* | \ 8 | powerpcle-*-eabisim* | \ 9 | - powerpcle-*-eabi* ) 10 | + powerpcle-*-eabi* | \ 11 | + *-musl* ) 12 | # IF there is no include fixing, 13 | # THEN create a no-op fixer and exit 14 | (echo "#! /bin/sh" ; echo "exit 0" ) > ${target} 15 | -------------------------------------------------------------------------------- /base/make/fix-atexit-exit.patch: -------------------------------------------------------------------------------- 1 | Author: Timo Teräs 2 | 3 | POSIX says the behaviour is undefined if atexit callback calls 4 | exit(). On glibc it works, but on musl it does not. Call instead 5 | _exit() which is guaranteed to work. 6 | 7 | --- ./output.c.orig 8 | +++ ./output.c 9 | @@ -495,7 +495,7 @@ 10 | perror_with_name (_("write error: stdout"), ""); 11 | else 12 | O (error, NILF, _("write error: stdout")); 13 | - exit (MAKE_TROUBLE); 14 | + _exit (MAKE_TROUBLE); 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /base/linux-pam/pam-fix-compat.patch: -------------------------------------------------------------------------------- 1 | --- Linux-PAM-1.1.6.orig/modules/pam_lastlog/pam_lastlog.c 2 | +++ Linux-PAM-1.1.6/modules/pam_lastlog/pam_lastlog.c 3 | @@ -10,6 +10,7 @@ 4 | 5 | #include "config.h" 6 | 7 | +#include 8 | #include 9 | #include 10 | #include 11 | @@ -48,6 +49,10 @@ 12 | 13 | #ifndef _PATH_BTMP 14 | # define _PATH_BTMP "/var/log/btmp" 15 | +#endif 16 | + 17 | +#ifndef __GLIBC__ 18 | +#define logwtmp(args...) 19 | #endif 20 | 21 | /* XXX - time before ignoring lock. Is 1 sec enough? */ 22 | -------------------------------------------------------------------------------- /graphical/nspr/nspr-fix-getproto.patch: -------------------------------------------------------------------------------- 1 | --- ./nspr/pr/src/misc/prnetdb.c.orig 2 | +++ ./nspr/pr/src/misc/prnetdb.c 3 | @@ -61,10 +61,7 @@ 4 | #define _PR_HAVE_GETPROTO_R_POINTER 5 | #endif 6 | 7 | -#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) \ 8 | - || (defined(LINUX) && defined(_REENTRANT) \ 9 | - && !(defined(__GLIBC__) && __GLIBC__ >= 2) \ 10 | - && !defined(ANDROID)) 11 | +#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) 12 | #define _PR_HAVE_GETPROTO_R 13 | #define _PR_HAVE_GETPROTO_R_POINTER 14 | #endif 15 | -------------------------------------------------------------------------------- /base/squashfs-tools/local-cve-fix.patch: -------------------------------------------------------------------------------- 1 | --- squashfs-tools/unsquash-4.c.orig 2015-06-24 14:23:22.270710744 -0500 2 | +++ squashfs-tools/unsquash-4.c 2015-06-24 14:24:13.671243487 -0500 3 | @@ -35,7 +35,7 @@ 4 | size_t indexes = SQUASHFS_FRAGMENT_INDEXES(sBlk.s.fragments); 5 | long long *fragment_table_index; 6 | 7 | - TRACE("read_fragment_table: %d fragments, reading %d fragment indexes " 8 | + TRACE("read_fragment_table: %u fragments, reading %zu fragment indexes " 9 | "from 0x%llx\n", sBlk.s.fragments, indexes, 10 | sBlk.s.fragment_table_start); 11 | 12 | -------------------------------------------------------------------------------- /graphical/qt5/qt5-qtbase/qt5-qtbase-musl-iconv-no-bom.patch: -------------------------------------------------------------------------------- 1 | --- qt-everywhere-opensource-src-4.8.5/src/corelib/codecs/qiconvcodec.cpp.orig 2 | +++ qt-everywhere-opensource-src-4.8.5/src/corelib/codecs/qiconvcodec.cpp 3 | @@ -62,7 +62,7 @@ 4 | #elif defined(Q_OS_AIX) 5 | # define NO_BOM 6 | # define UTF16 "UCS-2" 7 | -#elif defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) 8 | +#elif defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) || (defined(Q_OS_LINUX) && !defined(__GLIBC__)) 9 | # define NO_BOM 10 | # if Q_BYTE_ORDER == Q_BIG_ENDIAN 11 | # define UTF16 "UTF-16BE" 12 | -------------------------------------------------------------------------------- /base/pciutils/pciutils-pread.patch: -------------------------------------------------------------------------------- 1 | --- ./lib/pread.h.orig 2 | +++ ./lib/pread.h 3 | @@ -12,8 +12,8 @@ 4 | * don't define it. 5 | */ 6 | 7 | -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0 8 | -/* glibc 2.1 or newer -> pread/pwrite supported automatically */ 9 | +#if (defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0) || (_POSIX_VERSION >= 200809L) 10 | + /* glibc 2.1 or newer or posix 2008 -> pread/pwrite supported automatically */ 11 | 12 | #elif defined(i386) && defined(__GLIBC__) 13 | /* glibc 2.0 on i386 -> call syscalls directly */ 14 | -------------------------------------------------------------------------------- /graphical/lightdm/lightdm-autologin.pamd: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist.lightdm onerr=succeed 3 | # Allow access without authentication 4 | auth required pam_permit.so 5 | 6 | account required pam_shells.so 7 | account required pam_nologin.so 8 | account required pam_access.so 9 | account include system-auth 10 | 11 | # Can't change password 12 | password required pam_deny.so 13 | 14 | session optional pam_keyinit.so force revoke 15 | session include system-auth 16 | session optional pam_console.so 17 | -------------------------------------------------------------------------------- /src/unity-conf/lbu.conf: -------------------------------------------------------------------------------- 1 | # what cipher to use with -e option 2 | DEFAULT_CIPHER=aes-256-cbc 3 | 4 | # Uncomment the row below to encrypt config by default 5 | # ENCRYPTION=$DEFAULT_CIPHER 6 | 7 | # Uncomment below to avoid option to 'lbu commit' 8 | # Can also be set to 'floppy' 9 | # LBU_MEDIA=usb 10 | 11 | # Set the LBU_BACKUPDIR variable in case you prefer to save the apkovls 12 | # in a normal directory instead of mounting an external media. 13 | # LBU_BACKUPDIR=/root/config-backups 14 | 15 | # Uncomment below to let lbu make up to 3 backups 16 | # BACKUP_LIMIT=3 17 | -------------------------------------------------------------------------------- /base/busybox/glibc.patch: -------------------------------------------------------------------------------- 1 | Fix this by including sys/resource.h. 2 | 3 | Signed-off-by: Markus Trippelsdorf 4 | --- 5 | include/libbb.h | 1 + 6 | 1 file changed, 1 insertion(+) 7 | 8 | diff --git a/include/libbb.h b/include/libbb.h 9 | index f12800f..e7806c2 100644 10 | --- a/include/libbb.h 11 | +++ b/include/libbb.h 12 | @@ -40,6 +40,7 @@ 13 | #include 14 | #include 15 | #include 16 | +#include 17 | #include 18 | #include 19 | #include 20 | -- 21 | -------------------------------------------------------------------------------- /base/python2/python-2.6-rpath.patch: -------------------------------------------------------------------------------- 1 | diff -up Python-2.6/configure.ac.rpath Python-2.6/configure.ac 2 | --- Python-2.6/configure.ac.rpath 2008-11-24 02:51:06.000000000 -0500 3 | +++ Python-2.6/configure.ac 2008-11-24 02:51:21.000000000 -0500 4 | @@ -729,7 +729,7 @@ if test $enable_shared = "yes"; then 5 | ;; 6 | OSF*) 7 | LDLIBRARY='libpython$(VERSION).so' 8 | - BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' 9 | + BLDLIBRARY='-L. -lpython$(VERSION)' 10 | RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 11 | ;; 12 | atheos*) 13 | -------------------------------------------------------------------------------- /base/yum/yum_ok_newline.patch: -------------------------------------------------------------------------------- 1 | diff -Naur yum-3.4.3/output.py yum-3.4.3_old/output.py 2 | --- yum-3.4.3/output.py 2011-06-28 20:27:22.000000000 +0000 3 | +++ yum-3.4.3_old/output.py 2015-09-30 04:58:55.438724231 +0000 4 | @@ -686,7 +686,7 @@ 5 | aui = (yui[0], yui[1], nui[0], nui[1]) 6 | while True: 7 | try: 8 | - choice = raw_input(_('Is this ok [y/N]: ')) 9 | + choice = raw_input(_("Is this ok [y/N]: \n")) 10 | except UnicodeEncodeError: 11 | raise 12 | except UnicodeDecodeError: 13 | -------------------------------------------------------------------------------- /src/unity-conf/setup-xen-dom0.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # simple script to setup basic xen dom0 4 | 5 | # kernel modules 6 | for mod in xen_netback xen_blkback xenfs xen_pciback xen_wdt tun; do 7 | if modprobe $mod; then 8 | grep -q -w $mod /etc/modules || echo $mod >> /etc/modules 9 | fi 10 | done 11 | 12 | # install packages 13 | yum install -y xen 14 | 15 | # setup and start services 16 | for svc in xenstored xenconsoled xenqemu; do 17 | rc-update -q add $svc default 18 | done 19 | 20 | rc-service xenstored start 21 | rc-service xenconsoled start 22 | rc-service xenqemu start 23 | -------------------------------------------------------------------------------- /base/gpgme/gpgme-multilib.h: -------------------------------------------------------------------------------- 1 | /* gpgme-multilib.h */ 2 | /* This file is here to prevent a file conflict on multiarch systems. A 3 | * conflict will occur because gpgme.h has arch-specific definitions. 4 | * 5 | * DO NOT INCLUDE THE NEW FILE DIRECTLY -- ALWAYS INCLUDE THIS ONE INSTEAD. */ 6 | 7 | #ifndef GPGME_MULTILIB_H 8 | #define GPGME_MULTILIB_H 9 | #include 10 | 11 | #if __WORDSIZE == 32 12 | #include "gpgme-32.h" 13 | #elif __WORDSIZE == 64 14 | #include "gpgme-64.h" 15 | #else 16 | #error "unexpected value for __WORDSIZE macro" 17 | #endif 18 | 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /base/libffi/gnu-linux-define.patch: -------------------------------------------------------------------------------- 1 | diff --git a/closures.c.orig b/closures.c 2 | index 721ff00..22a699c 100644 3 | --- a/src/closures.c.orig 4 | +++ b/src/closures.c 5 | @@ -34,7 +34,7 @@ 6 | #include 7 | 8 | #if !FFI_MMAP_EXEC_WRIT && !FFI_EXEC_TRAMPOLINE_TABLE 9 | -# if __gnu_linux__ && !defined(__ANDROID__) 10 | +# if __linux__ && !defined(__ANDROID__) 11 | /* This macro indicates it may be forbidden to map anonymous memory 12 | with both write and execute permission. Code compiled when this 13 | option is defined will attempt to map such pages once, but if it 14 | -------------------------------------------------------------------------------- /base/pciutils/pciutils-2.2.1-idpath.patch: -------------------------------------------------------------------------------- 1 | diff -up pciutils-3.0.0/Makefile.idpath pciutils-3.0.0/Makefile 2 | --- pciutils-3.0.0/Makefile.idpath 2008-04-10 21:19:43.000000000 +0200 3 | +++ pciutils-3.0.0/Makefile 2008-09-01 15:16:19.000000000 +0200 4 | @@ -27,7 +27,7 @@ ABI_VERSION=.3 5 | PREFIX=/usr/local 6 | SBINDIR=$(PREFIX)/sbin 7 | SHAREDIR=$(PREFIX)/share 8 | -IDSDIR=$(SHAREDIR) 9 | +IDSDIR=$(SHAREDIR)/hwdata 10 | MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi) 11 | INCDIR=$(PREFIX)/include 12 | LIBDIR=$(PREFIX)/lib 13 | -------------------------------------------------------------------------------- /base/unzip/unzip-6.0-symlink.patch: -------------------------------------------------------------------------------- 1 | diff --git a/process.c b/process.c 2 | index 1e9a1e1..905732b 100644 3 | --- a/process.c 4 | +++ b/process.c 5 | @@ -1751,6 +1751,12 @@ int process_cdir_file_hdr(__G) /* return PK-type error code */ 6 | = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11); 7 | #endif 8 | 9 | +#ifdef SYMLINKS 10 | + /* Initialize the symlink flag, may be set by the platform-specific 11 | + mapattr function. */ 12 | + G.pInfo->symlink = 0; 13 | +#endif 14 | + 15 | return PK_COOL; 16 | 17 | } /* end function process_cdir_file_hdr() */ 18 | -------------------------------------------------------------------------------- /base/bash-completion/bash-completion-1.99-noblacklist.patch: -------------------------------------------------------------------------------- 1 | diff -up bash-completion-1.99/bash_completion~ bash-completion-1.99/bash_completion 2 | --- bash-completion-1.99/bash_completion~ 2012-01-08 01:03:46.000000000 +0200 3 | +++ bash-completion-1.99/bash_completion 2012-01-08 13:50:33.412012530 +0200 4 | @@ -45,7 +45,7 @@ readonly BASH_COMPLETION_COMPAT_DIR 5 | 6 | # Blacklisted completions, causing problems with our code. 7 | # 8 | -_blacklist_glob='@(acroread.sh)' 9 | +_blacklist_glob='@()' 10 | 11 | # Turn on extended globbing and programmable completion 12 | shopt -s extglob progcomp 13 | -------------------------------------------------------------------------------- /base/bash/bash-noinfo.patch: -------------------------------------------------------------------------------- 1 | diff -Naur doc/Makefile.in.orig doc/Makefile.in 2 | --- doc/Makefile.in.orig 2004-07-27 05:57:48.000000000 -0700 3 | +++ doc/Makefile.in 2005-02-11 22:44:49.000000000 -0800 4 | @@ -220,7 +220,7 @@ 5 | $(SHELL) $(SUPPORT_SRCDIR)/mkinstalldirs $(DESTDIR)$(htmldir) ; \ 6 | fi 7 | 8 | -install: info installdirs bash.info 9 | +install: installdirs 10 | -$(INSTALL_DATA) $(srcdir)/bash.1 $(DESTDIR)$(man1dir)/bash${man1ext} 11 | -$(INSTALL_DATA) $(srcdir)/bashbug.1 $(DESTDIR)$(man1dir)/bashbug${man1ext} 12 | # uncomment the next line to install the builtins man page 13 | -------------------------------------------------------------------------------- /base/openssl/0009-no-rpath.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.shared 2005-06-23 22:47:54.000000000 +0200 2 | +++ b/Makefile.shared 2005-11-16 22:35:37.000000000 +0100 3 | @@ -153,7 +153,7 @@ 4 | NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \ 5 | SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" 6 | 7 | -DO_GNU_APP=LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)" 8 | +DO_GNU_APP=LDFLAGS="$(CFLAGS)" 9 | 10 | #This is rather special. It's a special target with which one can link 11 | #applications without bothering with any features that have anything to 12 | -------------------------------------------------------------------------------- /base/llvm/clang-0004-unity-use-z-relro.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp 2 | index 620a44a..006915c 100644 3 | --- a/lib/Driver/ToolChains.cpp 4 | +++ b/lib/Driver/ToolChains.cpp 5 | @@ -2939,7 +2939,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) 6 | 7 | Distro Distro = DetectDistro(Arch); 8 | 9 | - if (IsOpenSUSE(Distro) || IsUbuntu(Distro)) { 10 | + if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) { 11 | ExtraOpts.push_back("-z"); 12 | ExtraOpts.push_back("relro"); 13 | } 14 | -- 15 | 2.1.4 16 | -------------------------------------------------------------------------------- /base/busybox/busybox-1.11.1-bb.patch: -------------------------------------------------------------------------------- 1 | diff -ru busybox-1.11.1.orig/shell/ash.c busybox-1.11.1/shell/ash.c 2 | --- busybox-1.11.1.orig/shell/ash.c 2008-07-28 09:04:29 +0000 3 | +++ busybox-1.11.1/shell/ash.c 2008-07-28 09:09:21 +0000 4 | @@ -6873,6 +6873,8 @@ 5 | run_applet_no_and_exit(applet_no, argv); 6 | /* re-exec ourselves with the new arguments */ 7 | execve(bb_busybox_exec_path, argv, envp); 8 | + execve("/bin/busybox.static",argv,envp); 9 | + execve("/bin/busybox",argv,envp); 10 | /* If they called chroot or otherwise made the binary no longer 11 | * executable, fall through */ 12 | } 13 | -------------------------------------------------------------------------------- /base/openrc/swap-umount-tmpfs.patch: -------------------------------------------------------------------------------- 1 | diff --git a/init.d/swap.in b/init.d/swap.in 2 | index fa08b4d..e358266 100644 3 | --- a/init.d/swap.in 4 | +++ b/init.d/swap.in 5 | @@ -25,8 +25,10 @@ stop() 6 | 7 | # Try to unmount all tmpfs filesystems not in use, else a deadlock may 8 | # occur. As $RC_SVCDIR may also be tmpfs we cd to it to lock it 9 | - cd "$RC_SVCDIR" 10 | - umount -a -t tmpfs 2>/dev/null 11 | + if [ "$RC_RUNLEVEL" = "shutdown" ]; then 12 | + cd "$RC_SVCDIR" 13 | + umount -a -t tmpfs 2>/dev/null 14 | + fi 15 | 16 | case "$RC_UNAME" in 17 | NetBSD|OpenBSD) swapctl -U -t noblk >/dev/null;; 18 | -------------------------------------------------------------------------------- /graphical/libtheora/link.patch: -------------------------------------------------------------------------------- 1 | --- libtheora-1.1.1/examples/Makefile.am~ 2009-08-31 20:18:36.000000000 +0000 2 | +++ libtheora-1.1.1/examples/Makefile.am 2014-12-30 17:16:19.505697021 +0000 3 | @@ -22,7 +22,7 @@ 4 | 5 | player_example_SOURCES = player_example.c 6 | player_example_CFLAGS = $(SDL_CFLAGS) $(OGG_CFLAGS) $(VORBIS_CFLAGS) 7 | -player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS) 8 | +player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS) -lm 9 | 10 | encoder_example_SOURCES = encoder_example.c 11 | EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h 12 | -------------------------------------------------------------------------------- /base/kmod/sed-ere.patch: -------------------------------------------------------------------------------- 1 | --- ./Makefile.in.orig 2 | +++ ./Makefile.in 3 | @@ -2816,7 +2816,7 @@ 4 | if test "$(libdir)" != "$(rootlibdir)"; then \ 5 | $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ 6 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/libkmod.so) && \ 7 | - so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ 8 | + so_img_rel_target_prefix=$$(echo $(libdir) | sed -E 's,(^/|)[^/][^/]*,..,g') && \ 9 | ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libkmod.so && \ 10 | mv $(DESTDIR)$(libdir)/libkmod.so.* $(DESTDIR)$(rootlibdir); \ 11 | fi 12 | -------------------------------------------------------------------------------- /src/makelive/makelive.spec: -------------------------------------------------------------------------------- 1 | Name: makelive 2 | Version: 0.0.2 3 | Release: 1%{?dist} 4 | Summary: makelive script 5 | 6 | Group: System/Applications 7 | License: GPL 8 | URL: unity-linux 9 | Source0: %{name}-%{version}.tar.gz 10 | 11 | Requires: unity-conf cdrkit 12 | 13 | %description 14 | Test Package 15 | 16 | %prep 17 | %setup -q 18 | 19 | %build 20 | #No build here! 21 | 22 | %install 23 | mkdir -p %{buildroot}/usr/share/makelive 24 | cp %{_builddir}/%{name}-%{version}/* %{buildroot}/usr/share/makelive/ 25 | 26 | %files 27 | %dir %{_datadir}/makelive 28 | %{_datadir}/makelive/* 29 | 30 | %changelog 31 | 32 | -------------------------------------------------------------------------------- /base/cpio/cpio-stdio.in.patch: -------------------------------------------------------------------------------- 1 | diff -urNp cpio-2.11-orig/gnu/stdio.in.h cpio-2.11/gnu/stdio.in.h 2 | --- cpio-2.11-orig/gnu/stdio.in.h 2010-03-10 10:27:03.000000000 +0100 3 | +++ cpio-2.11/gnu/stdio.in.h 2012-06-04 10:23:23.804471185 +0200 4 | @@ -139,7 +139,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not 5 | so any use of gets warrants an unconditional warning. Assume it is 6 | always declared, since it is required by C89. */ 7 | #undef gets 8 | +#if HAVE_RAW_DECL_GETS 9 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 10 | +#endif 11 | 12 | #if @GNULIB_FOPEN@ 13 | # if @REPLACE_FOPEN@ 14 | -------------------------------------------------------------------------------- /base/makelive/makelive.spec: -------------------------------------------------------------------------------- 1 | Name: makelive 2 | Version: 0.0.5 3 | Release: 1%{?dist} 4 | Summary: makelive script 5 | 6 | Group: System/Applications 7 | License: GPL 8 | URL: unity-linux 9 | Source0: %{name}-%{version}.tar.gz 10 | 11 | Requires: unity-conf cdrkit 12 | 13 | %description 14 | Test Package 15 | 16 | %prep 17 | %setup -q 18 | 19 | %build 20 | #No build here! 21 | 22 | %install 23 | mkdir -p %{buildroot}/usr/share/makelive 24 | cp %{_builddir}/%{name}-%{version}/* %{buildroot}/usr/share/makelive/ 25 | 26 | %files 27 | %dir %{_datadir}/makelive 28 | %{_datadir}/makelive/* 29 | 30 | %changelog 31 | 32 | -------------------------------------------------------------------------------- /graphical/bullet/bullet-link.patch: -------------------------------------------------------------------------------- 1 | --- bullet3-2.83.6/src/Bullet3OpenCL/CMakeLists.txt.orig 2015-08-11 18:17:42.000000000 +0200 2 | +++ bullet3-2.83.6/src/Bullet3OpenCL/CMakeLists.txt 2015-10-06 21:41:45.761939521 +0200 3 | @@ -45,7 +45,7 @@ 4 | SET_TARGET_PROPERTIES(Bullet3OpenCL_clew PROPERTIES VERSION ${BULLET_VERSION}) 5 | SET_TARGET_PROPERTIES(Bullet3OpenCL_clew PROPERTIES SOVERSION ${BULLET_VERSION}) 6 | IF (BUILD_SHARED_LIBS) 7 | - TARGET_LINK_LIBRARIES(Bullet3OpenCL_clew LinearMath Bullet3Dynamics) 8 | + TARGET_LINK_LIBRARIES(Bullet3OpenCL_clew LinearMath Bullet3Dynamics dl) 9 | ENDIF (BUILD_SHARED_LIBS) 10 | 11 | 12 | -------------------------------------------------------------------------------- /base/libevent/libevent-nonettests.patch: -------------------------------------------------------------------------------- 1 | diff -up libevent-2.0.21-stable/test/regress_main.c.orig libevent-2.0.21-stable/test/regress_main.c 2 | --- libevent-2.0.21-stable/test/regress_main.c.orig 2012-11-02 11:57:00.000000000 -0400 3 | +++ libevent-2.0.21-stable/test/regress_main.c 2013-08-21 10:16:26.714288000 -0400 4 | @@ -370,7 +370,6 @@ struct testgroup_t testgroups[] = { 5 | { "util/", util_testcases }, 6 | { "bufferevent/", bufferevent_testcases }, 7 | { "http/", http_testcases }, 8 | - { "dns/", dns_testcases }, 9 | { "evtag/", evtag_testcases }, 10 | { "rpc/", rpc_testcases }, 11 | { "thread/", thread_testcases }, 12 | -------------------------------------------------------------------------------- /base/zip/30-zip-3.0-pic.patch: -------------------------------------------------------------------------------- 1 | if our toolchain generates PIC by default, then do not use the hand written 2 | assembly files as none of it is PIC friendly. 3 | 4 | --- unix/configure Wed Jan 28 22:23:54 2009 5 | +++ unix/configure Wed Jan 28 22:29:51 2009 6 | @@ -228,6 +228,9 @@ 7 | echo Check if we can use asm code 8 | OBJA="" 9 | OCRCU8="" 10 | +piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)" 11 | +echo "Checking if compiler wants to create pic code" 12 | +[ "$piclib" == "" ] && \ 13 | if eval "$CPP match.S > _match.s 2>/dev/null"; then 14 | if test ! -s _match.s || grep error < _match.s > /dev/null; then 15 | : 16 | -------------------------------------------------------------------------------- /graphical/at-spi2-core/fix-buffer-overrun.patch: -------------------------------------------------------------------------------- 1 | diff -ru at-spi2-core-2.16.0.orig/bus/at-spi-bus-launcher.c at-spi2-core-2.16.0/bus/at-spi-bus-launcher.c 2 | --- at-spi2-core-2.16.0.orig/bus/at-spi-bus-launcher.c 2015-03-05 06:04:20.000000000 +0200 3 | +++ at-spi2-core-2.16.0/bus/at-spi-bus-launcher.c 2015-10-25 16:00:32.158127066 +0200 4 | @@ -104,7 +104,7 @@ 5 | { 6 | ssize_t bytes_read; 7 | 8 | - while (max_bytes > 1 && (bytes_read = read (fd, buf, MAX (4096, max_bytes - 1)))) 9 | + while (max_bytes > 1 && (bytes_read = read (fd, buf, max_bytes - 1))) 10 | { 11 | if (bytes_read < 0) 12 | return FALSE; 13 | -------------------------------------------------------------------------------- /graphical/libtheora/libpng16.patch: -------------------------------------------------------------------------------- 1 | --- libtheora-1.1.1/examples/png2theora.c~ 2009-08-22 18:14:04.000000000 +0000 2 | +++ libtheora-1.1.1/examples/png2theora.c 2014-12-30 17:19:20.795690627 +0000 3 | @@ -462,9 +462,9 @@ 4 | png_set_strip_alpha(png_ptr); 5 | 6 | row_data = (png_bytep)png_malloc(png_ptr, 7 | - 3*height*width*png_sizeof(*row_data)); 8 | + 3*height*width*sizeof(*row_data)); 9 | row_pointers = (png_bytep *)png_malloc(png_ptr, 10 | - height*png_sizeof(*row_pointers)); 11 | + height*sizeof(*row_pointers)); 12 | for(y = 0; y < height; y++) { 13 | row_pointers[y] = row_data + y*(3*width); 14 | } 15 | -------------------------------------------------------------------------------- /xorg/freetype/20-enable-spr.patch: -------------------------------------------------------------------------------- 1 | --- ./include/config/ftoption.h.spf 2007-01-18 14:27:34.000000000 -0500 2 | +++ ./include/config/ftoption.h 2007-01-18 14:27:48.000000000 -0500 3 | @@ -92,7 +92,7 @@ 4 | /* This is done to allow FreeType clients to run unmodified, forcing */ 5 | /* them to display normal gray-level anti-aliased glyphs. */ 6 | /* */ 7 | -/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ 8 | +#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING 9 | 10 | 11 | /*************************************************************************/ 12 | -------------------------------------------------------------------------------- /base/eudev/setup-udev: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | while getopts "hn" opt; do 4 | case "$opt" in 5 | h) echo "remove mdev and enable udev from boot" 6 | echo "usage: $0 [-n]" 7 | echo "options:" 8 | echo " -n Do not start udev" 9 | ;; 10 | n) dryrun=1 11 | ;; 12 | esac 13 | done 14 | 15 | rm -f /etc/runlevels/sysinit/hwdrivers /etc/runlevels/sysinit/mdev 16 | 17 | for i in udev-trigger udev udev-postmount; do 18 | if ! [ -e /etc/runlevels/sysinit/$i ]; then 19 | ln -s /etc/init.d/$i /etc/runlevels/sysinit/$i 20 | fi 21 | if [ -z "$dryrun" ] && ! rc-service --quiet udev status; then 22 | rc-service udev start 23 | fi 24 | done 25 | -------------------------------------------------------------------------------- /base/openrc/modules.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | description="Loads a user defined list of kernel modules." 4 | 5 | depend() 6 | { 7 | before hwclock hwdrivers 8 | keyword -openvz -prefix -vserver -lxc 9 | } 10 | 11 | start() { 12 | ebegin "Loading modules" 13 | for f in /etc/modules \ 14 | /etc/modules-load.d/*.conf \ 15 | /run/modules-load.d/*.conf \ 16 | /usr/lib/modules-load.d/*.conf \ 17 | /lib/modules-load.d/*.conf; do 18 | if ! [ -f "$f" ]; then 19 | continue 20 | fi 21 | 22 | sed 's/\#.*//g' < "$f" | while read module args; do 23 | modprobe -q $module $args 24 | done 25 | done 26 | eend $? 27 | } 28 | 29 | -------------------------------------------------------------------------------- /base/unity-baselayout/inittab: -------------------------------------------------------------------------------- 1 | # /etc/inittab 2 | 3 | ::sysinit:/sbin/rc sysinit 4 | ::wait:/sbin/rc default 5 | 6 | # Set up a couple of getty's 7 | tty1::respawn:/sbin/getty 38400 tty1 8 | tty2::respawn:/sbin/getty 38400 tty2 9 | tty3::respawn:/sbin/getty 38400 tty3 10 | tty4::respawn:/sbin/getty 38400 tty4 11 | tty5::respawn:/sbin/getty 38400 tty5 12 | tty6::respawn:/sbin/getty 38400 tty6 13 | 14 | # Put a getty on the serial port 15 | #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 16 | 17 | # Stuff to do for the 3-finger salute 18 | ::ctrlaltdel:/sbin/reboot 19 | 20 | # Stuff to do before rebooting 21 | ::shutdown:/sbin/rc shutdown 22 | 23 | -------------------------------------------------------------------------------- /xorg/freetype/30-enable-valid.patch: -------------------------------------------------------------------------------- 1 | --- modules.cfg.orig 2006-07-07 21:01:09.000000000 -0400 2 | +++ modules.cfg 2006-07-07 21:01:54.000000000 -0400 3 | @@ -110,7 +110,7 @@ 4 | AUX_MODULES += cache 5 | 6 | # TrueType GX/AAT table validation. Needs ftgxval.c below. 7 | -# AUX_MODULES += gxvalid 8 | +AUX_MODULES += gxvalid 9 | 10 | # Support for streams compressed with gzip (files with suffix .gz). 11 | # 12 | @@ -124,7 +124,7 @@ 13 | 14 | # OpenType table validation. Needs ftotval.c below. 15 | # 16 | -# AUX_MODULES += otvalid 17 | +AUX_MODULES += otvalid 18 | 19 | # Auxiliary PostScript driver component to share common code. 20 | # 21 | -------------------------------------------------------------------------------- /base/libbsd/musl-fix-headers.patch: -------------------------------------------------------------------------------- 1 | --- libbsd-0.6.0.orig/src/flopen.c 2 | +++ libbsd-0.6.0/src/flopen.c 3 | @@ -32,6 +32,7 @@ 4 | #include 5 | 6 | #include 7 | +#include 8 | #include 9 | #include 10 | #include 11 | --- libbsd-0.6.0.orig/src/nlist.c 12 | +++ libbsd-0.6.0/src/nlist.c 13 | @@ -37,10 +37,11 @@ 14 | #include 15 | #include 16 | #include 17 | +#include 18 | 19 | #include 20 | -#include 21 | #include 22 | +#include 23 | #include 24 | #include 25 | 26 | -------------------------------------------------------------------------------- /base/llvm/clang-0010-unity-use-z-now.patch: -------------------------------------------------------------------------------- 1 | diff --git i/lib/Driver/ToolChains.cpp w/lib/Driver/ToolChains.cpp 2 | index 1e43b6c..ce2de18 100644 3 | --- i/lib/Driver/ToolChains.cpp 4 | +++ w/lib/Driver/ToolChains.cpp 5 | @@ -2944,6 +2944,11 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) 6 | 7 | Distro Distro = DetectDistro(Arch); 8 | 9 | + if (Distro == AlpineLinux) { 10 | + ExtraOpts.push_back("-z"); 11 | + ExtraOpts.push_back("now"); 12 | + } 13 | + 14 | if (IsOpenSUSE(Distro) || IsUbuntu(Distro) || Distro == AlpineLinux) { 15 | ExtraOpts.push_back("-z"); 16 | ExtraOpts.push_back("relro"); 17 | -------------------------------------------------------------------------------- /graphical/bullet/bullet-musl.patch: -------------------------------------------------------------------------------- 1 | --- examples/ThirdPartyLibs/Gwen/Gwen.cpp.orig 2015-08-05 11:31:24.936137203 +0200 2 | +++ examples/ThirdPartyLibs/Gwen/Gwen.cpp 2015-08-05 11:31:33.447238474 +0200 3 | @@ -5,6 +5,7 @@ 4 | */ 5 | 6 | 7 | +#include 8 | #include "Gwen/Gwen.h" 9 | 10 | 11 | --- examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp.orig 2015-08-05 11:34:15.185162987 +0200 12 | +++ examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp 2015-08-05 11:34:24.896278540 +0200 13 | @@ -1,3 +1,4 @@ 14 | +#include 15 | #include "GwenParameterInterface.h" 16 | #include "gwenInternalData.h" 17 | 18 | -------------------------------------------------------------------------------- /xorg/twm/twm-1.0.9-unity.patch: -------------------------------------------------------------------------------- 1 | diff -Naur twm-1.0.9/src/system.twmrc twm-1.0.9_new/src/system.twmrc 2 | --- twm-1.0.9/src/system.twmrc 2015-04-17 05:36:39.000000000 +0000 3 | +++ twm-1.0.9_new/src/system.twmrc 2015-10-29 18:41:14.269315008 +0000 4 | @@ -68,7 +68,7 @@ 5 | # 6 | menu "defops" 7 | { 8 | -"Twm" f.title 9 | +"Unity Twm" f.title 10 | "Iconify" f.iconify 11 | "Resize" f.resize 12 | "Move" f.move 13 | @@ -80,7 +80,7 @@ 14 | "Show Iconmgr" f.showiconmgr 15 | "Hide Iconmgr" f.hideiconmgr 16 | "" f.nop 17 | -"Xterm" f.exec "exec xterm &" 18 | +"mrxvt" f.exec "exec mrxvt &" 19 | "" f.nop 20 | "Kill" f.destroy 21 | "Delete" f.delete 22 | -------------------------------------------------------------------------------- /base/llvm/clang-0009-pass-host-triple-to-compiler-rt.patch: -------------------------------------------------------------------------------- 1 | diff --git i/runtime/CMakeLists.txt w/runtime/CMakeLists.txt 2 | index 9f1cd78..5b3da2e 100644 3 | --- i/runtime/CMakeLists.txt 4 | +++ w/runtime/CMakeLists.txt 5 | @@ -46,6 +46,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) 6 | -DCOMPILER_RT_INSTALL_PATH=lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION} 7 | -DCOMPILER_RT_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS} 8 | -DCOMPILER_RT_ENABLE_WERROR=ON 9 | + -DLLVM_HOST_TRIPLE=${LLVM_HOST_TRIPLE} 10 | INSTALL_COMMAND "" 11 | STEP_TARGETS configure build 12 | ) 13 | -------------------------------------------------------------------------------- /base/llvm/compiler-rt-0003-off_t.patch: -------------------------------------------------------------------------------- 1 | on musl libc off_t is always 64bit 2 | 3 | This is needed for interception to build on 32 bit musl 4 | 5 | --- a/lib/sanitizer_common/sanitizer_internal_defs.h 6 | +++ b/lib/sanitizer_common/sanitizer_internal_defs.h 7 | @@ -87,7 +87,8 @@ 8 | // like pread and mmap, as opposed to pread64 and mmap64. 9 | // FreeBSD, Mac and Linux/x86-64 are special. 10 | #if SANITIZER_FREEBSD || SANITIZER_MAC || \ 11 | - (SANITIZER_LINUX && defined(__x86_64__)) 12 | + (SANITIZER_LINUX && \ 13 | + (defined(__x86_64__) || (!defined(__GLIBC__) && !SANITIZER_ANDROID))) 14 | typedef u64 OFF_T; 15 | #else 16 | typedef uptr OFF_T; 17 | -------------------------------------------------------------------------------- /base/python-pygobject/python-pygobject-pc.patch: -------------------------------------------------------------------------------- 1 | diff -burNp pygobject-2.16.0/pygobject-2.0.pc.in pygobject-2.16.0-dud/pygobject-2.0.pc.in 2 | --- pygobject-2.16.0/pygobject-2.0.pc.in 2008-12-21 17:30:46.000000000 +0100 3 | +++ pygobject-2.16.0-dud/pygobject-2.0.pc.in 2009-02-07 18:38:54.180312682 +0100 4 | @@ -10,7 +10,7 @@ libdir=@libdir@ 5 | # install additional headers. 6 | pygtkincludedir=${includedir}/pygtk-2.0 7 | fixxref=${datadir}/pygobject/xsl/fixxref.py 8 | -pygdocs=${datadir}/gtk-doc/html/pygobject 9 | +pygdocs=${datadir}/doc/gtk-doc/html/pygobject 10 | defsdir=${datadir}/pygobject/2.0/defs 11 | codegendir=${datadir}/pygobject/2.0/codegen 12 | 13 | -------------------------------------------------------------------------------- /graphical/icu/ac264-hack.patch: -------------------------------------------------------------------------------- 1 | --- icu/source/configure.ac~ 2009-09-21 21:51:51.000000000 +0300 2 | +++ icu/source/configure.ac 2009-09-21 21:51:55.877963019 +0300 3 | @@ -517,6 +517,11 @@ 4 | 5 | AC_SUBST(U_HAVE_DIRENT_H) 6 | 7 | +dnl this AC_LINK_IFELSE is early here so that ac 2.64 wouldn't define the `ac_fn_cxx_try_link' in if..else condition 8 | +dnl this is a hack but at this time i don't know what is the real fix 9 | +AC_LANG_PUSH([C++]) 10 | +AC_LINK_IFELSE([AC_LANG_PROGRAM()]) 11 | +AC_LANG_POP([C++]) 12 | 13 | AC_ARG_WITH(iostream, 14 | [ --with-iostream=version specify the version of iostream to use (none, old, std, auto) [default=auto]], 15 | -------------------------------------------------------------------------------- /base/gcc/211-unwind.patch: -------------------------------------------------------------------------------- 1 | diff --git a/libgcc/unwind-dw2-fde-dip.c b/libgcc/unwind-dw2-fde-dip.c 2 | index e1e566b..137dced 100644 3 | --- a/libgcc/unwind-dw2-fde-dip.c 4 | +++ b/libgcc/unwind-dw2-fde-dip.c 5 | @@ -59,6 +59,12 @@ 6 | 7 | #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ 8 | && defined(TARGET_DL_ITERATE_PHDR) \ 9 | + && defined(__linux__) 10 | +# define USE_PT_GNU_EH_FRAME 11 | +#endif 12 | + 13 | +#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ 14 | + && defined(TARGET_DL_ITERATE_PHDR) \ 15 | && (defined(__DragonFly__) || defined(__FreeBSD__)) 16 | # define ElfW __ElfN 17 | # define USE_PT_GNU_EH_FRAME 18 | -------------------------------------------------------------------------------- /base/python-pygobject/python-pygobject-pyc.patch: -------------------------------------------------------------------------------- 1 | diff -urN pygobject-2.16.0/codegen/pygobject-codegen-2.0.in pygobject-2.16.0.new/codegen/pygobject-codegen-2.0.in 2 | --- pygobject-2.16.0/codegen/pygobject-codegen-2.0.in 2008-12-21 17:30:45.000000000 +0100 3 | +++ pygobject-2.16.0.new/codegen/pygobject-codegen-2.0.in 2009-02-16 00:00:54.000000000 +0100 4 | @@ -8,4 +8,10 @@ 5 | PYTHONPATH=$codegendir 6 | export PYTHONPATH 7 | 8 | -exec @PYTHON@ $codegendir/codegen.py "$@" 9 | +if [ -f $codegendir/codegen.pyc ]; then 10 | + codegenexe="$codegendir/codegen.pyc" 11 | +else 12 | + codegenexe="$codegendir/codegen.py" 13 | +fi 14 | + 15 | +exec @PYTHON@ $codegenexe "$@" 16 | -------------------------------------------------------------------------------- /base/libc-dev/sys-cdefs.h: -------------------------------------------------------------------------------- 1 | #warning usage of non-standard #include is deprecated 2 | 3 | #undef __P 4 | #undef __PMT 5 | 6 | #define __P(args) args 7 | #define __PMT(args) args 8 | 9 | #define __CONCAT(x,y) x ## y 10 | #define __STRING(x) #x 11 | 12 | #ifdef __cplusplus 13 | # define __BEGIN_DECLS extern "C" { 14 | # define __END_DECLS } 15 | #else 16 | # define __BEGIN_DECLS 17 | # define __END_DECLS 18 | #endif 19 | 20 | #if defined(__GNUC__) && !defined(__cplusplus) 21 | # define __THROW __attribute__ ((__nothrow__)) 22 | # define __NTH(fct) __attribute__ ((__nothrow__)) fct 23 | #else 24 | # define __THROW 25 | # define __NTH(fct) fct 26 | #endif 27 | -------------------------------------------------------------------------------- /base/libffi/ffi-multilib.h: -------------------------------------------------------------------------------- 1 | /* This file is here to prevent a file conflict on multiarch systems. */ 2 | #ifdef ffi_wrapper_h 3 | #error "Do not define ffi_wrapper_h!" 4 | #endif 5 | #define ffi_wrapper_h 6 | 7 | #if defined(__i386__) 8 | #include "ffi-i386.h" 9 | #elif defined(__powerpc64__) 10 | #include "ffi-ppc64.h" 11 | #elif defined(__powerpc__) 12 | #include "ffi-ppc.h" 13 | #elif defined(__s390x__) 14 | #include "ffi-s390x.h" 15 | #elif defined(__s390__) 16 | #include "ffi-s390.h" 17 | #elif defined(__x86_64__) 18 | #include "ffi-x86_64.h" 19 | #else 20 | #error "The libffi-devel package is not usable with the architecture." 21 | #endif 22 | 23 | #undef ffi_wrapper_h 24 | -------------------------------------------------------------------------------- /base/llvm/compiler-rt-0001-musl-no-dlvsym.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/interception/interception_linux.cc b/lib/interception/interception_linux.cc 2 | index 6e908ac..7fcf2a6 100644 3 | --- a/lib/interception/interception_linux.cc 4 | +++ b/lib/interception/interception_linux.cc 5 | @@ -24,7 +24,7 @@ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr, 6 | return real == wrapper; 7 | } 8 | 9 | -#if !defined(__ANDROID__) // android does not have dlvsym 10 | +#if 0 // !defined(__ANDROID__) // android does not have dlvsym 11 | void *GetFuncAddrVer(const char *func_name, const char *ver) { 12 | return dlvsym(RTLD_NEXT, func_name, ver); 13 | } 14 | -- 15 | 2.1.4 16 | -------------------------------------------------------------------------------- /base/vim/vimrc: -------------------------------------------------------------------------------- 1 | set nocompatible " Use Vim defaults (much better!) 2 | set bs=2 " Allow backspacing over everything in insert mode 3 | set ai " Always set auto-indenting on 4 | set history=50 " keep 50 lines of command history 5 | set ruler " Show the cursor position all the time 6 | 7 | " Don't use Ex mode, use Q for formatting 8 | map Q gq 9 | 10 | " When doing tab completion, give the following files lower priority. 11 | set suffixes+=.info,.aux,.log,.dvi,.bbl,.out,.o,.lo 12 | 13 | set nomodeline 14 | syntax on 15 | " start with spec file template 16 | autocmd BufNewFile *.spec 0r /usr/share/vim/vim74/template.spec 17 | -------------------------------------------------------------------------------- /base/unzip/unzip-6.0-manpage-fix.patch: -------------------------------------------------------------------------------- 1 | --- unzip60/man/unzip.1 2011-01-11 11:59:59.000000000 +0000 2 | +++ unzip60/man/unzip_new 2011-02-05 18:45:55.000000000 +0000 3 | @@ -424,7 +424,7 @@ 4 | .\" Amiga support possible eventually, but not yet 5 | [MS-DOS, OS/2, NT] restore the volume label if the extraction medium is 6 | removable (e.g., a diskette). Doubling the option (\fB\-$$\fP) allows fixed 7 | -media (hard disks) to be labelled as well. By default, volume labels are 8 | +media (hard disks) to be labeled as well. By default, volume labels are 9 | ignored. 10 | .IP \fB\-/\fP\ \fIextensions\fP 11 | [Acorn only] overrides the extension list supplied by Unzip$Ext environment 12 | -------------------------------------------------------------------------------- /graphical/graphite2/graphite2-1.2.0-cmakepath.patch: -------------------------------------------------------------------------------- 1 | diff -urN graphite2-1.2.0.orig/src/CMakeLists.txt graphite2-1.2.0/src/CMakeLists.txt 2 | --- graphite2-1.2.0.orig/src/CMakeLists.txt 2013-01-29 15:47:32.465841769 +0530 3 | +++ graphite2-1.2.0/src/CMakeLists.txt 2013-01-29 15:48:24.056843352 +0530 4 | @@ -136,4 +136,4 @@ 5 | 6 | 7 | install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION bin) 8 | -install(EXPORT graphite2 DESTINATION share/graphite2 NAMESPACE gr2_) 9 | +install(EXPORT graphite2 DESTINATION lib${LIB_SUFFIX}/cmake/graphite2 NAMESPACE gr2_) 10 | -------------------------------------------------------------------------------- /graphical/lightdm/lightdm-nodaemon_option.patch: -------------------------------------------------------------------------------- 1 | diff -up lightdm-1.7.11/src/lightdm.c.nodaemon_option lightdm-1.7.11/src/lightdm.c 2 | --- lightdm-1.7.11/src/lightdm.c.nodaemon_option 2013-08-25 21:32:17.000000000 -0500 3 | +++ lightdm-1.7.11/src/lightdm.c 2013-08-27 19:46:41.100258556 -0500 4 | @@ -994,7 +994,7 @@ main (int argc, char **argv) 5 | g_printerr (/* Text printed out when an unknown command-line argument provided */ 6 | _("Run '%s --help' to see a full list of available command line options."), argv[0]); 7 | g_printerr ("\n"); 8 | - return EXIT_FAILURE; 9 | + /* return EXIT_FAILURE; */ 10 | } 11 | 12 | if (show_version) 13 | -------------------------------------------------------------------------------- /base/rsync/rsyncd.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | # Copyright 1999-2004 Gentoo Foundation 3 | # Distributed under the terms of the GNU General Public License v2 4 | # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d,v 1.5 2007/02/23 11:33:59 uberlord Exp $ 5 | 6 | depend() { 7 | use net 8 | after firewall 9 | } 10 | 11 | start() { 12 | ebegin "Starting rsyncd" 13 | start-stop-daemon --start --exec /usr/bin/rsync \ 14 | --pidfile /var/run/rsyncd.pid \ 15 | -- --daemon ${RSYNC_OPTS} 16 | eend $? 17 | } 18 | 19 | stop() { 20 | ebegin "Stopping rsyncd" 21 | start-stop-daemon --stop --exec /usr/bin/rsync \ 22 | --pidfile /var/run/rsyncd.pid 23 | eend $? 24 | } 25 | -------------------------------------------------------------------------------- /graphical/json-c/size-set-but-not-used.patch: -------------------------------------------------------------------------------- 1 | https://github.com/json-c/json-c/issues/134 2 | 3 | diff --git a/json_tokener.c b/json_tokener.c 4 | index 19de8ef..9a76293 100644 5 | --- a/json_tokener.c 6 | +++ b/json_tokener.c 7 | @@ -352,12 +352,10 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok, 8 | 9 | case json_tokener_state_inf: /* aka starts with 'i' */ 10 | { 11 | - int size; 12 | int size_inf; 13 | int is_negative = 0; 14 | 15 | printbuf_memappend_fast(tok->pb, &c, 1); 16 | - size = json_min(tok->st_pos+1, json_null_str_len); 17 | size_inf = json_min(tok->st_pos+1, json_inf_str_len); 18 | char *infbuf = tok->pb->buf; 19 | if (*infbuf == '-') 20 | -------------------------------------------------------------------------------- /base/libffi/libffi-3.1-fix-include-path.patch: -------------------------------------------------------------------------------- 1 | diff -up libffi-3.1/libffi.pc.in.fixpath libffi-3.1/libffi.pc.in 2 | --- libffi-3.1/libffi.pc.in.fixpath 2014-04-25 19:45:13.000000000 +0200 3 | +++ libffi-3.1/libffi.pc.in 2014-06-12 12:06:06.000000000 +0200 4 | @@ -1,11 +1,10 @@ 5 | prefix=@prefix@ 6 | exec_prefix=@exec_prefix@ 7 | libdir=@libdir@ 8 | -toolexeclibdir=@toolexeclibdir@ 9 | -includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include 10 | +includedir=@includedir@ 11 | 12 | Name: @PACKAGE_NAME@ 13 | Description: Library supporting Foreign Function Interfaces 14 | Version: @PACKAGE_VERSION@ 15 | -Libs: -L${toolexeclibdir} -lffi 16 | +Libs: -L${libdir} -lffi 17 | Cflags: -I${includedir} 18 | -------------------------------------------------------------------------------- /graphical/lightdm/lightdm-greeter.pamd: -------------------------------------------------------------------------------- 1 | #%PAM-1.0 2 | auth required pam_listfile.so item=user sense=deny file=/etc/security/blacklist.lightdm onerr=succeed 3 | # Always let the greeter start without authentication 4 | auth required pam_permit.so 5 | auth include system-auth 6 | 7 | account required pam_shells.so 8 | account required pam_nologin.so 9 | account required pam_access.so 10 | # No action required for account management 11 | account required pam_permit.so 12 | account include system-auth 13 | 14 | # Can't change password 15 | password required pam_deny.so 16 | 17 | session optional pam_keyinit.so force revoke 18 | session include system-auth 19 | session optional pam_console.so 20 | -------------------------------------------------------------------------------- /xorg/xorg-server/autoconfig-sis.patch: -------------------------------------------------------------------------------- 1 | --- ./hw/xfree86/common/xf86pciBus.c.orig 2011-09-24 10:53:45.421697668 +0000 2 | +++ ./hw/xfree86/common/xf86pciBus.c 2011-09-24 10:55:56.416250708 +0000 3 | @@ -1200,9 +1200,15 @@ 4 | break; 5 | } 6 | break; 7 | - case 0x1039: 8 | - driverList[0] = "sis"; 9 | - break; 10 | + case 0x1039: 11 | + switch (dev->device_id) 12 | + { 13 | + case 0x6350: case 0x6351: 14 | + driverList[0] = "sisimedia"; driverList[1] = "sis"; break; 15 | + default: 16 | + driverList[0] = "sis"; break; 17 | + } 18 | + break; 19 | case 0x126f: 20 | driverList[0] = "siliconmotion"; 21 | break; 22 | -------------------------------------------------------------------------------- /base/guile/strtol_l.patch: -------------------------------------------------------------------------------- 1 | We dont have strtol_l on musl so the missing configure.ac check is not 2 | a problem for us. By skipping it we also avoid regenerating configure 3 | script. 4 | 5 | diff --git a/libguile/i18n.c b/libguile/i18n.c 6 | index f0e3443..17e9eca 100644 7 | --- a/libguile/i18n.c 8 | +++ b/libguile/i18n.c 9 | @@ -1373,7 +1373,7 @@ SCM_DEFINE (scm_locale_string_to_integer, "locale-string->integer", 10 | 11 | if (c_locale != NULL) 12 | { 13 | -#ifdef USE_GNU_LOCALE_API 14 | +#if defined(USE_GNU_LOCALE_API) && defined(HAVE_STRTOL_L) 15 | c_result = strtol_l (c_str, &c_endptr, c_base, c_locale); 16 | #else 17 | RUN_IN_LOCALE_SECTION (c_locale, 18 | -- 19 | 2.4.3 20 | 21 | -------------------------------------------------------------------------------- /base/kmod/kmod-static-nodes.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | # Copyright 1999-2014 Gentoo Foundation 3 | # Distributed under the terms of the GNU General Public License v2 4 | # $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/files/kmod-static-nodes-r1,v 1.1 2014/07/11 12:28:07 ssuominen Exp $ 5 | 6 | description="Create list of required static device nodes for the current kernel" 7 | 8 | depend() { 9 | after dev-mount 10 | before tmpfiles.dev dev 11 | keyword -lxc 12 | } 13 | 14 | start() { 15 | ebegin "Creating list of required static device nodes for the current kernel" 16 | checkpath -q -d /run/tmpfiles.d 17 | kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf 18 | eend $? 19 | } 20 | -------------------------------------------------------------------------------- /xorg/freetype/01-freetype-2.6-enable-valid.patch: -------------------------------------------------------------------------------- 1 | --- a/modules.cfg 2013-11-12 13:02:26.000000000 +0100 2 | +++ b/modules.cfg 2014-03-07 19:18:00.546655169 +0100 3 | @@ -110,7 +110,7 @@ RASTER_MODULES += smooth 4 | AUX_MODULES += cache 5 | 6 | # TrueType GX/AAT table validation. Needs ftgxval.c below. 7 | -# AUX_MODULES += gxvalid 8 | +AUX_MODULES += gxvalid 9 | 10 | # Support for streams compressed with gzip (files with suffix .gz). 11 | # 12 | @@ -129,7 +129,7 @@ AUX_MODULES += bzip2 13 | 14 | # OpenType table validation. Needs ftotval.c below. 15 | # 16 | -# AUX_MODULES += otvalid 17 | +AUX_MODULES += otvalid 18 | 19 | # Auxiliary PostScript driver component to share common code. 20 | # 21 | -------------------------------------------------------------------------------- /base/fakeroot/fakeroot-no64.patch: -------------------------------------------------------------------------------- 1 | --- a/libfakeroot.c 2 | +++ b/libfakeroot.c 3 | @@ -81,12 +81,14 @@ 4 | #define SEND_STAT64(a,b,c) send_stat64(a,b,c) 5 | #define SEND_GET_STAT(a,b) send_get_stat(a,b) 6 | #define SEND_GET_STAT64(a,b) send_get_stat64(a,b) 7 | +#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b,c) 8 | #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b,c) 9 | #else 10 | #define SEND_STAT(a,b,c) send_stat(a,b) 11 | #define SEND_STAT64(a,b,c) send_stat64(a,b) 12 | #define SEND_GET_STAT(a,b) send_get_stat(a) 13 | #define SEND_GET_STAT64(a,b) send_get_stat64(a) 14 | +#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b) 15 | #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b) 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /base/gcc/050_all_libiberty-asprintf.patch: -------------------------------------------------------------------------------- 1 | 2008-07-25 Magnus Granberg 2 | 3 | * include/libiberty.h (asprintf): Don't declare if defined as a macro 4 | 5 | --- a/include/libiberty.h 6 | +++ b/include/libiberty.h 7 | @@ -609,8 +609,11 @@ extern int pwait (int, int *, int); 8 | /* Like sprintf but provides a pointer to malloc'd storage, which must 9 | be freed by the caller. */ 10 | 11 | +/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */ 12 | +#ifndef asprintf 13 | extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; 14 | #endif 15 | +#endif 16 | 17 | #if !HAVE_DECL_VASPRINTF 18 | /* Like vsprintf but provides a pointer to malloc'd storage, which 19 | -------------------------------------------------------------------------------- /base/unzip/unzip-6.0-attribs-overflow.patch: -------------------------------------------------------------------------------- 1 | diff -up unzip60/zipinfo.c.attribs-overflow unzip60/zipinfo.c 2 | --- unzip60/zipinfo.c.attribs-overflow 2009-11-30 09:55:39.000000000 +0100 3 | +++ unzip60/zipinfo.c 2009-11-30 09:56:42.844263244 +0100 4 | @@ -1881,7 +1881,7 @@ static int zi_short(__G) /* return PK- 5 | #endif 6 | int k, error, error_in_archive=PK_COOL; 7 | unsigned hostnum, hostver, methid, methnum, xattr; 8 | - char *p, workspace[12], attribs[16]; 9 | + char *p, workspace[12], attribs[17]; 10 | char methbuf[5]; 11 | static ZCONST char dtype[5]="NXFS"; /* normal, maximum, fast, superfast */ 12 | static ZCONST char Far os[NUM_HOSTS+1][4] = { 13 | -------------------------------------------------------------------------------- /base/bzip2/bzip2-1.0.4-makefile-CFLAGS.patch: -------------------------------------------------------------------------------- 1 | --- ./Makefile 2 | +++ ./Makefile 3 | @@ -18,10 +18,9 @@ 4 | CC=gcc 5 | AR=ar 6 | RANLIB=ranlib 7 | -LDFLAGS= 8 | 9 | BIGFILES=-D_FILE_OFFSET_BITS=64 10 | -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) 11 | +CFLAGS+=-Wall -Winline $(BIGFILES) $(CPPFLAGS) 12 | 13 | # Where you want it installed when you do 'make install' 14 | PREFIX=/usr/local 15 | --- ./Makefile-libbz2_so 16 | +++ ./Makefile-libbz2_so 17 | @@ -24,7 +24,7 @@ 18 | SHELL=/bin/sh 19 | CC=gcc 20 | BIGFILES=-D_FILE_OFFSET_BITS=64 21 | -CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES) 22 | +CFLAGS+=-fpic -fPIC -Wall -Winline $(BIGFILES) $(CPPFLAGS) 23 | 24 | OBJS= blocksort.o \ 25 | huffman.o \ 26 | -------------------------------------------------------------------------------- /graphical/directfb/DirectFB-1.7.6-union-sigval.patch: -------------------------------------------------------------------------------- 1 | diff -Naur DirectFB-1.7.6.orig/lib/direct/os/linux/glibc/system.c DirectFB-1.7.6/lib/direct/os/linux/glibc/system.c 2 | --- DirectFB-1.7.6.orig/lib/direct/os/linux/glibc/system.c 2014-07-15 02:54:58.000000000 -0400 3 | +++ DirectFB-1.7.6/lib/direct/os/linux/glibc/system.c 2015-07-18 16:55:35.077989166 -0400 4 | @@ -111,7 +111,7 @@ 5 | void 6 | direct_trap( const char *domain, int sig ) 7 | { 8 | - sigval_t val; 9 | + union sigval val; 10 | 11 | if (direct_config->delay_trap_ms) { 12 | D_LOG( Direct_Trap, VERBOSE, "NOT RAISING signal %d from %s, waiting for %dms... attach gdb --pid=%d\n", sig, domain, direct_config->delay_trap_ms, getpid() ); 13 | -------------------------------------------------------------------------------- /graphical/lightdm/config.patch: -------------------------------------------------------------------------------- 1 | --- lightdm-1.9.14/data/lightdm.conf~ 2014-04-04 00:15:51.000000000 +0300 2 | +++ lightdm-1.9.14/data/lightdm.conf 2014-04-04 00:16:14.981378601 +0300 3 | @@ -18,9 +18,9 @@ 4 | # 5 | [LightDM] 6 | #start-default-seat=true 7 | -#greeter-user=lightdm 8 | +greeter-user=xdm 9 | #minimum-display-number=0 10 | -#minimum-vt=7 11 | +minimum-vt=7 12 | #lock-memory=true 13 | #user-authority-in-system-dir=false 14 | #guest-account-script=guest-account 15 | @@ -93,7 +93,7 @@ 16 | #user-session=default 17 | #allow-guest=true 18 | #guest-session= 19 | -#session-wrapper=lightdm-session 20 | +session-wrapper=/etc/X11/xinit/xinitrc 21 | #greeter-wrapper= 22 | #guest-wrapper= 23 | #display-setup-script= 24 | -------------------------------------------------------------------------------- /base/libtiff/libtiff-make-check.patch: -------------------------------------------------------------------------------- 1 | diff --git a/html/man/Makefile.am b/html/man/Makefile.am 2 | index ca222de..c7421ac 100644 3 | --- a/html/man/Makefile.am 4 | +++ b/html/man/Makefile.am 5 | @@ -85,7 +85,6 @@ docfiles = \ 6 | ras2tiff.1.html \ 7 | raw2tiff.1.html \ 8 | rgb2ycbcr.1.html \ 9 | - sgi2tiff.1.html \ 10 | thumbnail.1.html \ 11 | tiff2bw.1.html \ 12 | tiff2pdf.1.html \ 13 | @@ -96,12 +95,10 @@ docfiles = \ 14 | tiffcrop.1.html \ 15 | tiffdither.1.html \ 16 | tiffdump.1.html \ 17 | - tiffgt.1.html \ 18 | tiffinfo.1.html \ 19 | tiffmedian.1.html \ 20 | tiffset.1.html \ 21 | - tiffsplit.1.html \ 22 | - tiffsv.1.html 23 | + tiffsplit.1.html 24 | 25 | dist_doc_DATA = $(indexfile) $(docfiles) 26 | 27 | -------------------------------------------------------------------------------- /base/openssl/0003-use-termios.patch: -------------------------------------------------------------------------------- 1 | From 5caf1bdcdb56358c0ce38ef404fedbe323e66cb9 Mon Sep 17 00:00:00 2001 2 | From: =?UTF-8?q?Timo=20Ter=C3=A4s?= 3 | Date: Thu, 5 Feb 2015 08:40:32 +0200 4 | Subject: [PATCH] use termios 5 | 6 | --- 7 | crypto/ui/ui_openssl.c | 3 +++ 8 | 1 file changed, 3 insertions(+) 9 | 10 | diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c 11 | index 8bda83c..a89b5f2 100644 12 | --- a/crypto/ui/ui_openssl.c 13 | +++ b/crypto/ui/ui_openssl.c 14 | @@ -224,6 +224,9 @@ 15 | # undef SGTTY 16 | #endif 17 | 18 | +#define TERMIOS 19 | +#undef TERMIO 20 | + 21 | #ifdef TERMIOS 22 | # include 23 | # define TTY_STRUCT struct termios 24 | -- 25 | 2.2.2 26 | 27 | -------------------------------------------------------------------------------- /base/gcc/gcc-pure64.patch: -------------------------------------------------------------------------------- 1 | --- ./gcc/config/i386/t-linux64.orig 2013-01-14 16:32:37.000000000 +0000 2 | +++ ./gcc/config/i386/t-linux64 2013-04-22 06:12:32.984439677 +0000 3 | @@ -34,6 +34,6 @@ 4 | comma=, 5 | MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG)) 6 | MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS))) 7 | -MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu) 8 | -MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu) 9 | +MULTILIB_OSDIRNAMES = m64=../lib64 10 | +MULTILIB_OSDIRNAMES+= m32=../lib 11 | MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32) 12 | -------------------------------------------------------------------------------- /base/zip/20-zip-3.0-exec-stack.patch: -------------------------------------------------------------------------------- 1 | add proper GNU stack markings so we dont get the default: executable 2 | 3 | --- crc_i386.S Wed Jan 28 22:22:13 2009 4 | +++ crc_i386.S Wed Jan 28 22:27:04 2009 5 | @@ -302,3 +302,7 @@ 6 | #endif /* i386 || _i386 || _I386 || __i386 */ 7 | 8 | #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */ 9 | + 10 | +#if defined __ELF__ && defined __linux__ 11 | +.section .note.GNU-stack,"",@progbits 12 | +#endif 13 | --- match.S Wed Jan 28 22:22:13 2009 14 | +++ match.S Wed Jan 28 22:27:04 2009 15 | @@ -405,3 +405,7 @@ 16 | #endif /* i386 || _I386 || _i386 || __i386 */ 17 | 18 | #endif /* !USE_ZLIB */ 19 | + 20 | +#if defined __ELF__ && defined __linux__ 21 | +.section .note.GNU-stack,"",@progbits 22 | +#endif 23 | -------------------------------------------------------------------------------- /base/libffi/ffitarget-multilib.h: -------------------------------------------------------------------------------- 1 | /* This file is here to prevent a file conflict on multiarch systems. */ 2 | #ifdef ffitarget_wrapper_h 3 | #error "Do not define ffitarget_wrapper_h!" 4 | #endif 5 | #define ffitarget_wrapper_h 6 | 7 | #if defined(__i386__) 8 | #include "ffitarget-i386.h" 9 | #elif defined(__powerpc64__) 10 | #include "ffitarget-ppc64.h" 11 | #elif defined(__powerpc__) 12 | #include "ffitarget-ppc.h" 13 | #elif defined(__s390x__) 14 | #include "ffitarget-s390x.h" 15 | #elif defined(__s390__) 16 | #include "ffitarget-s390.h" 17 | #elif defined(__x86_64__) 18 | #include "ffitarget-x86_64.h" 19 | #else 20 | #error "The libffi-devel package is not usable with the architecture." 21 | #endif 22 | 23 | #undef ffitarget_wrapper_h 24 | -------------------------------------------------------------------------------- /graphical/sdl/SDL-const_XData32.patch: -------------------------------------------------------------------------------- 1 | libX11-1.5.99.901 has changed prototype of _XData32 2 | 3 | 4 | 5 | diff -r b6b2829cd7ef src/video/x11/SDL_x11sym.h 6 | --- a/src/video/x11/SDL_x11sym.h Wed Feb 27 15:20:31 2013 -0800 7 | +++ b/src/video/x11/SDL_x11sym.h Wed Mar 27 16:07:23 2013 +0100 8 | @@ -165,7 +165,7 @@ 9 | */ 10 | #ifdef LONG64 11 | SDL_X11_MODULE(IO_32BIT) 12 | -SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) 13 | +SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return) 14 | SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),) 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /base/gdb/gdb-linux_nat.patch: -------------------------------------------------------------------------------- 1 | --- ./gdb/linux-nat.c.orig 2 | +++ ./gdb/linux-nat.c 3 | @@ -169,6 +169,10 @@ 4 | #define O_LARGEFILE 0 5 | #endif 6 | 7 | +#ifndef W_STOPCODE 8 | +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f) 9 | +#endif 10 | + 11 | /* The single-threaded native GNU/Linux target_ops. We save a pointer for 12 | the use of the multi-threaded target. */ 13 | static struct target_ops *linux_ops; 14 | @@ -4875,10 +4879,10 @@ 15 | fortunately they don't change! */ 16 | 17 | if (restart == 0) 18 | - restart = __SIGRTMIN; 19 | + restart = SIGRTMIN; 20 | 21 | if (cancel == 0) 22 | - cancel = __SIGRTMIN + 1; 23 | + cancel = SIGRTMIN + 1; 24 | 25 | sigaddset (set, restart); 26 | sigaddset (set, cancel); 27 | -------------------------------------------------------------------------------- /base/llvm/clang-0005-unity-hash-style-gnu.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp 2 | index 006915c..6007a98 100644 3 | --- a/lib/Driver/ToolChains.cpp 4 | +++ b/lib/Driver/ToolChains.cpp 5 | @@ -2959,7 +2959,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) 6 | // ABI requires a mapping between the GOT and the symbol table. 7 | // Android loader does not support .gnu.hash. 8 | if (!IsMips && !IsAndroid) { 9 | - if (IsRedhat(Distro) || IsOpenSUSE(Distro) || 10 | + if (IsRedhat(Distro) || IsOpenSUSE(Distro) || Distro == AlpineLinux || 11 | (IsUbuntu(Distro) && Distro >= UbuntuMaverick)) 12 | ExtraOpts.push_back("--hash-style=gnu"); 13 | 14 | -- 15 | 2.1.4 16 | -------------------------------------------------------------------------------- /base/python-pygobject/python-pygobject-pycairo.patch: -------------------------------------------------------------------------------- 1 | --- pygobject-2.28.4/gi/pygi-foreign-cairo.c.orig 2011-04-18 17:36:47.000000000 +0200 2 | +++ pygobject-2.28.4/gi/pygi-foreign-cairo.c 2011-05-22 20:57:19.521360594 +0200 3 | @@ -30,7 +30,9 @@ 4 | #include 5 | #endif 6 | 7 | +#if PY_VERSION_HEX < 0x03000000 8 | Pycairo_CAPI_t *Pycairo_CAPI; 9 | +#endif 10 | 11 | #include "pygi-foreign.h" 12 | 13 | @@ -115,7 +117,11 @@ 14 | static PyMethodDef _gi_cairo_functions[] = {}; 15 | PYGLIB_MODULE_START(_gi_cairo, "_gi_cairo") 16 | { 17 | +#if PY_VERSION_HEX < 0x03000000 18 | Pycairo_IMPORT; 19 | +#else 20 | + import_cairo(); 21 | +#endif 22 | if (Pycairo_CAPI == NULL) 23 | return PYGLIB_MODULE_ERROR_RETURN; 24 | 25 | -------------------------------------------------------------------------------- /base/llvm/clang-0003-add-unity-linux-distro.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp 2 | index 8bd8298..620a44a 100644 3 | --- a/lib/Driver/ToolChains.cpp 4 | +++ b/lib/Driver/ToolChains.cpp 5 | @@ -2672,6 +2672,7 @@ Tool *Solaris::buildLinker() const { 6 | /// Distribution (very bare-bones at the moment). 7 | 8 | enum Distro { 9 | + AlpineLinux, 10 | ArchLinux, 11 | DebianLenny, 12 | DebianSqueeze, 13 | @@ -2783,6 +2784,9 @@ static Distro DetectDistro(llvm::Triple::ArchType Arch) { 14 | if (llvm::sys::fs::exists("/etc/arch-release")) 15 | return ArchLinux; 16 | 17 | + if (llvm::sys::fs::exists("/etc/unity-release")) 18 | + return AlpineLinux; 19 | + 20 | return UnknownDistro; 21 | } 22 | 23 | -- 24 | 2.1.4 25 | -------------------------------------------------------------------------------- /base/mtools/mtools-3.9.6-config.patch: -------------------------------------------------------------------------------- 1 | diff -up mtools-4.0.9/mtools.conf.conf mtools-4.0.9/mtools.conf 2 | --- mtools-4.0.9/mtools.conf.conf 2009-03-01 00:01:03.000000000 +0100 3 | +++ mtools-4.0.9/mtools.conf 2009-03-09 18:21:40.000000000 +0100 4 | @@ -16,11 +16,10 @@ 5 | 6 | # Example mtools.conf files. Uncomment the lines which correspond to 7 | # your architecture and comment out the "SAMPLE FILE" line below 8 | -SAMPLE FILE 9 | 10 | -# # Linux floppy drives 11 | -# drive a: file="/dev/fd0" exclusive 12 | -# drive b: file="/dev/fd1" exclusive 13 | +# Linux floppy drives 14 | +drive a: file="/dev/fd0" exclusive mformat_only 15 | +drive b: file="/dev/fd1" exclusive mformat_only 16 | 17 | # # First SCSI hard disk partition 18 | # drive c: file="/dev/sda1" 19 | -------------------------------------------------------------------------------- /base/musl/0002-ns_parse.c-fix-ns_skiprr.patch: -------------------------------------------------------------------------------- 1 | From 06bc5ba10113ab72ac8bf0b81defffa353146496 Mon Sep 17 00:00:00 2001 2 | From: Yu Lu 3 | Date: Tue, 7 Jul 2015 10:34:02 +0300 4 | Subject: [PATCH] ns_parse.c: fix ns_skiprr 5 | 6 | --- 7 | src/network/ns_parse.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/network/ns_parse.c b/src/network/ns_parse.c 11 | index 3ff33a8..d01da47 100644 12 | --- a/src/network/ns_parse.c 13 | +++ b/src/network/ns_parse.c 14 | @@ -95,7 +95,7 @@ int ns_skiprr(const unsigned char *ptr, const unsigned char *eom, ns_sect sectio 15 | p += r; 16 | } 17 | } 18 | - return ptr - p; 19 | + return p - ptr; 20 | bad: 21 | errno = EMSGSIZE; 22 | return -1; 23 | -- 24 | 2.4.5 25 | 26 | -------------------------------------------------------------------------------- /graphical/qt5/qt5-qtbase/qtbase-oracle-instantclient.patch: -------------------------------------------------------------------------------- 1 | --- qtbase-opensource-src-5.3.0/src/sql/drivers/oci/qsql_oci.pri.orig 2014-05-15 19:12:11.000000000 +0200 2 | +++ qtbase-opensource-src-5.3.0/src/sql/drivers/oci/qsql_oci.pri 2014-06-01 13:15:50.625305132 +0200 3 | @@ -7,3 +7,4 @@ 4 | LIBS *= -loci 5 | } 6 | mac:QMAKE_LFLAGS += -Wl,-flat_namespace,-U,_environ 7 | +QMAKE_CXXFLAGS += -I/usr/include/oracle/client 8 | --- qtbase-opensource-src-5.3.0/config.tests/unix/oci/oci.pro.orig 2014-05-15 19:12:18.000000000 +0200 9 | +++ qtbase-opensource-src-5.3.0/config.tests/unix/oci/oci.pro 2014-06-01 13:17:02.585303633 +0200 10 | @@ -1,3 +1,4 @@ 11 | SOURCES = oci.cpp 12 | CONFIG -= qt dylib 13 | LIBS += -lclntsh 14 | +QMAKE_CXXFLAGS += -I/usr/include/oracle/client 15 | -------------------------------------------------------------------------------- /graphical/alsa-udev/alsa-udev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ $# != 1 ] && exit 1 4 | 5 | CARD=$1 6 | 7 | . /etc/rc.d/init.d/functions 8 | [ -f /etc/sysconfig/alsa-udev ] && . /etc/sysconfig/alsa-udev 9 | 10 | case "$ACTION" in 11 | add) 12 | eval LOAD_MODULES="\$MODULES_$CARD" 13 | for i in "$LOAD_MODULES"; do 14 | /sbin/modprobe -q --ignore-install $i 15 | done 16 | 17 | if is_yes "$OSS_EMULATION"; then 18 | /sbin/modprobe -q --ignore-install snd_pcm_oss 19 | [ -e /dev/snd/seq ] && /sbin/modprobe -q --ignore-install snd_seq_oss 20 | fi 21 | 22 | /usr/sbin/alsactl restore "$CARD" 23 | 24 | eval SCRIPT="\$POST_INSTALL_$CARD" 25 | [ -n "$SCRIPT" ] && eval "$SCRIPT" 26 | ;; 27 | remove) 28 | /usr/sbin/alsactl store "$CARD" 29 | ;; 30 | esac 31 | -------------------------------------------------------------------------------- /base/busybox/busybox-uname-is-not-gnu.patch: -------------------------------------------------------------------------------- 1 | --- busybox-1.18.2.orig/coreutils/uname.c 2 | +++ busybox-1.18.2/coreutils/uname.c 3 | @@ -56,7 +56,7 @@ 4 | struct utsname name; 5 | char processor[sizeof(((struct utsname*)NULL)->machine)]; 6 | char platform[sizeof(((struct utsname*)NULL)->machine)]; 7 | - char os[sizeof("GNU/Linux")]; 8 | + char os[sizeof("Linux")]; 9 | } uname_info_t; 10 | 11 | static const char options[] ALIGN1 = "snrvmpioa"; 12 | @@ -123,7 +123,7 @@ 13 | #endif 14 | strcpy(uname_info.processor, unknown_str); 15 | strcpy(uname_info.platform, unknown_str); 16 | - strcpy(uname_info.os, "GNU/Linux"); 17 | + strcpy(uname_info.os, "Linux"); 18 | #if 0 19 | /* Fedora does something like this */ 20 | strcpy(uname_info.processor, uname_info.name.machine); 21 | -------------------------------------------------------------------------------- /base/cpio/cpio-ifdef.patch: -------------------------------------------------------------------------------- 1 | --- cpio-2.11/lib/system.h.orig 2010-03-10 10:27:14.000000000 +0100 2 | +++ cpio-2.11/lib/system.h 2010-04-01 20:11:55.744993924 +0200 3 | @@ -17,7 +17,7 @@ 4 | along with this program; if not, write to the Free Software Foundation, 5 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 6 | 7 | -#if HAVE_CONFIG_H 8 | +#ifdef HAVE_CONFIG_H 9 | # include 10 | #endif 11 | 12 | --- cpio-2.11/lib/sysdep.c.orig 2010-03-10 10:27:14.000000000 +0100 13 | +++ cpio-2.11/lib/sysdep.c 2010-04-01 20:12:02.508993924 +0200 14 | @@ -21,7 +21,7 @@ 15 | along with GNU cpiio. If not, see . */ 16 | 17 | 18 | -#if HAVE_CONFIG_H 19 | +#ifdef HAVE_CONFIG_H 20 | # include 21 | #endif 22 | 23 | -------------------------------------------------------------------------------- /base/screen/screen-utmp.patch: -------------------------------------------------------------------------------- 1 | --- screen-4.0.2-orig/config.h.in 2004-01-19 16:27:08.106776000 -0500 2 | +++ screen-4.0.2/config.h.in 2004-01-19 16:29:15.876778000 -0500 3 | @@ -208,14 +208,16 @@ 4 | * If screen is installed with permissions to update /etc/utmp (such 5 | * as if it is installed set-uid root), define UTMPOK. 6 | */ 7 | +#if 0 /* not sbit for screen per default */ 8 | #define UTMPOK 9 | +#endif 10 | 11 | /* Set LOGINDEFAULT to one (1) 12 | * if you want entries added to /etc/utmp by default, else set it to 13 | * zero (0). 14 | * LOGINDEFAULT will be one (1) whenever LOGOUTOK is undefined! 15 | */ 16 | -#define LOGINDEFAULT 1 17 | +#define LOGINDEFAULT 0 18 | 19 | /* Set LOGOUTOK to one (1) 20 | * if you want the user to be able to log her/his windows out. 21 | -------------------------------------------------------------------------------- /graphical/enlightenment/efl/egl-types-fixup.patch: -------------------------------------------------------------------------------- 1 | Not sure what's going on here, but to fix enlightenment build I've 2 | switched the data types to the ones defined in khrplatform.h. 3 | 4 | --- src/lib/evas/Evas_GL.h.orig 2014-11-11 11:26:36.753709613 +0100 5 | +++ src/lib/evas/Evas_GL.h 2014-11-11 11:27:01.946647835 +0100 6 | @@ -843,8 +843,8 @@ EAPI Evas_GL_Surface *evas_gl_cu 7 | *-----------------------------------------------------------------------*/ 8 | 9 | #ifndef KHRONOS_SUPPORT_INT64 10 | -typedef unsigned long long khronos_uint64_t; 11 | -typedef signed long long khronos_int64_t; 12 | +typedef uint64_t khronos_uint64_t; 13 | +typedef int64_t khronos_int64_t; 14 | #endif 15 | 16 | // Due to build conflicts on various platforms, we can't use GL[u]int64 directly 17 | -------------------------------------------------------------------------------- /xorg/xorg-server/fix-musl-arm.patch: -------------------------------------------------------------------------------- 1 | --- ./hw/xfree86/common/compiler.h.orig 2 | +++ ./hw/xfree86/common/compiler.h 3 | @@ -721,7 +721,7 @@ 4 | :"r"(val), "r"(addr), "i"(ASI_PL)); 5 | } 6 | 7 | -#elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__)) 8 | +#elif defined(__mips__) || (defined(__arm32__) && !defined(__GLIBC__)) 9 | #if defined(__arm32__) || defined(__mips64) 10 | #define PORT_SIZE long 11 | #else 12 | @@ -996,7 +996,7 @@ 13 | return xf86ReadMmio32Le((void *) ioBase, port); 14 | } 15 | 16 | -#elif defined(__arm__) && defined(__linux__) 17 | +#elif defined(__arm__) && defined(__GLIBC__) 18 | 19 | /* for Linux on ARM, we use the LIBC inx/outx routines */ 20 | /* note that the appropriate setup via "ioperm" needs to be done */ 21 | -------------------------------------------------------------------------------- /base/bash/get_patches: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prog_name='bash' 4 | prog_ver='4.3' 5 | prog_ver_tr=`echo "$prog_ver" | tr -d .` 6 | 7 | rm -f patchlist.txt 8 | rm -f patchlist2.txt 9 | 10 | wget -r -nH --no-parent --cut-dirs=4 --reject="index.html*" http://ftp.gnu.org/gnu/bash/bash-$prog_ver-patches/ 11 | 12 | rm *.sig 13 | 14 | num=0 15 | for patch in $(ls -1 $prog_name$prog_ver_tr*) 16 | do 17 | num=$((num+1)) 18 | echo "Patch$num: $patch" >> patchlist.txt 19 | echo "%patch$num -p0 -b .$patch" >> patchlist2.txt 20 | done 21 | 22 | sed -i '/Source0:/ a\ ' $prog_name.spec 23 | sed -i '/Source0:/r patchlist.txt' $prog_name.spec 24 | 25 | sed -i '/%setup -q/ a\ ' $prog_name.spec 26 | sed -i '/%setup -q/r patchlist2.txt' $prog_name.spec 27 | 28 | rm -f patchlist.txt 29 | rm -f patchlist2.txt 30 | -------------------------------------------------------------------------------- /base/bzip2/bzip2-1.0.4-POSIX-shell.patch: -------------------------------------------------------------------------------- 1 | bzgrep uses !/bin/sh but then uses the bashism ${var//} so replace those 2 | with calls to sed so POSIX shells work 3 | 4 | http://bugs.gentoo.org/193365 5 | 6 | --- ./bzgrep 7 | +++ ./bzgrep 8 | @@ -63,10 +63,9 @@ 9 | bzip2 -cdfq "$i" | $grep $opt "$pat" 10 | r=$? 11 | else 12 | - j=${i//\\/\\\\} 13 | - j=${j//|/\\|} 14 | - j=${j//&/\\&} 15 | - j=`printf "%s" "$j" | tr '\n' ' '` 16 | + # the backslashes here are doubled up as we have to escape each one for the 17 | + # shell and then escape each one for the sed expression 18 | + j=`printf "%s" "${i}" | sed -e 's:\\\\:\\\\\\\\:g' -e 's:[|]:\\\\|:g' -e 's:[&]:\\\\&:g' | tr '\n' ' '` 19 | bzip2 -cdfq "$i" | $grep $opt "$pat" | sed "s|^|${j}:|" 20 | r=$? 21 | fi 22 | -------------------------------------------------------------------------------- /base/python-urlgrabber/BZ-1051554-speed-on-404-mirror.patch: -------------------------------------------------------------------------------- 1 | commit fbc995805e9d860366c67819effc3bc7d5d8a8b2 2 | Author: Zdenek Pavlas 3 | Date: Mon Jan 13 13:20:28 2014 +0100 4 | 5 | Don't set speed=0 on a new mirror that 404'd. BZ 1051554 6 | 7 | diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py 8 | index ef18d6a..04f1179 100644 9 | --- a/urlgrabber/grabber.py 10 | +++ b/urlgrabber/grabber.py 11 | @@ -2418,6 +2418,7 @@ class _TH: 12 | speed = (k1 * speed + k2 * dl_size / dl_time) / (k1 + k2) 13 | fail = 0 14 | elif getattr(ug_err, 'code', None) == 404: 15 | + if not ts: return # 1st update, avoid speed=0 16 | fail = 0 # alive, at least 17 | else: 18 | fail += 1 # seems dead 19 | -------------------------------------------------------------------------------- /xorg/makedepend/makedepend.spec: -------------------------------------------------------------------------------- 1 | Summary: an X.Org utility for making makefile dependencies 2 | Name: makedepend 3 | Version: 1.0.4 4 | Release: 1%{?dist} 5 | License: MIT 6 | Group: Development/System 7 | URL: http://www.x.org 8 | BuildArch: noarch 9 | Source0: ftp://ftp.x.org/pub/individual/util/%{name}-%{version}.tar.bz2 10 | Requires: autoconf automake libtool 11 | 12 | %description 13 | %{name} is an X.Org utility for making makefile dependencies. 14 | 15 | %prep 16 | %setup -q -n %{name}-%{version} 17 | 18 | %build 19 | %configure 20 | make %{?_smp_mflags} 21 | 22 | %install 23 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 24 | 25 | %files 26 | %defattr(-,root,root,-) 27 | #%doc COPYING ChangeLog 28 | %{_bindir}/* 29 | #%{_datadir}/man/man1/%{name} 30 | 31 | %changelog 32 | -------------------------------------------------------------------------------- /graphical/directfb/DirectFB-1.6.3-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | http://bugs.gentoo.org/200661 2 | 3 | --- DirectFB/directfb-config.in 4 | +++ DirectFB/directfb-config.in 5 | @@ -300,7 +300,7 @@ 6 | libs="$libs -ldirectfb -lfusion -ldirect @THREADLIB@" 7 | 8 | if test -n "$echo_static"; then 9 | - libs="$libs @DYNLIB@ @ZLIB_LIBS@" 10 | + libs="$libs @DYNLIB@ @ZLIB_LIBS@ @SYSFS_LIBS@" 11 | fi 12 | fi 13 | 14 | --- DirectFB/directfb.pc.in 15 | +++ DirectFB/directfb.pc.in 16 | @@ -9,5 +9,5 @@ 17 | Version: @VERSION@ 18 | Requires: @DEP_VOODOO@ fusion direct 19 | Libs: -L${libdir} -ldirectfb @THREADLIB@ @OSX_LIBS@ 20 | -Libs.private: -L${libdir} @LIBM@ @DYNLIB@ @ZLIB_LIBS@ 21 | +Libs.private: -L${libdir} @LIBM@ @DYNLIB@ @ZLIB_LIBS@ @SYSFS_LIBS@ 22 | Cflags: @THREADFLAGS@ -I@INCLUDEDIR@ 23 | -------------------------------------------------------------------------------- /base/gcc/090_all_pr55930-dependency-tracking.patch: -------------------------------------------------------------------------------- 1 | libatomic build failure if configured with --disable-dependency-tracking 2 | load_n.c:115:1: fatal error: opening dependency file .deps/load_1_.lo.Ppo: No such file or directory 3 | 4 | https://bugs.gentoo.org/463463 5 | http://gcc.gnu.org/PR55930 6 | 7 | --- a/libatomic/Makefile.in 8 | +++ b/libatomic/Makefile.in 9 | @@ -298,7 +298,8 @@ PAT_N = $(word 2,$(PAT_SPLIT)) 10 | PAT_S = $(word 3,$(PAT_SPLIT)) 11 | IFUNC_DEF = -DIFUNC_ALT=$(PAT_S) 12 | IFUNC_OPT = $(word $(PAT_S),$(IFUNC_OPTIONS)) 13 | -M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo 14 | +@AMDEP_TRUE@M_DEPS = -MT $@ -MD -MP -MF $(DEPDIR)/$(@F).Ppo 15 | +@AMDEP_FALSE@M_DEPS = 16 | M_SIZE = -DN=$(PAT_N) 17 | M_IFUNC = $(if $(PAT_S),$(IFUNC_DEF) $(IFUNC_OPT)) 18 | M_FILE = $(PAT_BASE)_n.c 19 | -------------------------------------------------------------------------------- /graphical/directfb/DirectFB-1.7.6-use-PTHREAD_MUTEX_RECURSIVE.patch: -------------------------------------------------------------------------------- 1 | diff -Naur DirectFB-1.7.6.orig/lib/direct/os/linux/glibc/mutex.h DirectFB-1.7.6/lib/direct/os/linux/glibc/mutex.h 2 | --- DirectFB-1.7.6.orig/lib/direct/os/linux/glibc/mutex.h 2013-12-18 19:16:24.000000000 -0500 3 | +++ DirectFB-1.7.6/lib/direct/os/linux/glibc/mutex.h 2015-07-18 16:57:47.178982835 -0400 4 | @@ -46,7 +46,7 @@ 5 | /**********************************************************************************************************************/ 6 | 7 | #define DIRECT_MUTEX_INITIALIZER(name) { PTHREAD_MUTEX_INITIALIZER } 8 | -#define DIRECT_RECURSIVE_MUTEX_INITIALIZER(name) { PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP } 9 | +#define DIRECT_RECURSIVE_MUTEX_INITIALIZER(name) { PTHREAD_MUTEX_RECURSIVE } 10 | 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /graphical/scim/scim.xinputd: -------------------------------------------------------------------------------- 1 | XIM=SCIM 2 | XIM_PROGRAM=/usr/bin/scim 3 | XIM_ARGS="" 4 | ICON="/usr/share/scim/icons/trademark.png" 5 | PREFERENCE_PROGRAM=/usr/bin/scim-setup 6 | SHORT_DESC="SCIM" 7 | 8 | gtkimm_exists () { 9 | # check if any immodules installed 10 | for dir in /usr/@@LIB@@/gtk-2.0/*/immodules; do 11 | [ -x ${dir}/im-$1.so ] && return 0 12 | done 13 | return 1 14 | } 15 | 16 | if gtkimm_exists scim-bridge; then 17 | GTK_IM_MODULE=scim-bridge 18 | elif gtkimm_exists scim; then 19 | GTK_IM_MODULE=scim 20 | else 21 | GTK_IM_MODULE=xim 22 | fi 23 | 24 | if [ -x /usr/@@LIB@@/qt4/plugins/inputmethods/im-scim-bridge.so ]; then 25 | QT_IM_MODULE=scim-bridge 26 | elif [ -x /usr/@@LIB@@/qt4/plugins/inputmethods/libqscim.so ]; then 27 | QT_IM_MODULE=scim 28 | else 29 | QT_IM_MODULE=xim 30 | fi 31 | -------------------------------------------------------------------------------- /base/lvm2/dmeventd.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | # Copyright 1999-2014 Gentoo Foundation 3 | # Distributed under the terms of the GNU General Public License v2 4 | # $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.3 2014/02/08 21:17:46 robbat2 Exp $ 5 | 6 | PIDFILE=/run/dmeventd.pid 7 | BIN=/sbin/dmeventd 8 | 9 | depend() { 10 | # As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that 11 | # means dmeventd is NOT notified, as it cannot be safely running 12 | after lvm device-mapper 13 | } 14 | 15 | start() { 16 | ebegin "Starting dmeventd" 17 | start-stop-daemon --start --exec $BIN --pidfile $PIDFILE 18 | eend $? 19 | } 20 | 21 | stop() { 22 | ebegin "Stopping dmeventd" 23 | start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE 24 | eend $? 25 | } 26 | 27 | -------------------------------------------------------------------------------- /base/dev86/dev86-long.patch: -------------------------------------------------------------------------------- 1 | diff -up dev86-0.16.19/ld/x86_aout.h.long dev86-0.16.19/ld/x86_aout.h 2 | --- dev86-0.16.19/ld/x86_aout.h.long 2012-07-30 10:17:06.000000000 +0200 3 | +++ dev86-0.16.19/ld/x86_aout.h 2012-11-15 15:19:12.215396644 +0100 4 | @@ -11,17 +11,11 @@ 5 | /* If the host isn't an x86 all bets are off, use chars. */ 6 | #if defined(i386) || defined(__BCC__) || defined(MSDOS) 7 | typedef long Long; 8 | -#define __OUT_OK 1 9 | #else 10 | -/* Beware: this will probably allow some BE hosts to generate broken files. */ 11 | -#ifdef INT32_MAX 12 | #include 13 | typedef int32_t Long; 14 | -#define __OUT_OK 1 15 | -#else 16 | -typedef char Long[4]; 17 | -#endif 18 | #endif 19 | +#define __OUT_OK 1 20 | 21 | struct exec { /* a.out header */ 22 | unsigned char a_magic[2]; /* magic number */ 23 | -------------------------------------------------------------------------------- /base/fakeroot/fakeroot-hide-dlsym-errors.patch: -------------------------------------------------------------------------------- 1 | it's normal that the acl_* symbols are not found if the application 2 | is not linked against -lacl. these errors harmless, but mighty 3 | annoying. 4 | 5 | --- fakeroot-1.20/libfakeroot.c.orig 2014-03-07 11:20:26.120532847 +0200 6 | +++ fakeroot-1.20/libfakeroot.c 2014-03-07 11:21:26.486872482 +0200 7 | @@ -258,10 +258,12 @@ 8 | /* clear dlerror() just in case dlsym() legitimately returns NULL */ 9 | msg = dlerror(); 10 | *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name); 11 | - if ( (msg = dlerror()) != NULL){ 12 | +#ifdef LIBFAKEROOT_DEBUGGING 13 | + if ( fakeroot_debug && (msg = dlerror()) != NULL) { 14 | fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg); 15 | /* abort ();*/ 16 | } 17 | +#endif 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /base/gpgme/gpgme-1.3.2-largefile.patch: -------------------------------------------------------------------------------- 1 | diff -up gpgme-1.3.2/src/gpgme-config.in.largefile gpgme-1.3.2/src/gpgme-config.in 2 | --- gpgme-1.3.2/src/gpgme-config.in.largefile 2012-09-26 10:10:37.882744198 +0200 3 | +++ gpgme-1.3.2/src/gpgme-config.in 2012-09-26 10:16:02.558762827 +0200 4 | @@ -41,6 +41,10 @@ cflags_pthread="" 5 | cflags_glib="@GLIB_CFLAGS@" 6 | with_glib= 7 | 8 | +if test "0@NEED__FILE_OFFSET_BITS@" -gt "0" ; then 9 | + cflags_lfs="-D_FILE_OFFSET_BITS=@NEED__FILE_OFFSET_BITS@" 10 | +fi 11 | + 12 | output="" 13 | 14 | usage() 15 | @@ -105,6 +109,9 @@ while test $# -gt 0; do 16 | exit 0 17 | ;; 18 | --cflags) 19 | + if test "x$cflags_lfs" != "x"; then 20 | + output="$output $cflags_lfs" 21 | + fi 22 | result= 23 | tmp_c= 24 | tmp_g= 25 | -------------------------------------------------------------------------------- /base/python2/lib64-fix-for-test_install.patch: -------------------------------------------------------------------------------- 1 | --- Python-2.7.2/Lib/distutils/tests/test_install.py.lib64 2011-09-08 17:51:57.851405376 -0400 2 | +++ Python-2.7.2/Lib/distutils/tests/test_install.py 2011-09-08 18:40:46.754205096 -0400 3 | @@ -41,8 +41,9 @@ class InstallTestCase(support.TempdirMan 4 | self.assertEqual(got, expected) 5 | 6 | libdir = os.path.join(destination, "lib", "python") 7 | + platlibdir = os.path.join(destination, "lib64", "python") 8 | check_path(cmd.install_lib, libdir) 9 | - check_path(cmd.install_platlib, libdir) 10 | + check_path(cmd.install_platlib, platlibdir) 11 | check_path(cmd.install_purelib, libdir) 12 | check_path(cmd.install_headers, 13 | os.path.join(destination, "include", "python", "foopkg")) 14 | -------------------------------------------------------------------------------- /base/guile/fix-defines.patch: -------------------------------------------------------------------------------- 1 | --- guile-1.8.8.orig/libguile/fports.c 2 | +++ guile-1.8.8/libguile/fports.c 3 | @@ -78,8 +78,8 @@ 4 | #define OFF_T_MAX LONG_MAX 5 | #define OFF_T_MIN LONG_MIN 6 | #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG 7 | -#define OFF_T_MAX LONG_LONG_MAX 8 | -#define OFF_T_MIN LONG_LONG_MIN 9 | +#define OFF_T_MAX LLONG_MAX 10 | +#define OFF_T_MIN LLONG_MIN 11 | #else 12 | #error Oops, unknown OFF_T size 13 | #endif 14 | --- guile-1.8.8.orig/libguile/gc_os_dep.c 15 | +++ guile-1.8.8/libguile/gc_os_dep.c 16 | @@ -1459,7 +1459,7 @@ 17 | # undef __KERNEL__ 18 | # endif 19 | 20 | -# else 21 | +# elif defined(__GLIBC__) 22 | 23 | /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */ 24 | /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */ 25 | -------------------------------------------------------------------------------- /graphical/sdl/SDL-config.patch: -------------------------------------------------------------------------------- 1 | --- SDL-1.2.15/sdl-config.in.orig 2012-01-19 07:30:06.000000000 +0100 2 | +++ SDL-1.2.15/sdl-config.in 2012-06-16 13:05:43.265925020 +0200 3 | @@ -45,11 +45,11 @@ 4 | echo -I@includedir@/SDL @SDL_CFLAGS@ 5 | ;; 6 | @ENABLE_SHARED_TRUE@ --libs) 7 | -@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@ 8 | +@ENABLE_SHARED_TRUE@ echo @SDL_RLD_FLAGS@ @SDL_LIBS@ 9 | @ENABLE_SHARED_TRUE@ ;; 10 | @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs) 11 | @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs) 12 | -@ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ 13 | +@ENABLE_STATIC_TRUE@ echo @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ 14 | @ENABLE_STATIC_TRUE@ ;; 15 | *) 16 | echo "${usage}" 1>&2 17 | -------------------------------------------------------------------------------- /graphical/sdl2/sdl2-config.patch: -------------------------------------------------------------------------------- 1 | --- SDL2-2.0.0/sdl2-config.in.orig 2012-01-19 07:30:06.000000000 +0100 2 | +++ SDL2-2.0.0/sdl2-config.in 2012-06-16 13:05:43.265925020 +0200 3 | @@ -45,11 +45,11 @@ 4 | echo -I@includedir@/SDL @SDL_CFLAGS@ 5 | ;; 6 | @ENABLE_SHARED_TRUE@ --libs) 7 | -@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@ 8 | +@ENABLE_SHARED_TRUE@ echo @SDL_RLD_FLAGS@ @SDL_LIBS@ 9 | @ENABLE_SHARED_TRUE@ ;; 10 | @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs) 11 | @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs) 12 | -@ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ 13 | +@ENABLE_STATIC_TRUE@ echo @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ 14 | @ENABLE_STATIC_TRUE@ ;; 15 | *) 16 | echo "${usage}" 1>&2 17 | -------------------------------------------------------------------------------- /base/lddtree/README.md: -------------------------------------------------------------------------------- 1 | lddtree 2 | ======= 3 | 4 | Fork of pax-utils' lddtree.sh 5 | 6 | This is a shell version of pax-utils' lddtree. This tool is useful for 7 | resolving elf dependencies when creating initramfs images. 8 | 9 | Differences from pax-utils' bash version: 10 | * don't use /bin/bash 11 | * resolv symlinks 12 | 13 | lddtree.sh depends on scanelf from pax-utils. 14 | 15 | ``` 16 | Usage: lddtree.sh [options] ELFFILE... 17 | 18 | Options: 19 | 20 | -a Show all duplicated dependencies 21 | -x Run with debugging 22 | -R Use this ROOT filesystem tree 23 | --no-auto-root Do not automatically prefix input ELFs with ROOT 24 | -l Display output in a flat format 25 | -h Show this help output 26 | -V Show version information 27 | ``` 28 | -------------------------------------------------------------------------------- /xorg/fontpostinst/fontpostinst.spec: -------------------------------------------------------------------------------- 1 | Summary: Font post (un)installation script 2 | Name: fontpostinst 3 | Version: 0.1 4 | Release: 1 5 | License: Free 6 | Group: Applications/System 7 | Source0: %{name} 8 | Requires: coreutils 9 | BuildArch: noarch 10 | 11 | %description 12 | Script to be called after each fonts installation or uninstallation. 13 | It supports regeneration of XFree86 fonts.alias, fonts.scale, 14 | fonts.dir files, gnome-font catalogs, ghostscript Fontmaps, 15 | fontconfig/xft cache and t1lib FontDatabase. 16 | 17 | %prep 18 | 19 | %install 20 | rm -rf $RPM_BUILD_ROOT 21 | install -d $RPM_BUILD_ROOT%{_bindir} 22 | 23 | install %{SOURCE0} $RPM_BUILD_ROOT%{_bindir} 24 | 25 | %clean 26 | rm -rf $RPM_BUILD_ROOT 27 | 28 | %files 29 | %defattr(644,root,root,755) 30 | %attr(755,root,root) %{_bindir}/* 31 | 32 | %changelog 33 | -------------------------------------------------------------------------------- /base/directfb-flux/directfb-flux.spec: -------------------------------------------------------------------------------- 1 | Summary: Interface description language used by DirectFB 2 | Name: directfb-flux 3 | Version: 1.4.4 4 | Release: 1%{?dist} 5 | License: MIT 6 | Group: Development/Tools 7 | Source0: http://www.directfb.org/downloads/Core/flux/flux-%{version}.tar.gz 8 | URL: http://www.directfb.org/ 9 | 10 | BuildRequires: libstdc++-devel 11 | BuildRequires: pkgconfig 12 | 13 | %description 14 | flux is an interface description language used by DirectFB. 15 | fluxcomp compiles .flux files to .cpp or .c files. 16 | 17 | %prep 18 | %setup -q -n flux-%{version} 19 | 20 | %build 21 | %configure 22 | make 23 | 24 | %install 25 | make install DESTDIR=$RPM_BUILD_ROOT 26 | 27 | %files 28 | %defattr(644,root,root,755) 29 | %doc AUTHORS ChangeLog README TODO 30 | %attr(755,root,root) %{_bindir}/fluxcomp 31 | 32 | %changelog 33 | -------------------------------------------------------------------------------- /base/libc-dev/libc-devel.spec: -------------------------------------------------------------------------------- 1 | Name: libc-devel 2 | Version: 0.7 3 | Release: 1%{?dist} 4 | Summary: Meta package to pull in correct libc and missing headers 5 | 6 | Group: Development/C 7 | License: GPL 8 | URL: http://unity-linux.org 9 | Source0: sys-cdefs.h 10 | Source1: sys-queue.h 11 | Source2: sys-tree.h 12 | 13 | BuildRequires: musl-devel 14 | Requires: musl-devel 15 | 16 | %description 17 | This is a meta package that pulls in the correct libc and some missing headers in Musl 18 | 19 | %prep 20 | #nothing here 21 | 22 | %build 23 | # Nothing here 24 | 25 | %install 26 | install -D %{SOURCE0} %{buildroot}/usr/include/sys/cdefs.h 27 | install -D %{SOURCE1} %{buildroot}/usr/include/sys/queue.h 28 | install -D %{SOURCE2} %{buildroot}/usr/include/sys/tree.h 29 | 30 | %files 31 | %{_includedir}/sys/*.h 32 | 33 | %changelog 34 | 35 | -------------------------------------------------------------------------------- /xorg/xinit/06_move_serverauthfile_into_tmp.patch: -------------------------------------------------------------------------------- 1 | Move startx auth files in /tmp so they are removed on reboot. 2 | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736 3 | The trap patch didn't seem to work on reboot. 4 | --- 5 | startx.cpp | 2 +- 6 | 1 file changed, 1 insertion(+), 1 deletion(-) 7 | 8 | Index: xinit/startx.cpp 9 | =================================================================== 10 | --- xinit.orig/startx.cpp 11 | +++ xinit/startx.cpp 12 | @@ -273,7 +273,7 @@ 13 | dummy=0 14 | 15 | XCOMM create a file with auth information for the server. ':0' is a dummy. 16 | - xserverauthfile=$HOME/.serverauth.$$ 17 | + xserverauthfile=`mktemp -p /tmp serverauth.XXXXXXXXXX` 18 | trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM 19 | xauth -q -f "$xserverauthfile" << EOF 20 | add :$dummy . $mcookie 21 | -------------------------------------------------------------------------------- /base/gcc/012_all_default-warn-trampolines.patch: -------------------------------------------------------------------------------- 1 | Enable -Wtrampolines by default. 2 | 3 | 4 | --- a/gcc/common.opt 5 | +++ b/gcc/common.opt 6 | @@ -648,7 +648,7 @@ Common Var(warn_system_headers) Warning 7 | Do not suppress warnings from system headers 8 | 9 | Wtrampolines 10 | -Common Var(warn_trampolines) Warning 11 | +Common Var(warn_trampolines) Init(1) Warning 12 | Warn whenever a trampoline is generated 13 | 14 | Wtype-limits 15 | --- a/gcc/doc/gcc.info 16 | +++ b/gcc/doc/gcc.info 17 | @@ -4021,6 +4021,8 @@ compiler warns that an unrecognized option is present. 18 | and thus requires the stack to be made executable in order for the 19 | program to work properly. 20 | 21 | + This warning is enabled by default in Gentoo. 22 | + 23 | '-Wfloat-equal' 24 | Warn if floating-point values are used in equality comparisons. 25 | 26 | -------------------------------------------------------------------------------- /base/texinfo/info-dir: -------------------------------------------------------------------------------- 1 | $Id: dir,v 1.2 1996/09/24 18:43:01 karl Exp $ 2 | This is the file .../info/dir, which contains the topmost node of the 3 | Info hierarchy. The first time you invoke Info you start off 4 | looking at that node, which is (dir)Top. 5 |  6 | File: dir Node: Top This is the top of the INFO tree 7 | 8 | This (the Directory node) gives a menu of major topics. 9 | Typing "q" exits, "?" lists all Info commands, "d" returns here, 10 | "h" gives a primer for first-timers, 11 | "mEmacs" visits the Emacs topic, etc. 12 | 13 | In Emacs, you can click mouse button 2 on a menu item or cross reference 14 | to select it. 15 | 16 | * Menu: 17 | 18 | Texinfo documentation system 19 | * Info: (info). Documentation browsing system. 20 | 21 | Miscellaneous 22 | * bash: (bash). The Bourne Again Shell. 23 | -------------------------------------------------------------------------------- /base/libpthread-stubs/libpthread-stubs.spec: -------------------------------------------------------------------------------- 1 | Name: libpthread-stubs 2 | Version: 0.3 3 | Release: 1%{?dist} 4 | Summary: Pthread functions stubs for platforms missing them 5 | 6 | Group: Development/Libraries 7 | License: MIT 8 | URL: http://cgit.freedesktop.org/xcb/pthread-stubs 9 | Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 10 | 11 | %description 12 | The libpthread-stubs package provides weak aliases for pthread functions not provided in libc or otherwise available by default. This is useful for libraries that rely on pthread stubs to use pthreads optionally. 13 | 14 | %prep 15 | %setup -q 16 | 17 | 18 | %build 19 | %configure 20 | make CFLAGS="$CFLAGS -DHAVE_PTHREAD_EXIT=1" 21 | 22 | %install 23 | make -j1 DESTDIR=%{buildroot} install 24 | 25 | 26 | %files 27 | %{_libdir}/pkgconfig/pthread-stubs.pc 28 | 29 | %changelog 30 | 31 | -------------------------------------------------------------------------------- /base/openrc/openrc.post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rc_update() { 4 | local svc="$1" 5 | local level="$2" 6 | mkdir -p /etc/runlevels/$level 7 | ln -sf /etc/init.d/$svc /etc/runlevels/$level 8 | } 9 | 10 | if [ ! -d etc/rcS.d ] && [ ! -d etc/rcL.d ]; then 11 | exit 0 12 | fi 13 | 14 | for i in etc/rc[SL].d/*; do 15 | [ -L "$i" ] || continue 16 | oldsvc=${i##*/S[0-9][0-9]} 17 | # some services are renamed 18 | case "$oldsvc" in 19 | modutils) svc=modules;; 20 | procps) svc=sysctl;; 21 | bootmisc.sh) svc=bootmisc;; 22 | keymap) svc=keymaps;; 23 | rc.local) svc=local;; 24 | *) svc=$oldsvc;; 25 | esac 26 | 27 | # add the service to correct "runlevel" 28 | case "$svc" in 29 | hwclock|modules|sysctl|hostname|keymaps|syslog|bootmisc) 30 | rc_update $svc boot;; 31 | *) rc_update $svc default;; 32 | esac 33 | 34 | rm $i 35 | done 36 | 37 | -------------------------------------------------------------------------------- /xorg/README.md: -------------------------------------------------------------------------------- 1 | -- Current todo for Xorg -- 2 | 3 | - libs 4 | libFS 5 | libXScrnSaver 6 | libXcomposite 7 | libXft 8 | libXrandr 9 | 10 | - utils 11 | xcb-util-renderutil 12 | elfutils 13 | libvdpau 14 | xbitmaps 15 | 16 | - apps 17 | bdftopcf 18 | iceauth 19 | luit 20 | mkfontdir 21 | sessreg 22 | setxkbmap 23 | smproxy 24 | x11perf 25 | xbacklight 26 | xcmsdb 27 | xcursorgen 28 | xdpyinfo 29 | xdriinfo 30 | xev 31 | xgamma 32 | xhost 33 | xinput 34 | xkbevd 35 | xkbutils 36 | xkill 37 | xlsatoms 38 | xlsclients 39 | xmessage 40 | xpr 41 | xprop 42 | xrandr 43 | xrefresh 44 | xset 45 | xsetroot 46 | xvinfo 47 | xwd 48 | xwininfo 49 | xwud 50 | 51 | - programs 52 | xcursor-themes 53 | Xorg Fonts (various packages) 54 | Xorg-Server 55 | Xorg Drivers (various Packages) 56 | -------------------------------------------------------------------------------- /base/openrc/0001-Force-root-be-rw-before-localmount.patch: -------------------------------------------------------------------------------- 1 | From c92e702f6dddab58a749f5fea5479ff2affeb498 Mon Sep 17 00:00:00 2001 2 | From: Natanael Copa 3 | Date: Tue, 21 Dec 2010 10:29:37 +0000 4 | Subject: [PATCH] Force root be rw before localmount 5 | 6 | The service that pulls in root remount is mtab which we dont need/use. 7 | --- 8 | init.d/localmount.in | 2 +- 9 | 1 files changed, 1 insertions(+), 1 deletions(-) 10 | 11 | diff --git a/init.d/localmount.in b/init.d/localmount.in 12 | index a4d1116..2895894 100644 13 | --- a/init.d/localmount.in 14 | +++ b/init.d/localmount.in 15 | @@ -6,7 +6,7 @@ description="Mounts disks and swap according to /etc/fstab." 16 | 17 | depend() 18 | { 19 | - need fsck 20 | + need fsck root 21 | use lvm modules mtab 22 | keyword -jail -openvz -prefix -vserver -lxc 23 | } 24 | -- 25 | 1.7.3.4 26 | 27 | -------------------------------------------------------------------------------- /base/openrc/consolefont.confd: -------------------------------------------------------------------------------- 1 | # The consolefont service is not activated by default. If you need to 2 | # use it, you should run "rc-update add consolefont boot" as root. 3 | # 4 | # consolefont specifies the default font that you'd like Linux to use on the 5 | # console. You can find a good selection of fonts in /usr/share/consolefonts; 6 | #consolefont="default8x16.psf.gz" 7 | 8 | # consoletranslation is the charset map file to use. Leave commented to use 9 | # the default one. Have a look in /usr/share/consoletrans for a selection of 10 | # map files you can use. 11 | #consoletranslation="8859-1_to_uni.trans" 12 | 13 | # unicodemap is the unicode map file to use. Leave commented to use the 14 | # default one. Have a look in /usr/share/unimaps for a selection of map files 15 | # you can use. This will only work if you have kbd installed. 16 | #unicodemap="iso01.uni" 17 | -------------------------------------------------------------------------------- /base/openrc/hwdrivers.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | depend() { 4 | need sysfs dev 5 | before checkfs fsck 6 | after modloop 7 | keyword -vserver -lxc 8 | } 9 | 10 | # Load hardware drivers 11 | start() { 12 | # check for boot option "nocoldplug" 13 | if get_bootparam noautodetect; then 14 | ewarn "Autodetection of hardware disabled from boot cmdline" 15 | return 0 16 | fi 17 | 18 | ebegin "Loading hardware drivers" 19 | find /sys -name modalias -type f -print0 | xargs -0 sort -u \ 20 | | xargs modprobe -b -a 2> /dev/null 21 | # we run it twice so we detect all devices 22 | find /sys -name modalias -type f -print0 | xargs -0 sort -u \ 23 | | xargs modprobe -b -a 2> /dev/null 24 | 25 | # check if framebuffer drivers got pulled in 26 | if [ -e /sys/module/fb ] && ! [ -e /sys/module/fbcon ]; then 27 | modprobe fbcon 28 | fi 29 | 30 | eend 0 31 | } 32 | 33 | -------------------------------------------------------------------------------- /base/openrc/openrc.post-upgrade: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # in 0.8.0-r1 the state dir moved from /libexec/rc/init.d to /lib/rc/init.d 4 | # and with 0.10 it moved to /run/openrc 5 | 6 | mkdir -p /run/openrc 7 | for dir in /libexec /lib; do 8 | [ -d $dir/rc/init.d ] || continue 9 | 10 | for i in $dir/rc/init.d/* ; do 11 | [ -e "$i" ] || continue 12 | if [ -e /run/openrc/${i##*/} ]; then 13 | rm -r $i 14 | else 15 | mv $i /run/openrc/ 16 | fi 17 | done 18 | 19 | rmdir $dir/rc/init.d $dir/rc /libexec 2>/dev/null 20 | done 21 | 22 | # create rc.local compat 23 | if [ -f /etc/rc.local ]; then 24 | cat >/etc/local.d/rc.local-compat.start<<__EOF__ 25 | #!/bin/sh 26 | 27 | # this is only here for compatibility reasons 28 | if [ -f /etc/rc.local ]; then 29 | . /etc/rc.local 30 | fi 31 | __EOF__ 32 | chmod +x /etc/local.d/rc.local-compat.start 33 | fi 34 | 35 | exit 0 36 | -------------------------------------------------------------------------------- /base/xterm/xterm.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | MimeType= 3 | Comment=Terminal emulator for X11 4 | Comment[br]=Termenell X 5 | Comment[ca]=Terminal X 6 | Comment[cs]=Terminál pro X Window 7 | Comment[de]=X-Terminal 8 | Comment[es]=Emulador de terminal para X 9 | Comment[fi]=X-Terminaali 10 | Comment[fr]=Emulateur de terminal xterm 11 | Comment[hu]=X terminál 12 | Comment[is]=xterm: X skjáhermir 13 | Comment[it]=Terminale per X Window 14 | Comment[nb]=X-terminal 15 | Comment[pl]=Emulator terminala dla X11 16 | Comment[pt]=Terminal X 17 | Comment[pt_BR]=Terminal X 18 | Comment[ro]=Terminal pentru X Window 19 | Comment[ru]=Терминал для X Window 20 | Comment[sk]=Terminál pre X Window 21 | Comment[sl]=Terminalski emulator za X11 22 | Name=XTerm 23 | Exec=xterm -ls -ut 24 | Icon=xterm 25 | Type=Application 26 | Terminal=false 27 | Categories=TerminalEmulator; 28 | # vi: encoding=utf-8 29 | -------------------------------------------------------------------------------- /base/lvm2/lvm.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | depend() { 4 | before checkfs fsck swap 5 | after hwdrivers modules device-mapper 6 | } 7 | 8 | dm_in_proc() { 9 | local rc=0 i= 10 | for i in devices misc; do 11 | grep -qs 'device-mapper' /proc/$i 12 | rc=$(($rc + $?)) 13 | done 14 | return $rc 15 | } 16 | 17 | start() { 18 | local rc=0 msg= 19 | ebegin "Setting up the Logical Volume Manager" 20 | if [ -e /proc/modules ] && ! dm_in_proc; then 21 | modprobe dm-mod 2>/dev/null 22 | fi 23 | if [ -d /proc/lvm ] || dm_in_proc; then 24 | vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1 25 | vgchange --sysinit --activate y >/dev/null 2>&1 26 | rc=$? 27 | else 28 | rc=1 29 | fi 30 | eend $rc 31 | } 32 | 33 | stop() { 34 | ebegin "Shutting down the Logical Volume Manager" 35 | vgchange --ignorelockingfailure -a n >/dev/null 2>&1 36 | eend $? 37 | } 38 | 39 | -------------------------------------------------------------------------------- /base/gcc/102_all_gcc48_config.in.patch: -------------------------------------------------------------------------------- 1 | 2013-02-13 Magnus Granberg 2 | 3 | * gcc/config.in Add ENABLE_CRTBEGINP, ENABLE_ESP 4 | 5 | --- ./gcc/config.in 2009-04-21 11:08:08.000000000 +0200 6 | +++ ./gcc/config.in 2009-05-12 00:10:08.000000000 +0200 7 | @@ -46,6 +46,12 @@ 8 | #endif 9 | 10 | 11 | +/* Define to 1 to enable crtbeginP.o. */ 12 | +#ifndef USED_FOR_TARGET 13 | +#undef ENABLE_CRTBEGINP 14 | +#endif 15 | + 16 | + 17 | /* Define to 1 to specify that we are using the BID decimal floating point 18 | format instead of DPD */ 19 | #ifndef USED_FOR_TARGET 20 | @@ -65,6 +65,12 @@ 21 | #endif 22 | 23 | 24 | +/* Define to 1 to enable esp. */ 25 | +#ifndef USED_FOR_TARGET 26 | +#undef ENABLE_ESP 27 | +#endif 28 | + 29 | + 30 | /* Define to 1 to enable fixed-point arithmetic extension to C. */ 31 | #ifndef USED_FOR_TARGET 32 | #undef ENABLE_FIXED_POINT 33 | -------------------------------------------------------------------------------- /graphical/icu/CVE-2015-1270.patch: -------------------------------------------------------------------------------- 1 | Index: /icu/trunk/source/common/ucnv_io.cpp 2 | =================================================================== 3 | --- source/common/ucnv_io.cpp (revision 37485) 4 | +++ source/common/ucnv_io.cpp (revision 37486) 5 | @@ -2,5 +2,5 @@ 6 | ****************************************************************************** 7 | * 8 | -* Copyright (C) 1999-2013, International Business Machines 9 | +* Copyright (C) 1999-2015, International Business Machines 10 | * Corporation and others. All Rights Reserved. 11 | * 12 | @@ -745,5 +745,5 @@ 13 | * again. This behaviour is similar to how ICU4J does it. 14 | */ 15 | - if (aliasTmp[0] == 'x' || aliasTmp[1] == '-') { 16 | + if (aliasTmp[0] == 'x' && aliasTmp[1] == '-') { 17 | aliasTmp = aliasTmp+2; 18 | } else { 19 | -------------------------------------------------------------------------------- /seed/rootme: -------------------------------------------------------------------------------- 1 | if [ "$(id -u)" != "0" ]; then 2 | echo 'This script must be run as root, use sudo or su -c "./rootme"' 1>&2 3 | exit 1 4 | fi 5 | 6 | if [ ! "$(ls -A ./proc)" ]; then 7 | mkdir -pv {dev,proc,sys} 8 | mount -v --bind /dev dev 9 | mount -vt proc proc proc 10 | mount -vt sysfs sysfs sys 11 | fi 12 | 13 | if [ -h dev/shm ]; then 14 | mkdir -pv $(readlink dev/shm) 15 | fi 16 | 17 | if [ ! -f "./usr/bin/busybox" ]; then 18 | cd usr/bin 19 | ln -s ../../bin/* . 20 | cd ../../ 21 | fi 22 | 23 | if [ ! "$(ls -A ./root/packages)" ]; then 24 | mount --bind ../unity-linux/ root/packages 25 | fi 26 | 27 | if [ ! "$(ls -A ./root/rpms)" ]; then 28 | mount --bind ../rpms root/rpms/ 29 | fi 30 | 31 | if [ ! "$(ls -A ./root/building)" ]; then 32 | mount --bind ../building root/building/ 33 | fi 34 | 35 | chroot . /usr/bin/bash -c "su -" 36 | -------------------------------------------------------------------------------- /base/gcc/053_all_libitm-no-fortify-source.patch: -------------------------------------------------------------------------------- 1 | https://bugs.gentoo.org/508852 2 | https://gcc.gnu.org/PR61164 3 | 4 | 2014-04-27 Magnus Granberg 5 | 6 | #508852 7 | * libitm/configure.tgt: Disable FORTIFY 8 | 9 | --- a/libitm/configure.tgt 10 | +++ b/libitm/configure.tgt 11 | @@ -43,6 +43,16 @@ if test "$gcc_cv_have_tls" = yes ; then 12 | esac 13 | fi 14 | 15 | +# FIXME: error: inlining failed in call to always_inline 16 | +# ‘int vfprintf(FILE*, const char*, __va_list_tag*)’ 17 | +# : function body can be overwritten at link time 18 | +# Disable Fortify in libitm for now. #508852 19 | +case "${target}" in 20 | + *-*-linux*) 21 | + XCFLAGS="${XCFLAGS} -U_FORTIFY_SOURCE" 22 | + ;; 23 | +esac 24 | + 25 | # Map the target cpu to an ARCH sub-directory. At the same time, 26 | # work out any special compilation flags as necessary. 27 | case "${target_cpu}" in 28 | -------------------------------------------------------------------------------- /base/chrpath/chrpath.spec: -------------------------------------------------------------------------------- 1 | Summary: Modify rpath of compiled programs 2 | Name: chrpath 3 | Version: 0.16 4 | Release: 1%{?dist} 5 | License: GPL+ 6 | Group: Development/Tools 7 | URL: https://chrpath.alioth.debian.org/ 8 | Source0: https://alioth.debian.org/frs/download.php/file/3979/%{name}-%{version}.tar.gz 9 | 10 | 11 | %description 12 | chrpath allows you to modify the dynamic library load path (rpath) of 13 | compiled programs. Currently, only removing and modifying the rpath 14 | is supported. 15 | 16 | %prep 17 | %setup -q 18 | 19 | 20 | %build 21 | %configure 22 | make %{?_smp_mflags} 23 | 24 | 25 | %install 26 | make install DESTDIR=%{buildroot} INSTALL="install -p" 27 | rm -fr %{buildroot}/usr/doc 28 | 29 | 30 | %files 31 | #%doc AUTHORS README NEWS ChangeLog* 32 | #%license COPYING 33 | %{_bindir}/chrpath 34 | #%{_mandir}/man1/chrpath.1* 35 | 36 | 37 | 38 | %changelog 39 | -------------------------------------------------------------------------------- /base/openrc/consolefont.initd: -------------------------------------------------------------------------------- 1 | #!/sbin/openrc-run 2 | 3 | description="Applies a font for the consoles." 4 | 5 | depend() { 6 | need localmount 7 | keyword -openvz -prefix -uml -vserver -xenu -lxc 8 | } 9 | 10 | start() { 11 | ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}} 12 | if [ -z "$consolefont" ] || [ "$ttyn" -le 0 ]; then 13 | return 14 | fi 15 | 16 | local params= 17 | [ -n "$consoletranslation" ] && params="-m $consoletranslation" 18 | 19 | # The -m flag is only supported by kbds setfont implementation 20 | [ -n "$unicodemap" ] && params="$params -u $unicodemap" 21 | 22 | local ttydev=/dev/tty 23 | [ -d /dev/vc ] && ttydev=/dev/vc/ 24 | 25 | ebegin "Setting console font" 26 | local i=1 ret=0 27 | while [ $i -le $ttyn ]; do 28 | setfont "$consolefont" $params -C $ttydev$i || ret=1 29 | i=$(( i + 1 )) 30 | done 31 | eend $ret 32 | } 33 | 34 | stop() { 35 | return 36 | } 37 | -------------------------------------------------------------------------------- /base/hawkey/hawkey-0.6.0-musl-add-ipc_h.patch: -------------------------------------------------------------------------------- 1 | diff -Naur hawkey-hawkey-0.6.0-1/src/python/query-py.c hawkey-hawkey-0.6.0-1_musl/src/python/query-py.c 2 | --- hawkey-hawkey-0.6.0-1/src/python/query-py.c 2015-08-07 17:25:16.000000000 +0000 3 | +++ hawkey-hawkey-0.6.0-1_musl/src/python/query-py.c 2015-08-26 19:15:41.707507453 +0000 4 | @@ -19,6 +19,7 @@ 5 | */ 6 | 7 | #include 8 | +#include 9 | 10 | // libsolv 11 | #include 12 | diff -Naur hawkey-hawkey-0.6.0-1/src/python/selector-py.c hawkey-hawkey-0.6.0-1_musl/src/python/selector-py.c 13 | --- hawkey-hawkey-0.6.0-1/src/python/selector-py.c 2015-08-07 17:25:16.000000000 +0000 14 | +++ hawkey-hawkey-0.6.0-1_musl/src/python/selector-py.c 2015-08-26 19:15:25.395240718 +0000 15 | @@ -19,6 +19,7 @@ 16 | */ 17 | 18 | #include 19 | +#include 20 | 21 | // hawkey 22 | #include "src/packagelist.h" 23 | -------------------------------------------------------------------------------- /base/libevent/libevent-2.0.10-stable-configure.patch: -------------------------------------------------------------------------------- 1 | diff -up libevent-2.0.12-stable/configure.in.orig libevent-2.0.12-stable/configure.in 2 | --- libevent-2.0.12-stable/configure.in.orig 2011-06-03 15:43:34.000000000 -0400 3 | +++ libevent-2.0.12-stable/configure.in 2011-08-02 10:23:25.713704595 -0400 4 | @@ -341,8 +341,6 @@ AC_CHECK_FUNC(gethostbyname_r, [ 5 | 6 | fi 7 | 8 | -AC_CHECK_SIZEOF(long) 9 | - 10 | AC_MSG_CHECKING(for F_SETFD in fcntl.h) 11 | AC_EGREP_CPP(yes, 12 | [ 13 | @@ -519,12 +517,7 @@ AC_CHECK_TYPES([fd_mask], , , 14 | #include 15 | #endif]) 16 | 17 | -AC_CHECK_SIZEOF(long long) 18 | -AC_CHECK_SIZEOF(long) 19 | -AC_CHECK_SIZEOF(int) 20 | -AC_CHECK_SIZEOF(short) 21 | AC_CHECK_SIZEOF(size_t) 22 | -AC_CHECK_SIZEOF(void *) 23 | 24 | AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t, struct addrinfo, struct sockaddr_storage], , , 25 | [#define _GNU_SOURCE 26 | -------------------------------------------------------------------------------- /base/python-iniparse/fix-issue-28.patch: -------------------------------------------------------------------------------- 1 | From b3d6ea5ed88b0e6cf9fdb411a14e725665ded92e Mon Sep 17 00:00:00 2001 2 | From: Tim Lauridsen 3 | Date: Fri, 7 Mar 2014 19:06:40 +0100 4 | Subject: [PATCH] Fix handling of REM xxxxxxxx as a comment, but REMXXXX is not 5 | (upstream issue #28) 6 | 7 | --- 8 | tests/test_ini.py | 3 +-- 9 | 1 file changed, 1 insertion(+), 2 deletions(-) 10 | 11 | diff --git a/tests/test_ini.py b/tests/test_ini.py 12 | index 07d4f4e..6d974f0 100644 13 | --- a/tests/test_ini.py 14 | +++ b/tests/test_ini.py 15 | @@ -144,8 +144,7 @@ class test_comment_line(unittest.TestCase): 16 | '#this is a comment', 17 | ';; this is also a comment', 18 | '; so is this ', 19 | - 'Rem and this', 20 | - 'remthis too!' 21 | + 'Rem and this' 22 | ] 23 | def test_parsing(self): 24 | for l in self.lines: 25 | -- 26 | 1.8.5.3 27 | 28 | -------------------------------------------------------------------------------- /graphical/sdl/fix-mouse-click.patch: -------------------------------------------------------------------------------- 1 | --- SDL-1.2.14/src/video/x11/SDL_x11events.c.orig 2010-04-08 11:57:05.003169834 -0700 2 | +++ SDL-1.2.14/src/video/x11/SDL_x11events.c 2010-04-08 12:33:51.690926340 -0700 3 | @@ -423,12 +423,15 @@ 4 | if ( xevent.xcrossing.mode == NotifyUngrab ) 5 | printf("Mode: NotifyUngrab\n"); 6 | #endif 7 | - if ( this->input_grab == SDL_GRAB_OFF ) { 8 | - posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); 9 | + if ( (xevent.xcrossing.mode != NotifyGrab) && 10 | + (xevent.xcrossing.mode != NotifyUngrab) ) { 11 | + if ( this->input_grab == SDL_GRAB_OFF ) { 12 | + posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); 13 | + } 14 | + posted = SDL_PrivateMouseMotion(0, 0, 15 | + xevent.xcrossing.x, 16 | + xevent.xcrossing.y); 17 | } 18 | - posted = SDL_PrivateMouseMotion(0, 0, 19 | - xevent.xcrossing.x, 20 | - xevent.xcrossing.y); 21 | } 22 | break; 23 | 24 | -------------------------------------------------------------------------------- /xorg/xkbcomp/xkbcomp.spec: -------------------------------------------------------------------------------- 1 | Summary: xkbcomp - compile XKB keyboard description 2 | Name: xkbcomp 3 | Version: 1.1.1 4 | Release: 1%{?dist} 5 | License: MIT 6 | Group: User Interface/X 7 | URL: http://www.x.org 8 | 9 | Source0: http://www.x.org/pub/individual/app/xkbcomp-%{version}.tar.bz2 10 | 11 | BuildRequires: libx11-devel libxkbfile-devel 12 | 13 | %description 14 | The xkbcomp keymap compiler converts a description 15 | of an XKB keymap into one of several output formats. 16 | 17 | %package docs 18 | Summary: Doc files for xkbcomp 19 | Requires: %{name} = %{version} 20 | 21 | %description docs 22 | Documentation files for the xkbcomp keymap compiler 23 | 24 | %prep 25 | %setup -q 26 | 27 | %build 28 | 29 | %configure 30 | 31 | make %{?_smp_mflags} 32 | 33 | %install 34 | %make_install 35 | 36 | %files 37 | %{_bindir}/xkbcomp 38 | 39 | %files docs 40 | %{_mandir}/man1/xkbcomp.1* 41 | -------------------------------------------------------------------------------- /base/unity-conf/unity-conf.spec: -------------------------------------------------------------------------------- 1 | %global _arch %(uname -m) 2 | %define _target_platform %{_arch}-unity-linux-musl 3 | %define _libdir /usr/lib64 4 | 5 | Name: unity-conf 6 | Version: 0.0.5 7 | Release: 1%{?dist} 8 | Summary: Unity CLI configuration management scripts 9 | 10 | Group: Applications/System 11 | License: GPL 12 | URL: http://www.url.com 13 | Source0: %{name}-%{version}.tar.gz 14 | 15 | BuildRequires: make 16 | Requires: blkid syslinux-extlinux 17 | Requires: tzdata sfdisk tar 18 | 19 | %description 20 | Unity CLI configuration management scripts 21 | 22 | %prep 23 | %setup -q 24 | 25 | 26 | %build 27 | make %{?_smp_mflags} 28 | 29 | 30 | %install 31 | rm -rf %{buildroot} 32 | %make_install 33 | 34 | 35 | %files 36 | %{_bindir}/* 37 | /etc/* 38 | %{_libdir}/* 39 | %{_sbindir}/* 40 | 41 | 42 | %changelog 43 | * Tue Dec 08 2015 JMiahMan - 0.0.5-1 44 | - Initial build for Unity-Linux 45 | -------------------------------------------------------------------------------- /base/yum/yum.conf: -------------------------------------------------------------------------------- 1 | [main] 2 | cachedir=/var/cache/yum/$basearch/$releasever 3 | keepcache=0 4 | debuglevel=2 5 | logfile=/var/log/yum.log 6 | exactarch=1 7 | obsoletes=1 8 | gpgcheck=1 9 | plugins=1 10 | installonly_limit=3 11 | color=never 12 | 13 | # This is the default, if you make this bigger yum won't see if the metadata 14 | # is newer on the remote and so you'll "gain" the bandwidth of not having to 15 | # download the new metadata and "pay" for it by yum not having correct 16 | # information. 17 | # It is esp. important, to have correct metadata, for distributions like 18 | # Fedora which don't keep old packages around. If you don't like this checking 19 | # interupting your command line usage, it's much better to have something 20 | # manually check the metadata once an hour (yum-updatesd will do this). 21 | # metadata_expire=90m 22 | 23 | # PUT YOUR REPOS HERE OR IN separate files named file.repo 24 | # in /etc/yum.repos.d 25 | -------------------------------------------------------------------------------- /src/unity-conf/unity-conf.spec: -------------------------------------------------------------------------------- 1 | %global _arch %(uname -m) 2 | %define _target_platform %{_arch}-unity-linux-musl 3 | %define _libdir /usr/lib64 4 | 5 | Name: unity-conf 6 | Version: 0.0.5 7 | Release: 1%{?dist} 8 | Summary: Unity CLI configuration management scripts 9 | 10 | Group: Applications/System 11 | License: GPL 12 | URL: http://www.url.com 13 | Source0: %{name}-%{version}.tar.gz 14 | 15 | BuildRequires: make 16 | Requires: blkid syslinux-extlinux 17 | Requires: tzdata sfdisk tar 18 | 19 | %description 20 | Unity CLI configuration management scripts 21 | 22 | %prep 23 | %setup -q 24 | 25 | 26 | %build 27 | make %{?_smp_mflags} 28 | 29 | 30 | %install 31 | rm -rf %{buildroot} 32 | %make_install 33 | 34 | 35 | %files 36 | %{_bindir}/* 37 | /etc/* 38 | %{_libdir}/* 39 | %{_sbindir}/* 40 | 41 | 42 | %changelog 43 | * Tue Dec 08 2015 JMiahMan - 0.0.5-1 44 | - Initial build for Unity-Linux 45 | -------------------------------------------------------------------------------- /base/unity-baselayout/unity-baselayout.post-install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | create_vserver_startstop() { 4 | cat <<__EOF__ 5 | #!/bin/sh 6 | 7 | # This file is for compatibility 8 | case \${0##*/} in 9 | rcL) 10 | RUNLEVEL=1 /sbin/rc sysinit || exit 1 11 | /sbin/rc boot || exit 1 12 | /sbin/rc \${1:-default} 13 | exit 0 14 | ;; 15 | rcK) 16 | /sbin/rc shutdown 17 | ;; 18 | esac 19 | 20 | __EOF__ 21 | } 22 | 23 | # create compat start/stop scripts for vserver guests 24 | if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then 25 | # create rcL and rcK 26 | if ! [ -e /etc/init.d/rcL ]; then 27 | create_vserver_startstop > /etc/init.d/rcL 28 | chmod +x /etc/init.d/rcL 29 | fi 30 | if ! [ -e /etc/init.d/rcK ]; then 31 | ln -s rcL /etc/init.d/rcK 32 | fi 33 | fi 34 | 35 | # force /etc/shadow to be owned by root and not be world readable 36 | chown root:shadow /etc/shadow 37 | chmod 640 /etc/shadow 38 | 39 | exit 0 40 | -------------------------------------------------------------------------------- /base/gcc/105_all_gcc48_gcc.c.patch: -------------------------------------------------------------------------------- 1 | 2013-03-24 Magnus Granberg 2 | 3 | * gcc/gcc.c include esp.h 4 | static const char *cc1_spec We set that in esp.h if ENABLE_ESP. 5 | 6 | --- ./gcc/gcc.c 2010-01-21 10:29:30.000000000 -0500 7 | +++ ./gcc/gcc.c 2010-01-29 23:29:16.000000000 -0500 8 | @@ -44,6 +44,7 @@ 9 | #include "opts.h" 10 | #include "params.h" 11 | #include "vec.h" 12 | +#include "config/esp.h" /* for --enable-esp support */ 13 | #include "filenames.h" 14 | 15 | /* By default there is no special suffix for target executables. */ 16 | @@ -822,7 +823,9 @@ 17 | 18 | static const char *asm_debug; 19 | static const char *cpp_spec = CPP_SPEC; 20 | +#ifndef ENABLE_ESP 21 | static const char *cc1_spec = CC1_SPEC; 22 | +#endif 23 | static const char *cc1plus_spec = CC1PLUS_SPEC; 24 | static const char *link_gcc_c_sequence_spec = LINK_GCC_C_SEQUENCE_SPEC; 25 | static const char *link_ssp_spec = LINK_SSP_SPEC; 26 | -------------------------------------------------------------------------------- /graphical/gstreamer/gstreamer-without_ps_pdf.patch: -------------------------------------------------------------------------------- 1 | --- gstreamer-0.10.1/common/m4/gst-doc.m4.orig 2005-11-27 15:19:38.000000000 +0100 2 | +++ gstreamer-0.10.1/common/m4/gst-doc.m4 2006-01-14 13:55:40.223307250 +0100 3 | @@ -8,6 +8,9 @@ 4 | AC_HELP_STRING([--enable-docbook], 5 | [use docbook to build documentation [default=no]]),, 6 | enable_docbook=no) 7 | + AC_ARG_ENABLE(pspdf, 8 | + AC_HELP_STRING([--disable-pspdf], 9 | + [disable building of documentation in PS and PDF formats]),,enable_pspdf=yes) 10 | 11 | have_docbook=no 12 | 13 | @@ -100,6 +103,7 @@ 14 | dnl check if we can generate PS 15 | if test "x$HAVE_DOCBOOK2PS" = "xyes" && \ 16 | test "x$enable_docbook" = "xyes" && \ 17 | + test "x$enable_pspdf" = "xyes" && \ 18 | test "x$HAVE_XMLLINT" = "xyes" && \ 19 | test "x$HAVE_JADETEX" = "xyes" && \ 20 | test "x$HAVE_FIG2DEV_EPS" = "xyes" && \ 21 | -------------------------------------------------------------------------------- /base/tree/tree.spec: -------------------------------------------------------------------------------- 1 | Name: tree 2 | Version: 1.6.0 3 | Release: 1%{?dist} 4 | Summary: A recursive directory indented listing of files 5 | 6 | Group: Applications/File 7 | License: GPL 8 | URL: http://mama.indstate.edu/users/ice/tree/ 9 | Source0: http://mama.indstate.edu/users/ice/tree/src/%{name}-%{version}.tgz 10 | 11 | BuildRequires: musl-devel 12 | Requires: musl 13 | 14 | %description 15 | Tree is a recursive directory indented 16 | listing of files 17 | 18 | %package docs 19 | Summary: Doc files for %{name} 20 | Requires: %{name} = %{version} 21 | 22 | %description docs 23 | Documentation for tree, a recursive 24 | directory indented listing of files 25 | 26 | %prep 27 | %setup -q 28 | 29 | 30 | %build 31 | 32 | make %{?_smp_mflags} 33 | 34 | %install 35 | make prefix=%{buildroot}/usr MANDIR=%{buildroot}%{_datadir}/man/man1 install 36 | 37 | %files 38 | /usr/bin/tree 39 | 40 | %files docs 41 | %{_datadir}/man/man1/* 42 | 43 | %changelog 44 | -------------------------------------------------------------------------------- /base/tzdata/0001-posixtz-fix-up-lseek.patch: -------------------------------------------------------------------------------- 1 | From 5c4cd3cee03428636e8d7cc4ed644389a4d598b3 Mon Sep 17 00:00:00 2001 2 | From: William Pitcock 3 | Date: Thu, 28 Apr 2011 02:56:42 -0500 4 | Subject: [PATCH] posixtz: ensure the file offset we pass to lseek is off_t 5 | 6 | on 32-bit systems, sizeof(off_t) is 4, on 64-bit sizeof(off_t) is 8 7 | causing a word masking issue. 8 | --- 9 | posixtz.c | 2 +- 10 | 1 files changed, 1 insertions(+), 1 deletions(-) 11 | 12 | diff --git a/posixtz.c b/posixtz.c 13 | index cddcb3e..972ca31 100644 14 | --- a/posixtz-0.3/posixtz.c 15 | +++ b/posixtz-0.3/posixtz.c 16 | @@ -36,7 +36,7 @@ char *posix_tz(const char *filename) 17 | if (r != TZ_BUFLEN 18 | || strncmp(buf, "TZif", 4) != 0 19 | || (unsigned char)buf[4] < 2 20 | - || lseek(fd, -TZ_BUFLEN, SEEK_END) < 0 21 | + || lseek(fd, (off_t) -TZ_BUFLEN, SEEK_END) < 0 22 | ) 23 | goto ERROR; 24 | 25 | -- 26 | 1.7.4.5 27 | 28 | -------------------------------------------------------------------------------- /base/openssl/0008-maintain-abi-compat-with-no-freelist-and-regular-bui.patch: -------------------------------------------------------------------------------- 1 | From 7457e26d3a78c7cd923242d87d04febadddea086 Mon Sep 17 00:00:00 2001 2 | From: =?UTF-8?q?Timo=20Ter=C3=A4s?= 3 | Date: Thu, 5 Feb 2015 10:06:31 +0200 4 | Subject: [PATCH] maintain abi compat with no-freelist and regular build 5 | 6 | --- 7 | ssl/ssl.h | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/ssl/ssl.h b/ssl/ssl.h 11 | index 2b0f662..636cb5d 100644 12 | --- a/ssl/ssl.h 13 | +++ b/ssl/ssl.h 14 | @@ -1113,6 +1113,10 @@ struct ssl_ctx_st { 15 | unsigned int freelist_max_len; 16 | struct ssl3_buf_freelist_st *wbuf_freelist; 17 | struct ssl3_buf_freelist_st *rbuf_freelist; 18 | +# else 19 | + unsigned int freelist_dummy0; 20 | + void *freelist_dummy1; 21 | + void *freelist_dummy2; 22 | # endif 23 | # ifndef OPENSSL_NO_SRP 24 | SRP_CTX srp_ctx; /* ctx for SRP authentication */ 25 | -- 26 | 2.2.2 27 | 28 | -------------------------------------------------------------------------------- /graphical/gstreamer0.10/bison3.patch: -------------------------------------------------------------------------------- 1 | From 60516f4798894f958fc53b470e1283318d0f8706 Mon Sep 17 00:00:00 2001 2 | From: Kerrick Staley 3 | Date: Wed, 21 Aug 2013 06:59:29 +0000 4 | Subject: parse: make grammar.y work with Bison 3 5 | 6 | YYLEX_PARAM is no longer supported in Bison 3. 7 | 8 | https://bugzilla.gnome.org/show_bug.cgi?id=706462 9 | --- 10 | diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y 11 | index 24fc87b..7f9dd16 100644 12 | --- a/gst/parse/grammar.y 13 | +++ b/gst/parse/grammar.y 14 | @@ -26,7 +26,6 @@ 15 | */ 16 | 17 | #define YYERROR_VERBOSE 1 18 | -#define YYLEX_PARAM scanner 19 | 20 | #define YYENABLE_NLS 0 21 | 22 | @@ -648,6 +647,7 @@ static int yyerror (void *scanner, graph_t *graph, const char *s); 23 | %right '.' 24 | %left '!' '=' 25 | 26 | +%lex-param { void *scanner } 27 | %parse-param { void *scanner } 28 | %parse-param { graph_t *graph } 29 | %pure-parser 30 | -- 31 | cgit v0.9.0.2-2-gbebe 32 | -------------------------------------------------------------------------------- /graphical/sdl/SDL-1.2.10-GrabNotViewable.patch: -------------------------------------------------------------------------------- 1 | Makes SDL-1.2 SDL_WM_GrabInput() non-blocking in case of SDL window is not 2 | viewable. Patch provided by . 3 | See . 4 | 5 | --- ./src/video/x11/SDL_x11wm.c 2007-12-31 04:48:13.000000000 +0000 6 | +++ ./src/video/x11/SDL_x11wm.c 2009-01-15 10:27:14.000000000 +0000 7 | @@ -351,13 +351,14 @@ SDL_GrabMode X11_GrabInputNoLock(_THIS, 8 | result = XGrabPointer(SDL_Display, SDL_Window, True, 0, 9 | GrabModeAsync, GrabModeAsync, 10 | SDL_Window, None, CurrentTime); 11 | - if ( result == GrabSuccess ) { 12 | + if ( result == GrabSuccess || result == GrabNotViewable ) { 13 | break; 14 | } 15 | SDL_Delay(100); 16 | } 17 | if ( result != GrabSuccess ) { 18 | /* Uh, oh, what do we do here? */ ; 19 | + return(SDL_GRAB_OFF); 20 | } 21 | /* Now grab the keyboard */ 22 | XGrabKeyboard(SDL_Display, WMwindow, True, 23 | -------------------------------------------------------------------------------- /xorg/xorg-server/autoconfig-nvidia.patch: -------------------------------------------------------------------------------- 1 | diff -Nur xorg-server-1.11.99.902.orig/hw/xfree86/common/xf86pciBus.c xorg-server-1.11.99.902/hw/xfree86/common/xf86pciBus.c 2 | --- xorg-server-1.11.99.902.orig/hw/xfree86/common/xf86pciBus.c 2012-02-10 10:10:37.583014924 +0000 3 | +++ xorg-server-1.11.99.902/hw/xfree86/common/xf86pciBus.c 2012-02-10 11:16:07.148971317 +0000 4 | @@ -1144,7 +1144,23 @@ 5 | int idx = 0; 6 | 7 | #ifdef __linux__ 8 | - driverList[idx++] = "nouveau"; 9 | + switch (dev->device_id) 10 | + { 11 | + /* NV1 */ 12 | + case 0x0008: 13 | + case 0x0009: 14 | + driverList[idx++] = "vesa"; 15 | + break; 16 | + /* NV3 */ 17 | + case 0x0018: 18 | + case 0x0019: 19 | + driverList[idx++] = "nouveau"; 20 | + break; 21 | + default: 22 | + driverList[idx++] = "nouveau"; 23 | + driverList[idx++] = "nvidia"; 24 | + break; 25 | + } 26 | #endif 27 | driverList[idx++] = "nv"; 28 | break; 29 | -------------------------------------------------------------------------------- /base/busybox/linux-headers.patch: -------------------------------------------------------------------------------- 1 | Signed-off-by: Russell Senior 2 | --- 3 | .../utils/iproute2/patches/910-sanitize_headers_for_musl.patch | 10 ++++++++++ 4 | 1 file changed, 10 insertions(+) 5 | create mode 100644 package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch 6 | 7 | diff --git a/package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch b/package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch 8 | new file mode 100644 9 | index 0000000..ca1125d 10 | --- /dev/null 11 | +++ b/package/network/utils/iproute2/patches/910-sanitize_headers_for_musl.patch 12 | @@ -0,0 +1,10 @@ 13 | +--- a/include/linux/if_bridge.h 14 | ++++ b/include/linux/if_bridge.h 15 | +@@ -15,7 +15,6 @@ 16 | + 17 | + #include 18 | + #include 19 | +-#include 20 | + 21 | + #define SYSFS_BRIDGE_ATTR "bridge" 22 | + #define SYSFS_BRIDGE_FDB "brforward" 23 | -- 24 | 2.1.3 25 | -------------------------------------------------------------------------------- /base/llvm/clang-0002-fix-unwind-header.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h 2 | index 90aca16..ef96969 100644 3 | --- a/lib/Headers/unwind.h 4 | +++ b/lib/Headers/unwind.h 5 | @@ -23,9 +23,6 @@ 6 | 7 | /* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/ 8 | 9 | -#ifndef __CLANG_UNWIND_H 10 | -#define __CLANG_UNWIND_H 11 | - 12 | #if defined(__APPLE__) && __has_include_next() 13 | /* Darwin (from 11.x on) provide an unwind.h. If that's available, 14 | * use it. libunwind wraps some of its definitions in #ifdef _GNU_SOURCE, 15 | @@ -53,6 +50,9 @@ 16 | # endif 17 | #else 18 | 19 | +#ifndef __CLANG_UNWIND_H 20 | +#define __CLANG_UNWIND_H 21 | + 22 | #include 23 | 24 | #ifdef __cplusplus 25 | @@ -277,6 +277,7 @@ _Unwind_Ptr _Unwind_GetTextRelBase(struct _Unwind_Context *); 26 | } 27 | #endif 28 | 29 | +#endif /* __CLANG_UNWIND_H */ 30 | + 31 | #endif 32 | 33 | -#endif /* __CLANG_UNWIND_H */ 34 | -- 35 | 2.1.4 36 | -------------------------------------------------------------------------------- /base/dos2unix/dos2unix.spec: -------------------------------------------------------------------------------- 1 | Summary: Hany's Dos2Unix Text file format converters 2 | Name: hd2u 3 | Version: 1.0.3 4 | Release: 1%{?dist} 5 | Group: Applications/Text 6 | License: GPL 7 | URL: http://hany.sk/~hany/software/hd2u/ 8 | Source: http://terminus.sk/~hany/_data/hd2u/hd2u-1.0.3.tgz 9 | Provides: unix2dos = %{version}-%{release} 10 | 11 | BuildRequires: popt-devel 12 | 13 | %description 14 | Hany's Dos2Unix Converts text files with DOS or Mac line endings to Unix line endings and 15 | vice versa. 16 | 17 | %prep 18 | %setup -q 19 | 20 | %build 21 | %configure 22 | make %{?_smp_mflags} 23 | 24 | %install 25 | install -c -d -m 755 %{buildroot}/usr/bin 26 | install -c -m 755 -s dos2unix %{buildroot}/usr/bin 27 | 28 | 29 | %files 30 | %defattr(-,root,root,0755) 31 | #%doc man/man1/dos2unix.htm ChangeLog.txt COPYING.txt 32 | #%doc NEWS.txt README.txt TODO.txt 33 | %{_bindir}/dos2unix 34 | #%{_mandir}/man1/*.1* 35 | 36 | %clean 37 | rm -rf $RPM_BUILD_ROOT 38 | 39 | %changelog 40 | -------------------------------------------------------------------------------- /base/fakeroot/fakeroot-uclibc.patch: -------------------------------------------------------------------------------- 1 | --- fakeroot-1.18.2.orig/libfakeroot.c 2 | +++ fakeroot-1.18.2/libfakeroot.c 3 | @@ -1551,7 +1551,7 @@ 4 | #endif /* LIBFAKEROOT_DEBUGGING */ 5 | r=next_fts_read(ftsp); 6 | if(r && r->fts_statp) { /* Should we bother checking fts_info here? */ 7 | -# if defined(STAT64_SUPPORT) && !defined(__APPLE__) 8 | +# if defined(STAT64_SUPPORT) && !defined(__APPLE__) && !defined(__UCLIBC__) 9 | SEND_GET_STAT64(r->fts_statp, _STAT_VER); 10 | # else 11 | SEND_GET_STAT(r->fts_statp, _STAT_VER); 12 | @@ -1574,7 +1574,7 @@ 13 | first=next_fts_children(ftsp, options); 14 | for(r = first; r; r = r->fts_link) { 15 | if(r && r->fts_statp) { /* Should we bother checking fts_info here? */ 16 | -# if defined(STAT64_SUPPORT) && !defined(__APPLE__) 17 | +# if defined(STAT64_SUPPORT) && !defined(__APPLE__) && !defined(__UCLIBC__) 18 | SEND_GET_STAT64(r->fts_statp, _STAT_VER); 19 | # else 20 | SEND_GET_STAT(r->fts_statp, _STAT_VER); 21 | -------------------------------------------------------------------------------- /graphical/directfb/DirectFB-1.7.1-build.patch: -------------------------------------------------------------------------------- 1 | Author: hasufell 2 | Date: Sat Dec 28 23:52:03 2013 +0100 3 | 4 | * INCLUDES is deprecated, use AM_CPPFLAGS instead 5 | * add missing SVG_CFLAGS 6 | 7 | --- a/interfaces/IDirectFBImageProvider/Makefile.am 8 | +++ b/interfaces/IDirectFBImageProvider/Makefile.am 9 | @@ -77,15 +77,14 @@ else 10 | FFMPEG_PROVIDER_LTLIB = 11 | endif 12 | 13 | -INCLUDES = \ 14 | +AM_CPPFLAGS = \ 15 | -I$(top_builddir)/include \ 16 | -I$(top_builddir)/lib \ 17 | -I$(top_builddir)/src \ 18 | -I$(top_srcdir)/include \ 19 | -I$(top_srcdir)/lib \ 20 | - -I$(top_srcdir)/src 21 | - 22 | -AM_CPPFLAGS = -DDATADIR=\"${RUNTIME_SYSROOT}@DATADIR@\" $(LIBJPEG_CFLAGS) $(LIBPNG_CFLAGS) $(FFMPEG_CFLAGS) 23 | + -I$(top_srcdir)/src \ 24 | + -DDATADIR=\"${RUNTIME_SYSROOT}@DATADIR@\" $(LIBJPEG_CFLAGS) $(LIBPNG_CFLAGS) $(FFMPEG_CFLAGS) $(SVG_CFLAGS) 25 | 26 | idirectfbimageprovider_LTLIBRARIES = \ 27 | libidirectfbimageprovider_dfiff.la \ 28 | -------------------------------------------------------------------------------- /src/unity-conf/README: -------------------------------------------------------------------------------- 1 | This is Unity Conf a port of Alpine Conf to Unity Linux. Unity Conf are a set of utilities for making backup of config files and for setting up a new Unity Linux computer. 2 | 3 | LBU: 4 | 5 | * Basic usage: 6 | 7 | To add a file or folder to be backed up, lbu include /path/to/foo 8 | To remove a file from being backed up, lbu exclude /path/to/foo 9 | To setup LBU options, edit /etc/lbu/lbu.conf 10 | To create a package as specified in lbu.conf, lbu commit 11 | To override destination of the backup package, lbu package /path/to/bar.apkovl.tar.gz 12 | 13 | Setup scripts: 14 | 15 | The main script is called setup-unity, and it will perform basic system setup 16 | Each script can be called independently, for example: 17 | setup-acf Sets up ACF web interface 18 | setup-ntp Sets up NTP service 19 | etc 20 | 21 | For further information, please see http://unitylinux.org/apk/main/x86/unity-conf or 22 | the Alpine Linux documentation wiki at http://wiki.unitylinux.org 23 | -------------------------------------------------------------------------------- /base/dev86/dev86-64bit.patch: -------------------------------------------------------------------------------- 1 | --- dev86-0.16.17/bcc/bcc.c.fix 2005-01-03 23:41:55.000000000 +0100 2 | +++ dev86-0.16.17/bcc/bcc.c 2006-12-27 16:32:57.000000000 +0100 3 | @@ -226,12 +226,12 @@ 4 | 5 | } else { 6 | /* Relative paths to normal PREFIX directory */ 7 | - default_include = build_libpath("-I", "/lib/bcc/include", ""); 8 | - default_libdir = build_libpath("-L", "/lib/bcc", libdir_suffix); 9 | - optim_rules = build_libpath("-d", "/lib/bcc", libdir_suffix); 10 | + default_include = build_libpath("-I", "/lib64/bcc/include", ""); 11 | + default_libdir = build_libpath("-L", "/lib64/bcc", libdir_suffix); 12 | + optim_rules = build_libpath("-d", "/lib64/bcc", libdir_suffix); 13 | 14 | - build_prefix("/lib/bcc", libdir_suffix, ""); 15 | - build_prefix("/lib/bcc", "", ""); 16 | + build_prefix("/lib64/bcc", libdir_suffix, ""); 17 | + build_prefix("/lib64/bcc", "", ""); 18 | } 19 | 20 | build_prefix("/bin", "", ""); 21 | -------------------------------------------------------------------------------- /base/gcc/gcc-4.8-musl-libssp.patch: -------------------------------------------------------------------------------- 1 | Author: Timo Teräs 2 | 3 | Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, 4 | as otherwise we get link failures if some objects are -fstack-protector built 5 | and final link happens with -fno-stack-protector. This seems to be the common 6 | case when bootstrapping gcc, the piepatches do not seem to fully fix the 7 | crosstoolchain and bootstrap sequence wrt. stack-protector flag usage. 8 | 9 | --- gcc-4.8.1/gcc/gcc.c.orig 2013-09-24 06:27:32.133894539 +0000 10 | +++ gcc-4.8.1/gcc/gcc.c 2013-09-24 06:29:35.790562854 +0000 11 | @@ -656,7 +656,9 @@ 12 | #endif 13 | 14 | #ifndef LINK_SSP_SPEC 15 | -#ifdef TARGET_LIBC_PROVIDES_SSP 16 | +#if DEFAULT_LIBC == LIBC_MUSL 17 | +#define LINK_SSP_SPEC "-lssp_nonshared" 18 | +#elif defined(TARGET_LIBC_PROVIDES_SSP) 19 | #define LINK_SSP_SPEC "%{fstack-protector:}" 20 | #else 21 | #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}" 22 | -------------------------------------------------------------------------------- /base/hwdata/hwdata.spec: -------------------------------------------------------------------------------- 1 | Name: hwdata 2 | Summary: Hardware identification and configuration data 3 | Version: 0.282 4 | Release: 1%{?dist} 5 | License: GPLv2+ 6 | Group: System Environment/Base 7 | Source: https://fedorahosted.org/releases/h/w/%{name}/%{name}-%{version}.tar.bz2 8 | URL: http://git.fedorahosted.org/git/hwdata.git 9 | BuildArch: noarch 10 | 11 | %description 12 | hwdata contains various hardware identification and configuration data, 13 | such as the pci.ids and usb.ids databases. 14 | 15 | %prep 16 | %setup -q 17 | %configure 18 | 19 | %build 20 | # nothing to build 21 | 22 | %install 23 | rm -rf $RPM_BUILD_ROOT 24 | mkdir -p %{buildroot}/%{_prefix}/lib/modprobe.d 25 | make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_prefix}/lib 26 | 27 | %clean 28 | rm -rf $RPM_BUILD_ROOT 29 | 30 | %files 31 | %doc LICENSE COPYING 32 | %dir %{_datadir}/%{name} 33 | %dir %{_prefix}/lib/modprobe.d 34 | %{_prefix}/lib/modprobe.d/dist-blacklist.conf 35 | %{_datadir}/%{name}/* 36 | 37 | %changelog 38 | -------------------------------------------------------------------------------- /base/llvm/clang-0001-fix-stdint.h.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/Headers/stdint.h b/lib/Headers/stdint.h 2 | index 0303db9..8ca28df 100644 3 | --- a/lib/Headers/stdint.h 4 | +++ b/lib/Headers/stdint.h 5 | @@ -22,8 +22,6 @@ 6 | * 7 | \*===----------------------------------------------------------------------===*/ 8 | 9 | -#ifndef __CLANG_STDINT_H 10 | -#define __CLANG_STDINT_H 11 | 12 | /* If we're hosted, fall back to the system's stdint.h, which might have 13 | * additional definitions. 14 | @@ -72,6 +70,8 @@ 15 | # endif 16 | 17 | #else 18 | +#ifndef __CLANG_STDINT_H 19 | +#define __CLANG_STDINT_H 20 | 21 | /* C99 7.18.1.1 Exact-width integer types. 22 | * C99 7.18.1.2 Minimum-width integer types. 23 | @@ -703,5 +703,5 @@ typedef __UINTMAX_TYPE__ uintmax_t; 24 | #define INTMAX_C(v) __INTN_C(__INTMAX_WIDTH__, v) 25 | #define UINTMAX_C(v) __UINTN_C(__INTMAX_WIDTH__, v) 26 | 27 | -#endif /* __STDC_HOSTED__ */ 28 | #endif /* __CLANG_STDINT_H */ 29 | +#endif /* __STDC_HOSTED__ */ 30 | -- 31 | 2.1.4 32 | -------------------------------------------------------------------------------- /src/unity-conf/setup-xorg-base.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # simple script to setup x basic org server 4 | # you will still need a window manager and login manager or xinit 5 | 6 | base_pkgs="xorg-server xf86-video-vesa 7 | xf86-input-evdev xf86-input-mouse xf86-input-keyboard eudev" 8 | 9 | # TODO: detect graphics card and pick proper xf86-video-* driver based on that 10 | 11 | # TODO: detect if we need xf86-input-synaptics 12 | 13 | # ps mouse 14 | modprobe psmouse 15 | grep -q -w psmouse /etc/modules || echo "psmouse" >> /etc/modules 16 | 17 | # install packages 18 | yum install $base_pkgs $@ 19 | 20 | # setup and start udev 21 | rc-update -q del mdev sysinit 22 | rc-update -q add udev sysinit 23 | rc-update -q add udev-postmount default 24 | rc-update -q add udev-trigger default 25 | rc-update -q add udev-settle default 26 | if ! rc-service -q udev status; then 27 | rc-service udev start 28 | rc-service udev-postmount start 29 | fi 30 | rc-service udev-trigger start 31 | rc-service udev-settle start 32 | -------------------------------------------------------------------------------- /base/gnupg/0001-Include-sys-select.h-for-FD_SETSIZE.patch: -------------------------------------------------------------------------------- 1 | From d2f3053e156a8dfc3e2e7f8fa814f671d851b26f Mon Sep 17 00:00:00 2001 2 | From: Natanael Copa 3 | Date: Fri, 4 Jul 2014 08:15:21 +0000 4 | Subject: [PATCH] Include sys/select.h for FD_SETSIZE 5 | 6 | This fixes the following compile error with musl libc: 7 | watchgnupg.c:225:18: error: 'FD_SETSIZE' undeclared (first use in this 8 | function) 9 | else if (fd >= FD_SETSIZE) 10 | ^ 11 | 12 | Signed-off-by: Natanael Copa 13 | --- 14 | tools/watchgnupg.c | 1 + 15 | 1 file changed, 1 insertion(+) 16 | 17 | diff --git a/tools/watchgnupg.c b/tools/watchgnupg.c 18 | index 4f4d54d..7aede22 100644 19 | --- a/tools/watchgnupg.c 20 | +++ b/tools/watchgnupg.c 21 | @@ -28,6 +28,7 @@ 22 | #include 23 | #include 24 | #include 25 | +#include 26 | #include 27 | #include 28 | #include 29 | -- 30 | 2.0.1 31 | 32 | -------------------------------------------------------------------------------- /base/linux-pam/musl-fix-pam_exec.patch: -------------------------------------------------------------------------------- 1 | --- ./modules/pam_exec/pam_exec.c.orig 2 | +++ ./modules/pam_exec/pam_exec.c 3 | @@ -103,11 +103,14 @@ 4 | int optargc; 5 | const char *logfile = NULL; 6 | const char *authtok = NULL; 7 | + char authtok_buf[PAM_MAX_RESP_SIZE+1]; 8 | + 9 | pid_t pid; 10 | int fds[2]; 11 | int stdout_fds[2]; 12 | FILE *stdout_file = NULL; 13 | 14 | + memset(authtok_buf, 0, sizeof(authtok_buf)); 15 | if (argc < 1) { 16 | pam_syslog (pamh, LOG_ERR, 17 | "This module needs at least one argument"); 18 | @@ -178,11 +181,11 @@ 19 | } 20 | 21 | pam_set_item (pamh, PAM_AUTHTOK, resp); 22 | - authtok = strndupa (resp, PAM_MAX_RESP_SIZE); 23 | + authtok = strncpy(authtok_buf, resp, sizeof(authtok_buf)); 24 | _pam_drop (resp); 25 | } 26 | else 27 | - authtok = strndupa (void_pass, PAM_MAX_RESP_SIZE); 28 | + authtok = strncpy(authtok_buf, void_pass, sizeof(authtok_buf)); 29 | 30 | if (pipe(fds) != 0) 31 | { 32 | -------------------------------------------------------------------------------- /base/openssl/1004-crypto-engine-autoload-padlock-dynamic-engine.patch: -------------------------------------------------------------------------------- 1 | From a358a1267644829144d6ad35116733ceeef46bf1 Mon Sep 17 00:00:00 2001 2 | From: =?UTF-8?q?Timo=20Ter=C3=A4s?= 3 | Date: Thu, 5 Feb 2015 09:43:37 +0200 4 | Subject: [PATCH] crypto/engine: autoload padlock dynamic engine 5 | 6 | --- 7 | crypto/engine/eng_all.c | 9 +++++++++ 8 | 1 file changed, 9 insertions(+) 9 | 10 | diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c 11 | index 195a3a9..bd05e4c 100644 12 | --- a/crypto/engine/eng_all.c 13 | +++ b/crypto/engine/eng_all.c 14 | @@ -120,6 +120,15 @@ void ENGINE_load_builtin_engines(void) 15 | ENGINE_load_capi(); 16 | # endif 17 | #endif 18 | +#ifdef OPENSSL_NO_STATIC_ENGINE 19 | + { 20 | + ENGINE *e = ENGINE_by_id("padlock"); 21 | + if (e != NULL) { 22 | + ENGINE_add(e); 23 | + ENGINE_free(e); 24 | + } 25 | + } 26 | +#endif 27 | ENGINE_register_all_complete(); 28 | } 29 | 30 | -- 31 | 2.2.2 32 | 33 | -------------------------------------------------------------------------------- /seed/wgetdir: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | EXT=$1 4 | PATH=$2 5 | 6 | if [[ $# -lt 2 ]]; then 7 | echo "Usage: wgetdir \"extension\" \"path\"". 8 | echo "Example: wgetdir rpm http://your-path-to-download/directory/" 9 | echo "Example: wgetdir -all http://your-path-to-download/directory/" 10 | 11 | elif [[ $EXT -eq '-all' ]]; then 12 | 13 | dir_cnt=`echo $PATH | /usr/bin/tr -d -c '/' | /usr/bin/awk '{ print length; }'` 14 | let cnt_dir=$dir_cnt-2 15 | dir_name=`echo $PATH | /usr/bin/cut -d '/' -f$dir_cnt` 16 | echo $dir_name 17 | echo $cnt_dir 18 | 19 | /usr/bin/mkdir $dir_name 20 | cd $dir_name 21 | /usr/bin/wget -r -nH --no-parent --cut-dirs=$cnt_dir --reject html $PATH 22 | 23 | else 24 | /usr/bin/wget -r -nd -np -l1 -A "*.$1" "$2" 25 | if [[ $? -eq 0 ]]; then 26 | echo "All $1 files downloaded successfully from $2." 27 | else 28 | echo "Problem in downloading all $1 from $2, please verify." 29 | fi 30 | fi 31 | -------------------------------------------------------------------------------- /xorg/encodings/encodings.spec: -------------------------------------------------------------------------------- 1 | %define _fontsdir %{_datadir}/fonts 2 | 3 | Summary: X font encodings database 4 | Name: encodings 5 | Version: 1.0.4 6 | Release: 1 7 | License: MIT 8 | Group: X11 9 | Source0: http://xorg.freedesktop.org/releases/individual/font/encodings-%{version}.tar.bz2 10 | URL: http://xorg.freedesktop.org/ 11 | BuildRequires: mkfontscale 12 | BuildRequires: font-util 13 | BuildRequires: util-macros 14 | Requires: font-util 15 | BuildArch: noarch 16 | 17 | %description 18 | X font encodings database. 19 | 20 | %prep 21 | %setup -q -n encodings-%{version} 22 | 23 | %build 24 | %configure \ 25 | --build=%{_host} \ 26 | --host=%{_host} \ 27 | --with-encodingsdir=%{_fontsdir}/encodings 28 | 29 | %{__make} 30 | 31 | %install 32 | rm -rf $RPM_BUILD_ROOT 33 | 34 | %{__make} install \ 35 | DESTDIR=$RPM_BUILD_ROOT 36 | 37 | %clean 38 | rm -rf $RPM_BUILD_ROOT 39 | 40 | %files 41 | %defattr(644,root,root,755) 42 | %doc COPYING ChangeLog README 43 | %{_fontsdir}/encodings 44 | 45 | %changelog 46 | -------------------------------------------------------------------------------- /base/bash/privmode-setuid-fail.patch: -------------------------------------------------------------------------------- 1 | *** ../bash-4.3-patched/shell.c 2014-01-14 08:04:32.000000000 -0500 2 | --- shell.c 2014-06-06 16:29:01.000000000 -0400 3 | *************** 4 | *** 1227,1232 **** 5 | disable_priv_mode () 6 | { 7 | ! setuid (current_user.uid); 8 | ! setgid (current_user.gid); 9 | current_user.euid = current_user.uid; 10 | current_user.egid = current_user.gid; 11 | --- 1229,1246 ---- 12 | disable_priv_mode () 13 | { 14 | ! int e; 15 | ! 16 | ! if (setuid (current_user.uid) < 0) 17 | ! { 18 | ! e = errno; 19 | ! sys_error (_("cannot set uid to %d: effective uid %d"), current_user.uid, current_user.euid); 20 | ! #if defined (EXIT_ON_SETUID_FAILURE) 21 | ! if (e == EAGAIN) 22 | ! exit (e); 23 | ! #endif 24 | ! } 25 | ! if (setgid (current_user.gid) < 0) 26 | ! sys_error (_("cannot set gid to %d: effective gid %d"), current_user.gid, current_user.egid); 27 | ! 28 | current_user.euid = current_user.uid; 29 | current_user.egid = current_user.gid; 30 | -------------------------------------------------------------------------------- /base/unzip/unzip-6.0-bzip2-configure.patch: -------------------------------------------------------------------------------- 1 | diff -up unzip60/unix/configure.bzip2-configure unzip60/unix/configure 2 | --- unzip60/unix/configure.bzip2-configure 2009-04-16 21:25:12.000000000 +0200 3 | +++ unzip60/unix/configure 2009-11-18 11:22:14.598389194 +0100 4 | @@ -640,7 +640,24 @@ else 5 | D_USE_BZ2="-DUSE_BZIP2" 6 | L_BZ2="${BZLF} -lbz2" 7 | else 8 | - echo "-- bzip2 sources not found - no bzip2 support" 9 | + echo " Check if OS already has bzip2 library installed" 10 | + cat > conftest.c << _EOF_ 11 | +#include "bzlib.h" 12 | +int main() 13 | +{ 14 | + bz_stream strm; 15 | + BZ2_bzCompressEnd(&strm); 16 | + return 0; 17 | +} 18 | +_EOF_ 19 | + $CC $CFLAGS -o conftest conftest.c -lbz2 > /dev/null 2>/dev/null 20 | + if test $? -eq 0; then 21 | + echo "-- OS supports bzip2 - linking in bzip2" 22 | + D_USE_BZ2="-DUSE_BZIP2" 23 | + L_BZ2="${BZLF} -lbz2" 24 | + else 25 | + echo "-- Either bzlib.h or libbz2.a not found - no bzip2" 26 | + fi 27 | fi 28 | fi 29 | 30 | -------------------------------------------------------------------------------- /xorg/libvdpau/0001-mesa_dri2-Add-missing-include-of-config.h-to-define-.patch: -------------------------------------------------------------------------------- 1 | From 1cda354bdfd0c9ca107293b84b52f4464fdbedcc Mon Sep 17 00:00:00 2001 2 | From: Rico Tzschichholz 3 | Date: Tue, 1 Sep 2015 10:45:11 +0200 4 | Subject: [PATCH 1/3] mesa_dri2: Add missing include of config.h to define _GNU_SOURCE 5 | 6 | Fix build with -Wimplicit-function-declaration while secure_getenv() is 7 | guarded by __USE_GNU. 8 | 9 | Reviewed-by: Aaron Plattner 10 | Tested-by: Stefan Dirsch 11 | --- 12 | src/mesa_dri2.c | 3 +++ 13 | 1 files changed, 3 insertions(+), 0 deletions(-) 14 | 15 | diff --git a/src/mesa_dri2.c b/src/mesa_dri2.c 16 | index 51e8794..420ccee 100644 17 | --- a/src/mesa_dri2.c 18 | +++ b/src/mesa_dri2.c 19 | @@ -33,6 +33,9 @@ 20 | * and José Hiram Soltren (jsoltren@nvidia.com) 21 | */ 22 | 23 | +#ifdef HAVE_CONFIG_H 24 | +#include "config.h" 25 | +#endif 26 | 27 | #define NEED_REPLIES 28 | #include 29 | -- 30 | 1.7.2.1 31 | 32 | -------------------------------------------------------------------------------- /graphical/dwm/dwm.spec: -------------------------------------------------------------------------------- 1 | Summary: Dynamic window manager for X 2 | Name: dwm 3 | Version: 6.0 4 | Release: 1%{?dist} 5 | License: MIT 6 | Group: X11/Window Managers 7 | Source0: http://dl.suckless.org/dwm/%{name}-%{version}.tar.gz 8 | Patch0: %{name}-flags.patch 9 | URL: http://dwm.suckless.org/ 10 | BuildRequires: libxinerama-devel 11 | 12 | %description 13 | dwm is a dynamic window manager for X. It manages windows in tiled, 14 | monocle and floating layouts. All of the layouts can be applied 15 | dynamically, optimising the environment for the application in use and 16 | the task performed. 17 | 18 | %prep 19 | %setup -q 20 | %patch0 -p1 21 | 22 | %build 23 | %{__make} \ 24 | CC="%{__cc}" \ 25 | 26 | %install 27 | rm -rf $RPM_BUILD_ROOT 28 | 29 | %{__make} install \ 30 | PREFIX=%{_prefix} \ 31 | DESTDIR=$RPM_BUILD_ROOT 32 | 33 | %clean 34 | rm -rf $RPM_BUILD_ROOT 35 | 36 | %files 37 | %defattr(644,root,root,755) 38 | %doc README 39 | %attr(755,root,root) %{_bindir}/dwm 40 | %{_mandir}/man1/dwm.1* 41 | 42 | %changelog 43 | -------------------------------------------------------------------------------- /xorg/util-macros/utils-macros.spec: -------------------------------------------------------------------------------- 1 | Summary: X.Org X11 Autotools macros 2 | Name: util-macros 3 | Version: 1.19.0 4 | Release: 4%{?dist} 5 | License: MIT 6 | Group: Development/System 7 | URL: http://www.x.org 8 | BuildArch: noarch 9 | Source0: ftp://ftp.x.org/pub/individual/util/%{name}-%{version}.tar.bz2 10 | Requires: autoconf automake libtool 11 | 12 | %description 13 | X.Org X11 autotools macros required for building the various packages that 14 | comprise the X Window System. 15 | 16 | %prep 17 | %setup -q -n %{name}-%{version} 18 | 19 | %build 20 | %configure 21 | make %{?_smp_mflags} 22 | 23 | %install 24 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 25 | mkdir -p %{buildroot}/%{_libdir}/pkgconfig/ 26 | mv %{buildroot}%{_datadir}/pkgconfig/xorg-macros.pc %{buildroot}%{_libdir}/pkgconfig/xorg-macros.pc 27 | 28 | %files 29 | %defattr(-,root,root,-) 30 | #%doc COPYING ChangeLog 31 | %{_datadir}/aclocal/xorg-macros.m4 32 | %{_libdir}/pkgconfig/xorg-macros.pc 33 | %{_datadir}/util-macros 34 | 35 | %changelog 36 | -------------------------------------------------------------------------------- /src/unity-conf/setup-gparted-desktop.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | setup-xorg-base gparted xinit st openbox ttf-freefont $@ 4 | 5 | # create openbox menu 6 | mkdir -p ~/.config/openbox 7 | cat >~/.config/openbox/menu.xml< 9 | 10 | 11 | 12 | 13 | 14 | 15 | gparted 16 | 17 | 18 | 19 | 20 | aterm 21 | 22 | 23 | 24 | 25 | 26 | yes 27 | 28 | 29 | 30 | 31 | EOF 32 | 33 | # create xinitrc 34 | cat >~/.xinitrc < 5 | #include 6 | 7 | -/* On some system termio is either absent or including it will disable termios 8 | - (HP-UX) */ 9 | -#if ! defined (__hpux__) && ! defined (FREEBSD) && \ 10 | - ! defined (__APPLE__) && ! defined(__rtems__) 11 | -# include 12 | -#endif 13 | - 14 | #include 15 | #include 16 | #include 17 | @@ -1078,7 +1078,7 @@ 18 | char *slave_name = NULL; 19 | 20 | #ifdef USE_GETPT 21 | - master_fd = getpt (); 22 | + master_fd = posix_openpt (O_RDWR); 23 | #elif defined (USE_OPENPTY) 24 | status = openpty (&master_fd, &slave_fd, NULL, NULL, NULL); 25 | #elif defined (USE_CLONE_DEVICE) 26 | --- gcc-4.8.1/gcc/ada/cal.c.orig 27 | +++ gcc-4.8.1/gcc/ada/cal.c 28 | @@ -65,6 +65,7 @@ 29 | #include 30 | #else 31 | #include 32 | +#include 33 | #endif 34 | 35 | #ifdef __MINGW32__ 36 | -------------------------------------------------------------------------------- /base/busybox/bb-app-location.patch: -------------------------------------------------------------------------------- 1 | --- ./include/applets.src.h.orig 2 | +++ ./include/applets.src.h 3 | @@ -229,7 +229,7 @@ 4 | IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr)) 5 | IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) 6 | IF_LSATTR(APPLET(lsattr, BB_DIR_BIN, BB_SUID_DROP)) 7 | -IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) 8 | +IF_LSPCI(APPLET(lspci, BB_DIR_USR_SBIN, BB_SUID_DROP)) 9 | IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) 10 | IF_UNLZMA(APPLET_ODDNAME(lzcat, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzcat)) 11 | IF_LZMA(APPLET_ODDNAME(lzma, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzma)) 12 | --- ./editors/vi.c.orig 13 | +++ ./editors/vi.c 14 | @@ -145,7 +145,7 @@ 15 | //config: This will make the cursor movement faster, but requires more memory 16 | //config: and it makes the applet a tiny bit larger. 17 | 18 | -//applet:IF_VI(APPLET(vi, BB_DIR_BIN, BB_SUID_DROP)) 19 | +//applet:IF_VI(APPLET(vi, BB_DIR_USR_BIN, BB_SUID_DROP)) 20 | 21 | //kbuild:lib-$(CONFIG_VI) += vi.o 22 | 23 | -------------------------------------------------------------------------------- /base/pyxattr/pyxattr.spec: -------------------------------------------------------------------------------- 1 | Name: pyxattr 2 | Summary: Extended attributes library wrapper for Python 3 | Version: 0.5.3 4 | Release: 1%{?dist} 5 | License: LGPLv2+ 6 | Group: Development/Libraries 7 | URL: http://pyxattr.k1024.org/ 8 | Source: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz 9 | #Patch0: 0001-use-Py_ssize_t.patch 10 | BuildRequires: libattr-devel 11 | BuildRequires: python-devel, python-setuptools 12 | 13 | %description 14 | Python extension module wrapper for libattr. It allows to query, list, 15 | add and remove extended attributes from files and directories. 16 | 17 | %prep 18 | %setup -q 19 | #%patch0 -p1 20 | 21 | %build 22 | CFLAGS="%{optflags}" python setup.py build 23 | 24 | %install 25 | python setup.py install --root="%{buildroot}" --prefix="%{_prefix}" 26 | 27 | 28 | %check 29 | python setup.py test 30 | 31 | %files 32 | %defattr(0644,root,root,0755) 33 | %{python2_sitearch}/xattr.so 34 | %{python2_sitearch}/*egg-info 35 | #%license COPYING 36 | #%doc NEWS README 37 | 38 | %changelog 39 | -------------------------------------------------------------------------------- /graphical/avahi/avahi-initscripts.patch: -------------------------------------------------------------------------------- 1 | diff --git a/initscript/gentoo/avahi-daemon.in b/initscript/gentoo/avahi-daemon.in 2 | index 02eefe6..a430eb5 100644 3 | --- a/initscript/gentoo/avahi-daemon.in 4 | +++ b/initscript/gentoo/avahi-daemon.in 5 | @@ -2,12 +2,12 @@ 6 | # Copyright 1999-2007 Gentoo Foundation 7 | # Distributed under the terms of the GNU General Public License v2 8 | 9 | -opts="reload" 10 | +extra_started_commands="reload" 11 | 12 | depend() { 13 | before netmount nfsmount 14 | use net 15 | - need dbus 16 | + need dbus hostname 17 | } 18 | 19 | start() { 20 | diff --git a/initscript/gentoo/avahi-dnsconfd.in b/initscript/gentoo/avahi-dnsconfd.in 21 | index 376067e..dff914c 100644 22 | --- a/initscript/gentoo/avahi-dnsconfd.in 23 | +++ b/initscript/gentoo/avahi-dnsconfd.in 24 | @@ -2,7 +2,7 @@ 25 | # Copyright 1999-2007 Gentoo Foundation 26 | # Distributed under the terms of the GNU General Public License v2 27 | 28 | -opts="reload" 29 | +extra_started_commands="reload" 30 | 31 | depend() { 32 | need avahi-daemon 33 | --------------------------------------------------------------------------------