Message ID | 20180618154833.10526-1-ross.burton@intel.com |
---|---|
State | Accepted |
Commit | 59a825ca1e08a7e47fcbc807606103d463280e6c |
Headers | show |
Series | mktemp: remove | expand |
On 6/18/18 10:48 AM, Ross Burton wrote: > Both busybox and coreutils provide mktemp, and the only difference between those > (and standalone mktemp) is that coreutils supports --suffix. I've got no objections to this.. but I do have a question/comment. Is mktemp packaged by itself in coreutils or do you need the larger coreutils to get it. (I'm not actually sure it matters, but in the past there were some cases where you might not want all of coreutils, but wanted mktemp...) If there is no standalone mktemp any longer, I think we just need to be prepared for someone to come and say they have a use-case... but at this point, I wouldn't actively change any of the exiting implementations (busybox/coreutils). --Mark > Also mktemp.org has disappeared, so it's fair to assume that the standalone > mktemp (last released in 2010) is dead. > > Signed-off-by: Ross Burton <ross.burton@intel.com> > --- > meta/conf/distro/include/distro_alias.inc | 1 - > meta/conf/distro/include/maintainers.inc | 1 - > .../packagegroups/packagegroup-self-hosted.bb | 1 - > .../mktemp/files/disable-strip.patch | 15 --------- > .../mktemp/files/fix-parallel-make.patch | 24 --------------- > meta/recipes-extended/mktemp/mktemp_1.7.bb | 36 ---------------------- > .../packagegroup-core-full-cmdline.bb | 1 - > .../packagegroups/packagegroup-core-lsb.bb | 1 - > 8 files changed, 80 deletions(-) > delete mode 100644 meta/recipes-extended/mktemp/files/disable-strip.patch > delete mode 100644 meta/recipes-extended/mktemp/files/fix-parallel-make.patch > delete mode 100644 meta/recipes-extended/mktemp/mktemp_1.7.bb > > diff --git a/meta/conf/distro/include/distro_alias.inc b/meta/conf/distro/include/distro_alias.inc > index 2edcd5838bf..58c110dbe42 100644 > --- a/meta/conf/distro/include/distro_alias.inc > +++ b/meta/conf/distro/include/distro_alias.inc > @@ -242,7 +242,6 @@ DISTRO_PN_ALIAS_pn-mini-x-session = "OSPDT" > DISTRO_PN_ALIAS_pn-mkelfimage = "Ubuntu=mkelfimage Fedora=mkelfimage" > DISTRO_PN_ALIAS_pn-mkfontdir = "Mandriva=mkfontdir Ubuntu=xfonts-utils Fedora=xorg-x11-font-utils" > DISTRO_PN_ALIAS_pn-mkfontscale = "Mandriva=mkfontscale Ubuntu=xfonts-utils Fedora=xorg-x11-font-utils" > -DISTRO_PN_ALIAS_pn-mktemp = "Mandriva=mktemp Fedora=mktemp" > DISTRO_PN_ALIAS_pn-mmc-utils = "OE-Core" > DISTRO_PN_ALIAS_pn-modutils-initscripts = "OE-Core" > DISTRO_PN_ALIAS_pn-mtd-utils = "Debian=mtd-utils Ubuntu=mtd-utils" > diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc > index 9382d23ef9e..585eac4fc74 100644 > --- a/meta/conf/distro/include/maintainers.inc > +++ b/meta/conf/distro/include/maintainers.inc > @@ -492,7 +492,6 @@ RECIPE_MAINTAINER_pn-mkelfimage = "Alexander Kanavin <alex.kanavin@gmail.com>" > RECIPE_MAINTAINER_pn-mkfontdir = "Armin Kuster <akuster808@gmail.com>" > RECIPE_MAINTAINER_pn-mkfontscale = "Armin Kuster <akuster808@gmail.com>" > RECIPE_MAINTAINER_pn-mklibs-native = "Robert Yang <liezhi.yang@windriver.com>" > -RECIPE_MAINTAINER_pn-mktemp = "Robert Yang <liezhi.yang@windriver.com>" > RECIPE_MAINTAINER_pn-mmc-utils = "Maxin B. John <maxin.john@intel.com>" > RECIPE_MAINTAINER_pn-mobile-broadband-provider-info = "Alexander Kanavin <alex.kanavin@gmail.com>" > RECIPE_MAINTAINER_pn-modutils-initscripts = "Yi Zhao <yi.zhao@windriver.com>" > diff --git a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb > index 28f06d9c5aa..9a6721ce031 100644 > --- a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb > +++ b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb > @@ -80,7 +80,6 @@ RDEPENDS_packagegroup-self-hosted-sdk = "\ > libstdc++-dev \ > libtool \ > make \ > - mktemp \ > perl-module-re \ > perl-module-text-wrap \ > pkgconfig \ > diff --git a/meta/recipes-extended/mktemp/files/disable-strip.patch b/meta/recipes-extended/mktemp/files/disable-strip.patch > deleted file mode 100644 > index e06869e3adf..00000000000 > --- a/meta/recipes-extended/mktemp/files/disable-strip.patch > +++ /dev/null > @@ -1,15 +0,0 @@ > -Upstream-Status: Inappropriate [configuration] > - > -diff --git a/Makefile.in b/Makefile.in > -index 37b3cc9..f1026f3 100644 > ---- a/Makefile.in > -+++ b/Makefile.in > -@@ -95,7 +95,7 @@ install-dirs: > - $(DESTDIR)$(mandir)/man1 > - > - install-binaries: $(PROG) > -- $(INSTALL) -m 0555 -s $(PROG) $(DESTDIR)$(bindir)/$(PROG) > -+ $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG) > - > - install-man: > - $(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \ > diff --git a/meta/recipes-extended/mktemp/files/fix-parallel-make.patch b/meta/recipes-extended/mktemp/files/fix-parallel-make.patch > deleted file mode 100644 > index f3b6dcc34ab..00000000000 > --- a/meta/recipes-extended/mktemp/files/fix-parallel-make.patch > +++ /dev/null > @@ -1,24 +0,0 @@ > -This fixes the parallel make install failure > - > -Upstream-Status: Accepted > -http://www.gratisoft.us/bugzilla/show_bug.cgi?id=528 > - > -Signed-off-by: Saul Wold <sgw@linux.intel.com> > - > -Index: mktemp-1.7/Makefile.in > -=================================================================== > ---- mktemp-1.7.orig/Makefile.in > -+++ mktemp-1.7/Makefile.in > -@@ -94,10 +94,10 @@ install-dirs: > - $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) \ > - $(DESTDIR)$(mandir)/man1 > - > --install-binaries: $(PROG) > -+install-binaries: install-dirs $(PROG) > - $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG) > - > --install-man: > -+install-man: install-dirs > - $(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \ > - $(DESTDIR)$(mandir)/man1/mktemp.1 > - > diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb > deleted file mode 100644 > index e8ae5c6b724..00000000000 > --- a/meta/recipes-extended/mktemp/mktemp_1.7.bb > +++ /dev/null > @@ -1,36 +0,0 @@ > -SUMMARY = "Enables safe temporary file creation from shell scripts" > -HOMEPAGE = "http://www.mktemp.org/" > -BUGTRACKER = "http://www.mktemp.org/bugs" > -SECTION = "console/utils" > -LICENSE = "ISC" > -LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4" > - > -PR = "r3" > - > -SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \ > - file://disable-strip.patch \ > - file://fix-parallel-make.patch \ > - " > - > -SRC_URI[md5sum] = "787bbed9fa2ee8e7645733c0e8e65172" > -SRC_URI[sha256sum] = "8e94b9e1edf866b2609545da65b627996ac5d158fda071e492bddb2f4a482675" > - > -inherit autotools update-alternatives > - > -EXTRA_OECONF = "--with-libc" > - > -do_install_append () { > - if [ "${base_bindir}" != "${bindir}" ] ; then > - install -d ${D}${base_bindir} > - mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp > - rmdir ${D}${bindir} > - fi > -} > - > -ALTERNATIVE_${PN} = "mktemp" > -ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp" > -ALTERNATIVE_PRIORITY = "60" > - > -ALTERNATIVE_${PN}-doc = "mktemp.1" > -ALTERNATIVE_PRIORITY_${PN}-doc = "300" > -ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1" > diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb > index 92881e9f322..22b3f6782fe 100644 > --- a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb > +++ b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb > @@ -86,7 +86,6 @@ RDEPENDS_packagegroup-core-full-cmdline-utils = "\ > mc-fish \ > mc-helpers \ > mc-helpers-perl \ > - mktemp \ > ncurses \ > net-tools \ > popt \ > diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb > index 53d100ce740..ef6347c7120 100644 > --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb > +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb > @@ -158,7 +158,6 @@ RDEPENDS_packagegroup-core-lsb-core = "\ > make \ > man \ > man-pages \ > - mktemp \ > msmtp \ > patch \ > procps \ > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
On 18 June 2018 at 17:25, Mark Hatle <mark.hatle@windriver.com> wrote: > On 6/18/18 10:48 AM, Ross Burton wrote: >> Both busybox and coreutils provide mktemp, and the only difference between those >> (and standalone mktemp) is that coreutils supports --suffix. > > I've got no objections to this.. but I do have a question/comment. > > Is mktemp packaged by itself in coreutils or do you need the larger coreutils to > get it. (I'm not actually sure it matters, but in the past there were some > cases where you might not want all of coreutils, but wanted mktemp...) We don't have a small or large coreutils. Maybe that's a WR-ism? Ross -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
On 6/18/18 11:30 AM, Burton, Ross wrote: > On 18 June 2018 at 17:25, Mark Hatle <mark.hatle@windriver.com> wrote: >> On 6/18/18 10:48 AM, Ross Burton wrote: >>> Both busybox and coreutils provide mktemp, and the only difference between those >>> (and standalone mktemp) is that coreutils supports --suffix. >> >> I've got no objections to this.. but I do have a question/comment. >> >> Is mktemp packaged by itself in coreutils or do you need the larger coreutils to >> get it. (I'm not actually sure it matters, but in the past there were some >> cases where you might not want all of coreutils, but wanted mktemp...) > > We don't have a small or large coreutils. Maybe that's a WR-ism? No, I'm referring to system sizes.. there have been systems developed in the past that use a number of alternative command line tooling. I thought coreutils was broken into various packages already. It may have been in the past and is no longer broken up as well -- or maybe the busybox version was lacking some argument mktemp (coreutils mktemp) supports. The point is there was a reason for it in smaller systems, and that reason may not exist any longer -- but just be aware it might come back up as a problem. --Mark > Ross > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
On Mon, Jun 18, 2018 at 9:47 AM Mark Hatle <mark.hatle@windriver.com> wrote: > > On 6/18/18 11:30 AM, Burton, Ross wrote: > > On 18 June 2018 at 17:25, Mark Hatle <mark.hatle@windriver.com> wrote: > >> On 6/18/18 10:48 AM, Ross Burton wrote: > >>> Both busybox and coreutils provide mktemp, and the only difference between those > >>> (and standalone mktemp) is that coreutils supports --suffix. > >> > >> I've got no objections to this.. but I do have a question/comment. > >> > >> Is mktemp packaged by itself in coreutils or do you need the larger coreutils to > >> get it. (I'm not actually sure it matters, but in the past there were some > >> cases where you might not want all of coreutils, but wanted mktemp...) > > > > We don't have a small or large coreutils. Maybe that's a WR-ism? > > No, I'm referring to system sizes.. there have been systems developed in the > past that use a number of alternative command line tooling. > > I thought coreutils was broken into various packages already. It may have been > in the past and is no longer broken up as well -- or maybe the busybox version > was lacking some argument mktemp (coreutils mktemp) supports. > > The point is there was a reason for it in smaller systems, and that reason may > not exist any longer -- but just be aware it might come back up as a problem. The affected case is where busybox one is not used and coreutils is not used but mktemp is used. I think its in best interest for this usecase to move on to accept a maintained version of utility, be it from coreutils or busybox. -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff --git a/meta/conf/distro/include/distro_alias.inc b/meta/conf/distro/include/distro_alias.inc index 2edcd5838bf..58c110dbe42 100644 --- a/meta/conf/distro/include/distro_alias.inc +++ b/meta/conf/distro/include/distro_alias.inc @@ -242,7 +242,6 @@ DISTRO_PN_ALIAS_pn-mini-x-session = "OSPDT" DISTRO_PN_ALIAS_pn-mkelfimage = "Ubuntu=mkelfimage Fedora=mkelfimage" DISTRO_PN_ALIAS_pn-mkfontdir = "Mandriva=mkfontdir Ubuntu=xfonts-utils Fedora=xorg-x11-font-utils" DISTRO_PN_ALIAS_pn-mkfontscale = "Mandriva=mkfontscale Ubuntu=xfonts-utils Fedora=xorg-x11-font-utils" -DISTRO_PN_ALIAS_pn-mktemp = "Mandriva=mktemp Fedora=mktemp" DISTRO_PN_ALIAS_pn-mmc-utils = "OE-Core" DISTRO_PN_ALIAS_pn-modutils-initscripts = "OE-Core" DISTRO_PN_ALIAS_pn-mtd-utils = "Debian=mtd-utils Ubuntu=mtd-utils" diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 9382d23ef9e..585eac4fc74 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -492,7 +492,6 @@ RECIPE_MAINTAINER_pn-mkelfimage = "Alexander Kanavin <alex.kanavin@gmail.com>" RECIPE_MAINTAINER_pn-mkfontdir = "Armin Kuster <akuster808@gmail.com>" RECIPE_MAINTAINER_pn-mkfontscale = "Armin Kuster <akuster808@gmail.com>" RECIPE_MAINTAINER_pn-mklibs-native = "Robert Yang <liezhi.yang@windriver.com>" -RECIPE_MAINTAINER_pn-mktemp = "Robert Yang <liezhi.yang@windriver.com>" RECIPE_MAINTAINER_pn-mmc-utils = "Maxin B. John <maxin.john@intel.com>" RECIPE_MAINTAINER_pn-mobile-broadband-provider-info = "Alexander Kanavin <alex.kanavin@gmail.com>" RECIPE_MAINTAINER_pn-modutils-initscripts = "Yi Zhao <yi.zhao@windriver.com>" diff --git a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb index 28f06d9c5aa..9a6721ce031 100644 --- a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb +++ b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb @@ -80,7 +80,6 @@ RDEPENDS_packagegroup-self-hosted-sdk = "\ libstdc++-dev \ libtool \ make \ - mktemp \ perl-module-re \ perl-module-text-wrap \ pkgconfig \ diff --git a/meta/recipes-extended/mktemp/files/disable-strip.patch b/meta/recipes-extended/mktemp/files/disable-strip.patch deleted file mode 100644 index e06869e3adf..00000000000 --- a/meta/recipes-extended/mktemp/files/disable-strip.patch +++ /dev/null @@ -1,15 +0,0 @@ -Upstream-Status: Inappropriate [configuration] - -diff --git a/Makefile.in b/Makefile.in -index 37b3cc9..f1026f3 100644 ---- a/Makefile.in -+++ b/Makefile.in -@@ -95,7 +95,7 @@ install-dirs: - $(DESTDIR)$(mandir)/man1 - - install-binaries: $(PROG) -- $(INSTALL) -m 0555 -s $(PROG) $(DESTDIR)$(bindir)/$(PROG) -+ $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG) - - install-man: - $(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \ diff --git a/meta/recipes-extended/mktemp/files/fix-parallel-make.patch b/meta/recipes-extended/mktemp/files/fix-parallel-make.patch deleted file mode 100644 index f3b6dcc34ab..00000000000 --- a/meta/recipes-extended/mktemp/files/fix-parallel-make.patch +++ /dev/null @@ -1,24 +0,0 @@ -This fixes the parallel make install failure - -Upstream-Status: Accepted -http://www.gratisoft.us/bugzilla/show_bug.cgi?id=528 - -Signed-off-by: Saul Wold <sgw@linux.intel.com> - -Index: mktemp-1.7/Makefile.in -=================================================================== ---- mktemp-1.7.orig/Makefile.in -+++ mktemp-1.7/Makefile.in -@@ -94,10 +94,10 @@ install-dirs: - $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) \ - $(DESTDIR)$(mandir)/man1 - --install-binaries: $(PROG) -+install-binaries: install-dirs $(PROG) - $(INSTALL) -m 0555 $(PROG) $(DESTDIR)$(bindir)/$(PROG) - --install-man: -+install-man: install-dirs - $(INSTALL) -m 0444 $(srcdir)/mktemp.$(mantype) \ - $(DESTDIR)$(mandir)/man1/mktemp.1 - diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb deleted file mode 100644 index e8ae5c6b724..00000000000 --- a/meta/recipes-extended/mktemp/mktemp_1.7.bb +++ /dev/null @@ -1,36 +0,0 @@ -SUMMARY = "Enables safe temporary file creation from shell scripts" -HOMEPAGE = "http://www.mktemp.org/" -BUGTRACKER = "http://www.mktemp.org/bugs" -SECTION = "console/utils" -LICENSE = "ISC" -LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4" - -PR = "r3" - -SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \ - file://disable-strip.patch \ - file://fix-parallel-make.patch \ - " - -SRC_URI[md5sum] = "787bbed9fa2ee8e7645733c0e8e65172" -SRC_URI[sha256sum] = "8e94b9e1edf866b2609545da65b627996ac5d158fda071e492bddb2f4a482675" - -inherit autotools update-alternatives - -EXTRA_OECONF = "--with-libc" - -do_install_append () { - if [ "${base_bindir}" != "${bindir}" ] ; then - install -d ${D}${base_bindir} - mv ${D}${bindir}/mktemp ${D}${base_bindir}/mktemp - rmdir ${D}${bindir} - fi -} - -ALTERNATIVE_${PN} = "mktemp" -ALTERNATIVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp" -ALTERNATIVE_PRIORITY = "60" - -ALTERNATIVE_${PN}-doc = "mktemp.1" -ALTERNATIVE_PRIORITY_${PN}-doc = "300" -ALTERNATIVE_LINK_NAME[mktemp.1] = "${mandir}/man1/mktemp.1" diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb index 92881e9f322..22b3f6782fe 100644 --- a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb +++ b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb @@ -86,7 +86,6 @@ RDEPENDS_packagegroup-core-full-cmdline-utils = "\ mc-fish \ mc-helpers \ mc-helpers-perl \ - mktemp \ ncurses \ net-tools \ popt \ diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb index 53d100ce740..ef6347c7120 100644 --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb @@ -158,7 +158,6 @@ RDEPENDS_packagegroup-core-lsb-core = "\ make \ man \ man-pages \ - mktemp \ msmtp \ patch \ procps \
Both busybox and coreutils provide mktemp, and the only difference between those (and standalone mktemp) is that coreutils supports --suffix. Also mktemp.org has disappeared, so it's fair to assume that the standalone mktemp (last released in 2010) is dead. Signed-off-by: Ross Burton <ross.burton@intel.com> --- meta/conf/distro/include/distro_alias.inc | 1 - meta/conf/distro/include/maintainers.inc | 1 - .../packagegroups/packagegroup-self-hosted.bb | 1 - .../mktemp/files/disable-strip.patch | 15 --------- .../mktemp/files/fix-parallel-make.patch | 24 --------------- meta/recipes-extended/mktemp/mktemp_1.7.bb | 36 ---------------------- .../packagegroup-core-full-cmdline.bb | 1 - .../packagegroups/packagegroup-core-lsb.bb | 1 - 8 files changed, 80 deletions(-) delete mode 100644 meta/recipes-extended/mktemp/files/disable-strip.patch delete mode 100644 meta/recipes-extended/mktemp/files/fix-parallel-make.patch delete mode 100644 meta/recipes-extended/mktemp/mktemp_1.7.bb -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core