Discussion:
netpbm: "Super Stable" -> "Advanced" -- please test
Thomas Klausner
2014-09-01 22:03:47 UTC
Permalink
Hi!

Currently, pkgsrc is using the "Super Stable" version of netpbm, which
only gets minimal fixes. The author is also maintaining an "Advanced"
version, and I've been feeding back our local patches to him.

I'd like to switch pkgsrc to the "Advanced" version.

I've prepared a version in wip/netpbm. Please test it on your favorite
platform/opsys. I'll use it for updating graphics/netpbm sometime next
week, depending on the feedback I get.

Thanks,
Thomas
Matthias Scheler
2014-09-02 17:31:22 UTC
Permalink
Post by Thomas Klausner
Currently, pkgsrc is using the "Super Stable" version of netpbm, which
only gets minimal fixes. The author is also maintaining an "Advanced"
version, and I've been feeding back our local patches to him.
I'd like to switch pkgsrc to the "Advanced" version.
I've prepared a version in wip/netpbm. Please test it on your favorite
platform/opsys. I'll use it for updating graphics/netpbm sometime next
week, depending on the feedback I get.
It builds fine and seems to work under NetBSD/amd64 7.0_BETA with
native X.org.

It doesn't build under Mac OS X Mavericks:

ar rc libnetpbm.a libpm.o pmfileio.o fileio.o bitio.o colorname.o libpamd.o libpbm1.o libpbm2.o libpbm3.o libpbmfont.o libpgm1.o libpgm2.o libppm1.o libppm2.o libppmcmap.o libppmcolor.o libppmfuzzy.o libppmd.o ppmdfont.o standardppmdfont.o path.o libppmfloyd.o libpnm1.o libpnm2.o libpnm3.o libpam.o libpamread.o libpamwrite.o libpamn.o libpammap.o libpamcolor.o libsystem.o util/filename.o util/io.o util/mallocvar.o util/matrix.o util/nsleep.o util/nstring.o util/shhopt.o util/token.o util/vasprintf.o
ranlib libnetpbm.a
ld: unknown option: -soname

It looks like "graphics/netpbm/patches/patch-aa" needs to be adapted
for the new version.

Kind regards
--
Matthias Scheler https://zhadum.org.uk/
David Holland
2014-09-03 08:17:56 UTC
Permalink
Post by Thomas Klausner
Currently, pkgsrc is using the "Super Stable" version of netpbm, which
only gets minimal fixes. The author is also maintaining an "Advanced"
version, and I've been feeding back our local patches to him.
I'd like to switch pkgsrc to the "Advanced" version.
I don't suppose "Advanced" means it contains man pages?
(sigh)
--
David A. Holland
***@netbsd.org
Thomas Klausner
2014-09-03 09:07:03 UTC
Permalink
Post by David Holland
I don't suppose "Advanced" means it contains man pages?
(sigh)
It does contain more man pages, but it also contains more programs.
I'm not sure what your problem with the number of man pages is though:

# cd graphics/netpbm
# grep man/ PLIST | wc -l
308

Thomas
i***@netbsd.org
2014-09-03 09:12:54 UTC
Permalink
Post by Thomas Klausner
Post by David Holland
I don't suppose "Advanced" means it contains man pages?
(sigh)
It does contain more man pages, but it also contains more programs.
# cd graphics/netpbm
# grep man/ PLIST | wc -l
308
Are we creating the real man pages nowadays, or installing the
go-read-the-html-online template like we used to do until pkgsrc-2014q2
at least?

-is
Thomas Klausner
2014-09-03 09:30:55 UTC
Permalink
Post by i***@netbsd.org
Are we creating the real man pages nowadays, or installing the
go-read-the-html-online template like we used to do until pkgsrc-2014q2
at least?
Ah, that was the point of the question, that they are useless.

They still are.

Here's what the script creating them says:

--- begin quote ---
#############################################################################
# makepointerman
#############################################################################
#
# This program creates a Netpbm man page that says nothing except to use a
# web browser to look at a particular URL.
#
# In Netpbm, we believe that man pages, and the Nroff/Troff formats, are
# obsolete; that HTML and web browsers and the world wide web long ago replaced
# them as the best way to deliver documentation. However, documentation is
# useless when people don't know where it is. People are very accustomed to
# typing "man" to get information on a Unix program or library or file type,
# so in the standard Netpbm installation, we install a conventional man page
# for every command, library, and file type, but all it says is to use your
# web browser to look at the real documentation.

# What would be ideal is if the user simply had Manweb (or something like
# it) installed as the 'man' command and configured to find the Netpbm
# web documentation.

# But because of the high probability that Netpbm installers will not
# install Manweb, pointer man pages are necessary.

# Besides making the web documentation accessible, pointer man pages serve
# another important purpose: Installing them causes obsolete man pages from
# before web documentation existed to be discarded.
--- end quote ---


Which makes this part of the man page contents a bit annoying to read
to me:


--- begin quote ---
Note that making the documentation available this way was
a choice of the person who installed Netpbm on this system.
It is also possible to install Netpbm such that you would
simply see the documentation instead of the message you are
reading now.
--- end quote ---

It seems we need html2mdoc :)

Thomas
Thomas Klausner
2014-09-08 21:52:32 UTC
Permalink
I've now updated netpbm to 10.67.04, the latest "Advanced" release,
and included html-to-man conversions of the documentation in the package.

Cheers,
Thomas
Jörn Clausen
2014-09-09 13:01:01 UTC
Permalink
Post by Thomas Klausner
and included html-to-man conversions of the documentation in the package.
This is by far the best news in command-line-generated graphics this week!!!

But testing this with my favorite useless tool in NetPBM shows:

$ man pgmcrater
[...]
pgmcrater is obsolete. All it does now is invoke pamcrater,
pamshadedrelief, and pamtopnm. You should use those programs in any
new application, or if you are modifying an old program or process that
does not have to work with a version of Netpbm before 10.68 (September
2014). pgmcrater exists only for backward compatibility.
[...]

And although the package does install man-pages for pamcrater and
pamshadedrelief, no such binaries are present. It seems that the code
and the documentation are not in sync. But given the figures (10.68 vs
10.67.04 and September 2014), this is probably just a corner case due
to unfortunate timing.
--
Joern Clausen
http://www.oe-files.de/photography/
Thomas Klausner
2014-09-09 21:55:59 UTC
Permalink
Post by Jörn Clausen
Post by Thomas Klausner
and included html-to-man conversions of the documentation in the package.
This is by far the best news in command-line-generated graphics this week!!!
$ man pgmcrater
[...]
pgmcrater is obsolete. All it does now is invoke pamcrater,
pamshadedrelief, and pamtopnm. You should use those programs in any
new application, or if you are modifying an old program or process that
does not have to work with a version of Netpbm before 10.68 (September
2014). pgmcrater exists only for backward compatibility.
[...]
And although the package does install man-pages for pamcrater and
pamshadedrelief, no such binaries are present. It seems that the code
and the documentation are not in sync. But given the figures (10.68 vs
10.67.04 and September 2014), this is probably just a corner case due
to unfortunate timing.
Upstream has a separate repository for the documentation. I couldn't
find any synchronization points to the repository containing the
"Advanced" branch, which we're currently following (there's a newer
"Development" branch, but that's just the svn trunk). Sorry.

I'll try to keep netpbm up-to-date in the future, which should make
them more in-sync again.
Thomas

Loading...