This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { | |
RS="\n?~\n" | |
FS="\n" | |
} | |
# Special case the diff header/chunk header lines. | |
/^diff --git/ { | |
next | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SR_PREFIX ?= SR | |
# Manual automake silent rule stuff | |
$(SR_PREFIX)_DEFAULT_VERBOSITY = 0 | |
$(SR_PREFIX)_SILENT_VERBOSITY = -1 | |
V ?= $($(SR_PREFIX)_DEFAULT_VERBOSITY) | |
SILENT := $(and $(filter $($(SR_PREFIX)_SILENT_VERBOSITY),$(V)),silent) | |
DEFAULT := $(and $(filter $($(SR_PREFIX)_DEFAULT_VERBOSITY),$(V)),default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os, rpm | |
def readRpmHeader(ts, filename): | |
""" Read an rpm header. """ | |
fd = os.open(filename, os.O_RDONLY) | |
h = None | |
try: | |
h = ts.hdrFromFdno(fd) | |
finally: | |
os.close(fd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ set -x | |
+ set -x | |
$ k=foo | |
+ k=foo | |
$ v='bar baz' | |
+ v='bar baz' | |
$ export foo=$v | |
+ export 'foo=bar baz' | |
+ foo='bar baz' | |
$ echo $foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=gcc | |
l.a : l.a(a.o) | |
ranlib l.a | |
echo done | |
l.a(a.o) : a.c | |
clean:: | |
rm -f l.a a.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ver.%: Makefile | |
touch ver.h | |
sleep 1 | |
touch ver.cpp | |
.PHONY: clean all | |
all: ver.h ver.cpp | |
clean: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
p=$1 | |
alt=$2 | |
skip78= | |
stripslashes() { | |
i=$1 | |
while [ "$i" != "$o" ]; do | |
o=$i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified version of http://www.cmcrossroads.com/article/self-documenting-makefiles | |
all: | |
@printf -- "$(HELPTGT)\n$(ETCTGT)\n" | column -t -s : | |
HELPTGT := --- Primary Targets --- | |
helptgt = $1$(eval $(if $(filter-out $(.DEFAULT_GOAL),$(MAKECMDGOALS)),,HELPTGT+=\n$(subst %,<name>,$1): - $2)) | |
ETCTGT := --- Extra Targets --- | |
etctgt = $1$(eval $(if $(filter-out $(.DEFAULT_GOAL),$(MAKECMDGOALS)),,ETCTGT+=\n$1: - $2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attempting to kickstart CentOS 6 works correctly. Attempting to include post-DVD updates during kickstart causes lots of scriptlet failures. Can someone tell me why this happens? | |
Specifically, I know why the failures happen (look at the order of package installation between the two outputs). I also know why rpm doesn't get the transaction order right (the scriplets are missing appropriate requires entries). What I don't understand is why pulling in update packages triggers this issue or why a regular install seems to always work. | |
I believe there are couple of bugs involved here: | |
- the sudo package does not contain a Requires(post): /bin/chmod | |
- the anaconda transaction order solver doesn't take scriplet requires ordering considerations into account beyond one dependency level (so the Requires(pre): /usr/sbin/useradd requirement is fulfilled by the time openssh is installed but anaconda doesn't extend that to ensuring that regular Requires: entries for shadow-utils are ordered correctly) | |
- that for some r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git --version | |
git version 1.8.2.1 | |
$ git lol | |
* f09682e (HEAD, tag: second-tag, master) add c | |
* 86db014 add b | |
* b8c7c3e (tag: initial-tag) initial | |
$ git describe 86db014 | |
initial-tag-1-g86db014 | |
$ git describe --abbrev=0 86db014 | |
initial-tag |
OlderNewer