diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/makemkv/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/makemkv/files')
-rw-r--r-- | media-video/makemkv/files/makemkv-path.patch | 59 | ||||
-rw-r--r-- | media-video/makemkv/files/makemkv-wget.patch | 29 |
2 files changed, 88 insertions, 0 deletions
diff --git a/media-video/makemkv/files/makemkv-path.patch b/media-video/makemkv/files/makemkv-path.patch new file mode 100644 index 000000000000..7c66849b3234 --- /dev/null +++ b/media-video/makemkv/files/makemkv-path.patch @@ -0,0 +1,59 @@ +diff -Naur makemkv-oss-1.9.10.orig/libabi/src/httplinux.cpp makemkv-oss-1.9.10/libabi/src/httplinux.cpp +--- makemkv-oss-1.9.10.orig/libabi/src/httplinux.cpp 2016-04-15 21:35:36.000000000 +0100 ++++ makemkv-oss-1.9.10/libabi/src/httplinux.cpp 2016-05-08 10:52:42.481501963 +0100 +@@ -45,7 +45,7 @@ + lurl = (char*)alloca(strlen(Url)+1); + strcpy(lurl,Url); + +- strcpy(argv0,"/usr/bin/wget"); argv[0]=argv0; ++ strcpy(argv0,"wget"); argv[0]=argv0; + strcpy(argv1,"-q"); argv[1]=argv1; + strcpy(argv2,"-O"); argv[2]=argv2; + strcpy(argv3,"-"); argv[3]=argv3; +diff -Naur makemkv-oss-1.9.10.orig/makemkvgui/src/api_posix.cpp makemkv-oss-1.9.10/makemkvgui/src/api_posix.cpp +--- makemkv-oss-1.9.10.orig/makemkvgui/src/api_posix.cpp 2016-04-15 21:35:36.000000000 +0100 ++++ makemkv-oss-1.9.10/makemkvgui/src/api_posix.cpp 2016-05-08 13:51:48.761885862 +0100 +@@ -54,8 +54,6 @@ + + if (AppName[0]==':') + { +- bool app_found = false; +- const char* const* app_locations = ApGetAppLocations(); + const char* p_env = getenv("MAKEMKVCON"); + + AppName++; +@@ -63,6 +61,13 @@ + if (p_env!=NULL) + { + strcpy(app_path,p_env); ++ } else { ++ strcpy(app_path,AppName); ++ } ++ } else { ++ strcpy(app_path,AppName); ++ } ++/* + app_found = true; + } else { + for (size_t i=0;app_locations[i]!=NULL;i++) +@@ -105,7 +110,7 @@ + } + strcpy(p,AppName); + } +- ++*/ + strcpy(str_guiserver,"guiserver"); + strcpy(str_apver,verstr); + +diff -Naur makemkv-oss-1.9.10.orig/makemkvgui/src/spawn_posix.cpp makemkv-oss-1.9.10/makemkvgui/src/spawn_posix.cpp +--- makemkv-oss-1.9.10.orig/makemkvgui/src/spawn_posix.cpp 2016-04-15 21:35:36.000000000 +0100 ++++ makemkv-oss-1.9.10/makemkvgui/src/spawn_posix.cpp 2016-05-08 10:52:37.137598384 +0100 +@@ -70,7 +70,7 @@ + } + } + +- err = posix_spawn(&pid,argv[0],&spawn_actions,&spawn_attr,argv,envp); ++ err = posix_spawnp(&pid,argv[0],&spawn_actions,&spawn_attr,argv,envp); + + posix_spawn_file_actions_destroy(&spawn_actions); + posix_spawnattr_destroy(&spawn_attr); diff --git a/media-video/makemkv/files/makemkv-wget.patch b/media-video/makemkv/files/makemkv-wget.patch new file mode 100644 index 000000000000..01398469ae6d --- /dev/null +++ b/media-video/makemkv/files/makemkv-wget.patch @@ -0,0 +1,29 @@ +https://www.makemkv.com/forum2/viewtopic.php?f=3&t=15885 + +diff -Naur a/libabi/src/httplinux.cpp b/libabi/src/httplinux.cpp +--- a/libabi/src/httplinux.cpp 2017-03-26 16:33:04.000000000 +0100 ++++ b/libabi/src/httplinux.cpp 2017-03-26 20:31:04.630357491 +0100 +@@ -29,8 +29,8 @@ + int HTTP_Download(const char* Url,const char* Agent,void* Buffer,uint32_t* Size) + { + int pipe_fd[2],err; +- char* argv[10]; +- char argv0[16],argv1[4],argv2[4],argv3[4],argv4[4],argv5[4],argv6[4]; ++ char* argv[12]; ++ char argv0[16],argv1[4],argv2[4],argv3[4],argv4[4],argv5[4],argv6[4],argv8[4],argv9[16]; + char *lagent,*lurl; + ssize_t rd; + +@@ -53,8 +53,10 @@ + strcpy(argv5,"20"); argv[5]=argv5; + strcpy(argv6,"-U"); argv[6]=argv6; + argv[7]=lagent; +- argv[8]=lurl; +- argv[9]=NULL; ++ strcpy(argv8,"-o"); argv[8]=argv8; ++ strcpy(argv9,"/dev/null"); argv[9]=argv9; ++ argv[10]=lurl; ++ argv[11]=NULL; + + err = SYS_posix_launch(argv,0,pipe_fd[1],0,SYS_posix_envp()); + |