mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +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.
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/sata.c hddtemp-0.3-beta15/src/sata.c
|
|
--- hddtemp-0.3-beta15.orig/src/sata.c 2006-05-14 02:09:55.579437498 -0700
|
|
+++ hddtemp-0.3-beta15/src/sata.c 2006-05-14 02:06:08.495948437 -0700
|
|
@@ -88,7 +88,9 @@
|
|
return strdup(_("unknown"));
|
|
else
|
|
{
|
|
+ //fprintf(stderr,"sata_model1=%s\n",identify + 54);
|
|
sata_fixstring(identify + 54, 24);
|
|
+ //fprintf(stderr,"sata_model2=%s\n",identify + 54);
|
|
return strdup(identify + 54);
|
|
}
|
|
}
|
|
diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c
|
|
--- hddtemp-0.3-beta15.orig/src/satacmds.c 2006-05-14 02:09:40.983470339 -0700
|
|
+++ hddtemp-0.3-beta15/src/satacmds.c 2006-05-14 02:09:02.319557333 -0700
|
|
@@ -98,7 +98,10 @@
|
|
/* convert from big-endian to host byte order */
|
|
for (p = end ; p != s;) {
|
|
unsigned short *pp = (unsigned short *) (p -= 2);
|
|
- *pp = ntohs(*pp);
|
|
+ char tmp = p[0];
|
|
+ p[0] = p[1];
|
|
+ p[1] = tmp;
|
|
+ //*pp = ntohs(*pp);
|
|
}
|
|
|
|
/* strip leading blanks */
|