* [gentoo-commits] repo/gentoo:master commit in: app-cdr/cdrtools/, app-cdr/cdrtools/files/
@ 2021-04-21 18:51 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-04-21 18:51 UTC (permalink / raw
To: gentoo-commits
commit: 040e0d457b34e9ea489946cc38ceb9e5e41ff8dd
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 21 09:27:49 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 21 18:50:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=040e0d45
app-cdr/cdrtools: drop no-op epatch
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-cdr/cdrtools/cdrtools-3.02_alpha09.ebuild | 2 +-
app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/app-cdr/cdrtools/cdrtools-3.02_alpha09.ebuild b/app-cdr/cdrtools/cdrtools-3.02_alpha09.ebuild
index 36550e7b64e..f11ca585ee0 100644
--- a/app-cdr/cdrtools/cdrtools-3.02_alpha09.ebuild
+++ b/app-cdr/cdrtools/cdrtools-3.02_alpha09.ebuild
@@ -48,7 +48,7 @@ src_prepare() {
# going to include this so let's try to carry it forward.
# Contact me if it needs updating. Bug #486782.
# Anthony G. Basile <blueness@gentoo.org>.
- use elibc_uclibc && epatch "${FILESDIR}"/${PN}-fix-clone-uclibc.patch
+ use elibc_uclibc && eapply "${FILESDIR}"/${PN}-fix-clone-uclibc.patch
# Remove profiled make files.
find -name '*_p.mk' -delete || die "delete *_p.mk"
diff --git a/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch b/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch
index 9ffd28a5ba5..4ba244bf32b 100644
--- a/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch
+++ b/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch
@@ -1,6 +1,5 @@
-diff -Naur cdrtools-3.02.orig/readcd/readcd.c cdrtools-3.02/readcd/readcd.c
---- cdrtools-3.02.orig/readcd/readcd.c 2016-01-24 11:15:19.000000000 -0500
-+++ cdrtools-3.02/readcd/readcd.c 2016-04-09 12:29:54.727635502 -0400
+--- a/readcd/readcd.c
++++ b/readcd/readcd.c
@@ -257,7 +257,7 @@
BOOL pifscan;
BOOL plot;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-cdr/cdrtools/, app-cdr/cdrtools/files/
@ 2016-04-09 16:27 Anthony G. Basile
0 siblings, 0 replies; 2+ messages in thread
From: Anthony G. Basile @ 2016-04-09 16:27 UTC (permalink / raw
To: gentoo-commits
commit: 6bf287e85f0806886c6fbee73e9afca97440ffe4
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 9 16:34:18 2016 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Apr 9 16:34:39 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf287e8
app-cdr/cdrtools: avoid clash with clone() on uclibc, bug #486782
Package-Manager: portage-2.2.26
app-cdr/cdrtools/cdrtools-3.02_alpha06.ebuild | 6 ++
.../cdrtools/files/cdrtools-fix-clone-uclibc.patch | 69 ++++++++++++++++++++++
2 files changed, 75 insertions(+)
diff --git a/app-cdr/cdrtools/cdrtools-3.02_alpha06.ebuild b/app-cdr/cdrtools/cdrtools-3.02_alpha06.ebuild
index 8dd03a2..abe77bd 100644
--- a/app-cdr/cdrtools/cdrtools-3.02_alpha06.ebuild
+++ b/app-cdr/cdrtools/cdrtools-3.02_alpha06.ebuild
@@ -43,6 +43,12 @@ cdrtools_os() {
src_prepare() {
gnuconfig_update
+ # This fixes a clash with clone() on uclibc. Upstream isn't
+ # going to include this so let's try to carry it forward.
+ # Contact me if it needs updating. Bug #486782.
+ # Anthony G. Basile <blueness@gentoo.org>.
+ use elibc_uclibc && epatch "${FILESDIR}"/${PN}-fix-clone-uclibc.patch
+
# Remove profiled make files.
find -name '*_p.mk' -delete
diff --git a/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch b/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch
new file mode 100644
index 0000000..9ffd28a
--- /dev/null
+++ b/app-cdr/cdrtools/files/cdrtools-fix-clone-uclibc.patch
@@ -0,0 +1,69 @@
+diff -Naur cdrtools-3.02.orig/readcd/readcd.c cdrtools-3.02/readcd/readcd.c
+--- cdrtools-3.02.orig/readcd/readcd.c 2016-01-24 11:15:19.000000000 -0500
++++ cdrtools-3.02/readcd/readcd.c 2016-04-09 12:29:54.727635502 -0400
+@@ -257,7 +257,7 @@
+ BOOL pifscan;
+ BOOL plot;
+ BOOL fulltoc;
+-BOOL clone;
++BOOL clonetoc;
+ BOOL edc_corr;
+ BOOL noerror;
+ BOOL nocorr;
+@@ -294,7 +294,7 @@
+ error(_("\t-plot Print data suitable for gnuplot\n"));
+ #ifdef CLONE_WRITE
+ error(_("\t-fulltoc Retrieve the full TOC\n"));
+- error(_("\t-clone Retrieve the full TOC and all data\n"));
++ error(_("\t-clonetoc Retrieve the full TOC and all data\n"));
+ error(_("\t-edc-corr Try to do user level Reed Solomon repair (experimental)\n"));
+ #endif
+ error(_("\ttimeout=# set the default SCSI command timeout to #.\n"));
+@@ -320,7 +320,7 @@
+ }
+
+ /* CSTYLED */
+-char opts[] = "debug#,d+,kdebug#,kd#,timeout#,quiet,q,verbose+,v+,Verbose+,V+,x+,xd#,silent,s,help,h,version,scanbus,dev*,scgopts*,sectors*,w,c2scan,cxscan,pi8scan,pifscan,plot,fulltoc,clone,edc-corr,noerror,nocorr,notrunc,retries#,factor,f*,speed#,ts&,overhead,meshpoints#";
++char opts[] = "debug#,d+,kdebug#,kd#,timeout#,quiet,q,verbose+,v+,Verbose+,V+,x+,xd#,silent,s,help,h,version,scanbus,dev*,scgopts*,sectors*,w,c2scan,cxscan,pi8scan,pifscan,plot,fulltoc,clonetoc,edc-corr,noerror,nocorr,notrunc,retries#,factor,f*,speed#,ts&,overhead,meshpoints#";
+
+ EXPORT int
+ main(ac, av)
+@@ -397,7 +397,7 @@
+ &scanbus, &dev, &scgopts, §ors, &do_write,
+ &c2scan, &cxscan, &pi8scan, &pifscan,
+ &plot,
+- &fulltoc, &clone,
++ &fulltoc, &clonetoc,
+ &edc_corr,
+ &noerror, &nocorr,
+ ¬runc, &retries, &do_factor, &filename,
+@@ -679,7 +679,7 @@
+
+ if (filename || sectors || c2scan || cxscan || pi8scan || pifscan ||
+ meshpoints || fulltoc ||
+- clone || edc_corr) {
++ clonetoc || edc_corr) {
+ dorw(scgp, filename, sectors);
+ } else {
+ doit(scgp);
+@@ -894,9 +894,9 @@
+ if (params.name == NULL)
+ params.name = "/dev/null";
+ read_ftoc(scgp, ¶ms, FALSE);
+- } else if (clone || edc_corr) {
++ } else if (clonetoc || edc_corr) {
+ if (!is_mmc(scgp, NULL, NULL))
+- comerrno(EX_BAD, _("Unsupported device for clone mode.\n"));
++ comerrno(EX_BAD, _("Unsupported device for clonetoc mode.\n"));
+ if (!edc_corr)
+ noerror = TRUE;
+ if (retries == MAX_RETRY)
+@@ -904,7 +904,7 @@
+ if (params.name == NULL)
+ params.name = "/dev/null";
+
+- if (clone)
++ if (clonetoc)
+ if (read_ftoc(scgp, ¶ms, TRUE) < 0)
+ comerrno(EX_BAD, _("Read fulltoc problems.\n"));
+ readcd_disk(scgp, ¶ms);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-21 18:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-21 18:51 [gentoo-commits] repo/gentoo:master commit in: app-cdr/cdrtools/, app-cdr/cdrtools/files/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2016-04-09 16:27 Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox