[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1099689: marked as done (ocaml-topkg: Should have a noopam build profile)



Your message dated Fri, 07 Mar 2025 17:37:23 +0000
with message-id <E1tqbdT-002LJc-1a@fasolo.debian.org>
and subject line Bug#1099689: fixed in ocaml-topkg 1.0.7-2
has caused the Debian Bug report #1099689,
regarding ocaml-topkg: Should have a noopam build profile
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1099689: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099689
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: ocaml-topkg
Version: 1.0.7-1
Severity: important
Tags: patch

Hello,

Currently,

- opam build-depends on libjsonm-ocaml-dev, libuutf-ocaml-dev
- uutf build-depends on libtopkg-ocaml-dev
- ocaml-topkg build-depends on opam-installer

We need to break the loop somehow to make bootstraping a new port easy
:)

As upstream puts it in topkg.opam, Topkg [...] has **no**
dependencies. This is what your packages will need as a *build*
dependency. So even if using opam to install the files is convenient,
topkg is expected to be depend on by packages needed to build opam.

The attached patch adds a pkg.ocaml-topkg.noopam build profile which can
be used to avoid using opam-installer and still build a proper
libtopkg-ocaml-dev package, could you apply it?

Samuel

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.13.0 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
Samuel
* B kicks DW (non mais franchement)
* DW was kicked
 -+- #ens-mim - comment ça hopeless ? -+-
--- debian/control.original	2025-03-06 19:00:26.000000000 +0000
+++ debian/control	2025-03-06 19:00:43.000000000 +0000
@@ -11,7 +11,7 @@
  ocamlbuild,
  ocaml-findlib,
  libfindlib-ocaml-dev,
- opam-installer
+ opam-installer <!pkg.ocaml-topkg.noopam>
 Standards-Version: 4.6.0
 Rules-Requires-Root: no
 Homepage: https://erratique.ch/software/topkg
--- debian/rules.original	2025-03-06 19:00:50.000000000 +0000
+++ debian/rules	2025-03-06 19:12:31.000000000 +0000
@@ -12,5 +12,24 @@
 	./pkg/pkg.ml build --pkg-name topkg
 
 override_dh_auto_install:
+ifeq (,$(filter pkg.ocaml-topkg.noopam, $(DEB_BUILD_PROFILES)))
 	opam-installer --prefix=$(DESTDIR)/usr --libdir=..$(OCAML_STDLIB_DIR)
+else
+	install -d $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.mli  $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.cmi  $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.cma  $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.cmxs $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.cmti $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.a    $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.cmx  $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/src/*.cmxa $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/pkg/META   $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg
+	install _build/topkg.opam $(DESTDIR)/$(OCAML_STDLIB_DIR)/topkg/opam
+endif
 	rm -f $(DESTDIR)/usr/doc/topkg/LICENSE.md
+
+ifneq (,$(filter pkg.ocaml-topkg.noopam, $(DEB_BUILD_PROFILES)))
+override_dh_installdocs:
+	:
+endif

--- End Message ---
--- Begin Message ---
Source: ocaml-topkg
Source-Version: 1.0.7-2
Done: Stéphane Glondu <glondu@debian.org>

We believe that the bug you reported is fixed in the latest version of
ocaml-topkg, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1099689@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stéphane Glondu <glondu@debian.org> (supplier of updated ocaml-topkg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 07 Mar 2025 17:43:56 +0100
Source: ocaml-topkg
Architecture: source
Version: 1.0.7-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Stéphane Glondu <glondu@debian.org>
Closes: 1099689
Changes:
 ocaml-topkg (1.0.7-2) unstable; urgency=medium
 .
   * Add a noopam build profile (Closes: #1099689)
Checksums-Sha1:
 a9a7ccfcb9941911da904589214093b1df25140f 1874 ocaml-topkg_1.0.7-2.dsc
 8016823faa97746e6ce115edd44a36e50af51ae3 3404 ocaml-topkg_1.0.7-2.debian.tar.xz
Checksums-Sha256:
 39f3258b61b6740d8f8436c034d4729f42d46360d7e0be20f74532b4af88a8c3 1874 ocaml-topkg_1.0.7-2.dsc
 839b3b900a9f4ac3c2fea6632c086623f3033e4cbd1c55e643db76f58fd8db54 3404 ocaml-topkg_1.0.7-2.debian.tar.xz
Files:
 43819a01ea082b34b0c572e756b045ca 1874 ocaml optional ocaml-topkg_1.0.7-2.dsc
 b2d40838d12f4c6d90a9bad249d02957 3404 ocaml optional ocaml-topkg_1.0.7-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQFGBAEBCgAwFiEEbeJOl+yohsxW5iUOIbju8bGJMIEFAmfLJn4SHGdsb25kdUBk
ZWJpYW4ub3JnAAoJECG47vGxiTCBFQkH+wVDpkeTm74d9iW4gt4sdsQ0d1xoli8w
Qjh6I6CLoyBs6xy0eyKuxOh5riR0o02JtU7caYLaI1vIS+q32s160xZqesni68EF
73RxmZXYi6kC23qIeuLJuawzryj6YXOXS95BwWUUnr0M+UHM3OvVohGJAGiTyEbp
ONalpgstxJBPNWs7BGUiVzkBxebuVvFcQnfugljyygQZvXvMVm3GIGg/jZORaCRF
Fo1022d5X2sFfvEj7bVUJ1jEIu2s8CnZskvDV5mF2r8QCbcoPtxiYGKc4H5QREhz
PbkYGlfl0axq2WtyeBRFcAUvi37i/jE/lGbraqJdEU0Vx7o0SW0E5BQ=
=A+Ue
-----END PGP SIGNATURE-----

Attachment: pgpzPduturRFS.pgp
Description: PGP signature


--- End Message ---

Reply to: