mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
50 lines
2.3 KiB
Diff
50 lines
2.3 KiB
Diff
diff -rc checkinstall-orig/checkinstall checkinstall/checkinstall
|
|
*** checkinstall-orig/checkinstall 2009-03-12 13:40:24.000000000 +0100
|
|
--- checkinstall/checkinstall 2009-03-27 14:51:55.000000000 +0100
|
|
***************
|
|
*** 1635,1644 ****
|
|
|
|
# Find regular files first
|
|
[ $DEBUG -gt 0 ] && echo "debug: BASE_TMP_DIR: $BASE_TMP_DIR"
|
|
! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access)' | cut -f 3 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | sort -u > /${TMP_DIR}/newfiles
|
|
|
|
# symlinks are next
|
|
! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access)' | cut -f 4 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | grep -v "#success" | sort -u >> /${TMP_DIR}/newfiles
|
|
# Create another list of modified files that exclude all files the
|
|
# install script wanted to create but did not, e.g because they already
|
|
# existed.
|
|
--- 1635,1648 ----
|
|
|
|
# Find regular files first
|
|
[ $DEBUG -gt 0 ] && echo "debug: BASE_TMP_DIR: $BASE_TMP_DIR"
|
|
! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access|mkdir)' | cut -f 3 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | sort -u > /${TMP_DIR}/newfiles
|
|
|
|
# symlinks are next
|
|
! cat /${TMP_DIR}/newfiles.tmp | egrep -v '^[-0-9][0-9]*[[:space:]]*(unlink|access|mkdir)' | cut -f 4 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | grep -v "#success" | sort -u >> /${TMP_DIR}/newfiles
|
|
!
|
|
! # And finally newly created directories.
|
|
! cat /${TMP_DIR}/newfiles.tmp | egrep '^0[[:space:]]+mkdir[[:space:]]+' | cut -f 3 | egrep -v "^(/dev|$BASE_TMP_DIR|/tmp)" | sort -u >> /${TMP_DIR}/newfiles
|
|
!
|
|
# Create another list of modified files that exclude all files the
|
|
# install script wanted to create but did not, e.g because they already
|
|
# existed.
|
|
***************
|
|
*** 1738,1746 ****
|
|
cd /
|
|
|
|
( cat /${TMP_DIR}/newfiles | while read i; do
|
|
! if [ ! -d "${TRANSLROOT}${i}" -o -L "${TRANSLROOT}${i}" ]; then
|
|
! echo ".${i}"
|
|
! fi
|
|
done ) > /${TMP_DIR}/newfiles-tar
|
|
|
|
# Here it gets tricky: we need to copy all new files to our build dir,
|
|
--- 1742,1748 ----
|
|
cd /
|
|
|
|
( cat /${TMP_DIR}/newfiles | while read i; do
|
|
! echo ".${i}"
|
|
done ) > /${TMP_DIR}/newfiles-tar
|
|
|
|
# Here it gets tricky: we need to copy all new files to our build dir,
|